| | |
| | | </div> |
| | | </template> |
| | | <template #action="{ record }"> |
| | | <tool |
| | | :kbtenantInfo="kbtenantInfo" |
| | | :item="record" |
| | | :kbdetail="kbdetail" |
| | | /> |
| | | <a-button |
| | | type="text" |
| | | :disabled="record.run == '1'" |
| | | @click="handleClick(record)" |
| | | size="small" |
| | | > |
| | | <template #icon> |
| | | <icon-tool /> |
| | | </template> |
| | | </a-button> |
| | | <edit :item="record" @upTabdateItem="upTabdateItem" /> |
| | | <a-popconfirm |
| | | :content="'确定删除吗'" |
| | |
| | | <excel v-if="documenttype == 'excel'" :previewSrc="previewSrc"></excel> |
| | | <txtPdf v-if="documenttype == 'txtPdf'" :previewSrc="previewSrc"></txtPdf> |
| | | </a-modal> |
| | | <tool |
| | | ref="toolForm" |
| | | :kbtenantInfo="kbtenantInfo" |
| | | :item="setObj" |
| | | :kbdetail="kbdetail" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | const formModel = ref(generateFormModel()); |
| | | const cloneColumns = ref([]); |
| | | const showColumns = ref<Column[]>([]); |
| | | let setObj = reactive({}); |
| | | |
| | | const size = ref<SizeProps>('medium'); |
| | | let visible = ref(false); |
| | |
| | | let kbdetail = reactive({}); |
| | | let parser_ids = reactive({}); |
| | | let seeObj = reactive({}); |
| | | let toolForm = ref(null); |
| | | let kbtenantInfo = reactive({ |
| | | asr_id: 'paraformer-realtime-8k-v1', |
| | | embd_id: 'BAAI/bge-large-zh-v1.5', |
| | |
| | | }); |
| | | }; |
| | | |
| | | const handleClick = () => { |
| | | visible.value = true; |
| | | const handleClick = (data) => { |
| | | Object.assign(setObj, data); |
| | | toolForm.value.handleClick(data); |
| | | }; |
| | | |
| | | const onPageChange = (current: number) => { |