| | |
| | | <span>{{parseTime(record.create_time)}}</span> |
| | | </template> |
| | | <template #status="{ record }"> |
| | | <a-switch v-model="record.status" checked-value="0" unchecked-value="1"/> |
| | | <a-switch v-model="record.status" checked-value="1" unchecked-value="0" @change="handleChangeStatus(record)"/> |
| | | </template> |
| | | <template #run="{ record }"> |
| | | <div style="display: flex;align-items: center;"> |
| | |
| | | <p>Here is the text content</p> |
| | | </template> |
| | | </a-popover> |
| | | <a-popover title="Title" v-if="record.run == '2'"> |
| | | <a-popover title="Title" v-if="record.run == '1'"> |
| | | <a-tag :loading="record.loading" :color="'blue'" border>{{$t('dmx.list.complete')}}</a-tag> |
| | | <template #content> |
| | | <p>Here is the text content</p> |
| | | </template> |
| | | </a-popover> |
| | | <a-popover title="Title" v-if="record.run == '1'"> |
| | | <a-popover title="Title" v-if="record.run == '2'"> |
| | | <a-tag :loading="record.loading" :color="'gold'" border>{{$t('dmx.list.cancel')}}</a-tag> |
| | | <template #content> |
| | | <p>Here is the text content</p> |
| | |
| | | queryKbDocumentList, |
| | | deleteKnow, |
| | | queryKbdetail, |
| | | queryKbtenantInfo, kbdocumentrm, kbdocumentchangeparser, kbdocumentrun |
| | | queryKbtenantInfo, kbdocumentrm, kbdocumentchangeparser, kbdocumentrun, kbdocumentchangeStatus |
| | | } from "@/api/kbList"; |
| | | import { Pagination } from '@/types/global'; |
| | | import type { SelectOptionData } from '@arco-design/web-vue/es/select/interface'; |
| | |
| | | import test from '@/views/dmx/knowledgeLib/test.vue' |
| | | import tool from '@/views/dmx/knowledgeLib/tool.vue' |
| | | import addDetails from '@/views/dmx/knowledgeLib/addDetails.vue' |
| | | import { deleteAccount } from "@/api/account"; |
| | | import { Message } from "@arco-design/web-vue"; |
| | | import { parseTime } from "@/utils"; |
| | | type SizeProps = 'mini' | 'small' | 'medium' | 'large'; |
| | |
| | | { |
| | | title: t('启用'), |
| | | dataIndex: 'status', |
| | | slotName: 'status', |
| | | slotName: 'status', |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | const handleChangeStatus = async (row)=>{ |
| | | console.log(row); |
| | | let data = await kbdocumentchangeStatus({ |
| | | doc_id: row.id, |
| | | status: row.status |
| | | }) |
| | | if(data.code == 0){ |
| | | Message.success('操作成功'); |
| | | } |
| | | } |
| | | |
| | | |
| | | const run = async (row)=>{ |
| | | console.log(row); |
| | | row.loading = true; |
| | | let run = '1' |
| | | if(row.run!='2'){ |
| | | run = '1' |
| | | }else { |
| | | run = '2' |
| | | } |
| | | let data = await kbdocumentrun({ |
| | | doc_ids: [row.id], |
| | | run: '1' |
| | | run: run |
| | | }) |
| | | // let data = await kbdocumentchangeparser({ |
| | | // parser_id: row.parser_id, |