| | |
| | | :class="{ active: selectedTab === index }" |
| | | > |
| | | {{ tab.name }} |
| | | <a-popover position="bl"> |
| | | <a-popover position="bl" > |
| | | <icon-more |
| | | v-hasPermi="'/kb/delete'" |
| | | :style="{ position: 'absolute', top: '10px', right: '10px' }" |
| | | /> |
| | | <template #content> |
| | |
| | | <span |
| | | style="cursor: pointer; color: #4977ba; font-size: 12px" |
| | | @click="deleteKnowledge(tab.id)" |
| | | v-hasPermi="'/kb/delete'" |
| | | ><icon-delete style="font-size: 14px" />删除</span |
| | | > |
| | | </template> |
| | |
| | | type="text" |
| | | class="button" |
| | | style="color: #2a2a2b" |
| | | v-hasPermi="'/kb/data_status'" |
| | | @click="enableDisable(1)" |
| | | > |
| | | <template #icon> |
| | |
| | | type="text" |
| | | class="button" |
| | | style="color: #2a2a2b" |
| | | v-hasPermi="'/kb/data_status'" |
| | | @click="enableDisable(0)" |
| | | > |
| | | <template #icon> |
| | |
| | | type="text" |
| | | class="button" |
| | | style="color: #2a2a2b" |
| | | v-hasPermi="'/kb/data_analysis'" |
| | | @click="addBlock(1)" |
| | | > |
| | | <template #icon> |
| | |
| | | type="text" |
| | | class="button" |
| | | style="color: #2a2a2b" |
| | | v-hasPermi="'/kb/data_analysis'" |
| | | @click="addBlock(2)" |
| | | > |
| | | <template #icon> |
| | |
| | | <a-button |
| | | type="text" |
| | | class="button" |
| | | v-hasPermi="'/kb/data_delete'" |
| | | style="color: #2a2a2b" |
| | | @click="addBlock(3)" |
| | | > |
| | |
| | | type="text" |
| | | :disabled="record.run == '1'" |
| | | @click="handleClick(record)" |
| | | v-hasPermi="'/kb/data_update'" |
| | | 查 |
| | | size="small" |
| | | > |
| | | <template #icon> |
| | |
| | | </template> |
| | | </a-button> |
| | | </a-tooltip> |
| | | |
| | | <!-- <a-button |
| | | <!-- |
| | | <a-button |
| | | type="text" |
| | | size="small" |
| | | :disabled="record.run == '1'" |
| | |
| | | <!-- </div>--> |
| | | </div> |
| | | </div> |
| | | <a-modal title=" " v-model:visible="visible" :footer="false" fullscreen> |
| | | <!-- <docx previewSrc="http://192.168.20.116:1080/v1/document/get/405c3efa4d8c11ef97560242ac120006"></docx>--> |
| | | <docx v-if="documenttype == 'docx'" :previewSrc="previewSrc"></docx> |
| | | <excel v-if="documenttype == 'excel'" :previewSrc="previewSrc"></excel> |
| | | <txtPdf v-if="documenttype == 'txtPdf'" :previewSrc="previewSrc"></txtPdf> |
| | | </a-modal> |
| | | <!-- <a-modal title=" " v-model:visible="visible" :footer="false" fullscreen>--> |
| | | <!-- <!– <docx previewSrc="http://192.168.20.116:1080/v1/document/get/405c3efa4d8c11ef97560242ac120006"></docx>–>--> |
| | | <!-- <docx v-if="documenttype == 'docx'" :previewSrc="previewSrc"></docx>--> |
| | | <!-- <excel v-if="documenttype == 'excel'" :previewSrc="previewSrc"></excel>--> |
| | | <!-- <txtPdf v-if="documenttype == 'txtPdf'" :previewSrc="previewSrc"></txtPdf>--> |
| | | <!-- </a-modal>--> |
| | | <tool |
| | | ref="toolForm" |
| | | :kbtenantInfo="kbtenantInfo" |
| | |
| | | import config from '@/views/dmx/knowledgeLib/config.vue'; |
| | | import test from '@/views/dmx/knowledgeLib/test.vue'; |
| | | import tool from '@/views/dmx/knowledgeLib/tool.vue'; |
| | | import docx from '@/views/dmx/knowledgeLib/components/docx.vue'; |
| | | import excel from '@/views/dmx/knowledgeLib/components/excel.vue'; |
| | | import txtPdf from '@/views/dmx/knowledgeLib/components/txtPdf.vue'; |
| | | // import docx from '@/views/dmx/knowledgeLib/components/docx.vue'; |
| | | // import excel from '@/views/dmx/knowledgeLib/components/excel.vue'; |
| | | // import txtPdf from '@/views/dmx/knowledgeLib/components/txtPdf.vue'; |
| | | import { Message, Modal } from '@arco-design/web-vue'; |
| | | import { documentHeight, parseTime } from '@/utils'; |
| | | import { deleteLlm } from '@/api/model'; |
| | |
| | | setLoading(true); |
| | | try { |
| | | const { data } = await queryKbList({ page: 1, page_size: 10 }); |
| | | |
| | | console.log(data, '查询知识库列表'); |
| | | tabs.value = data; |
| | | if (tabs.value.length > 0) { |
| | | // 定位到新增的知识库单元 |
| | | selectedTab.value = tabs.value.findIndex((item) => item.id == id); |
| | | getKbdetail(id); // 获取详情 |
| | | kbobj.id = id; |
| | | activeKey.value = '3'; |
| | | } |
| | | } catch (err) { |