| | |
| | | <a-popover position="bl"> |
| | | <icon-more :style="{position: 'absolute',top:'10px',right:'20px'}"/> |
| | | <template #content> |
| | | <a-popconfirm content="确定删除吗?" @ok="deleteKnowledge(tab.id)" type="warning"> |
| | | <span style="cursor: pointer;color: #4977ba;font-size: 12px"><icon-delete style="font-size: 14px"/>删除</span> |
| | | </a-popconfirm> |
| | | <!-- <span style="cursor: pointer;color: #0960bd;font-size: 12px" @click="deleteKnowledge(tab.id)"><icon-delete />删除</span>--> |
| | | <!-- <a-popconfirm content="确定删除吗?" @ok="deleteKnowledge(tab.id)" type="warning">--> |
| | | <!-- <span style="cursor: pointer;color: #4977ba;font-size: 12px"><icon-delete style="font-size: 14px"/>删除</span>--> |
| | | <!-- </a-popconfirm>--> |
| | | <span style="cursor: pointer;color: #4977ba;font-size: 12px" @click="deleteKnowledge(tab.id)"><icon-delete style="font-size: 14px" />删除</span> |
| | | </template> |
| | | </a-popover> |
| | | </div> |
| | |
| | | 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 } from "@arco-design/web-vue"; |
| | | import { Message, Modal } from "@arco-design/web-vue"; |
| | | import { parseTime } from "@/utils"; |
| | | import { deleteLlm } from "@/api/model"; |
| | | type SizeProps = 'mini' | 'small' | 'medium' | 'large'; |
| | | type Column = TableColumnData & { checked?: true }; |
| | | const account = ref(null) |
| | |
| | | } |
| | | }; |
| | | |
| | | const deleteKnowledge = async (id) => { |
| | | const deleteKnowledge = (id) => { |
| | | Modal.confirm({ |
| | | title: '提示信息', |
| | | content: '确认删除吗', |
| | | okText: '确定', |
| | | cancelText: '取消', |
| | | hideTitle: true, |
| | | onOk: async () => { |
| | | let data = await deleteKnow({ |
| | | kb_id:id |
| | | }) |
| | |
| | | Message.success('删除成功'); |
| | | knowledgeData() |
| | | } |
| | | }, |
| | | onCancel: () => {}, |
| | | }); |
| | | } |
| | | const reset = () => { |
| | | formModel.value = generateFormModel(); |