| | |
| | | <template v-for="item in columnList" :key="item.prop"> |
| | | <el-table-column |
| | | v-if="item.isShow ?? true" |
| | | :type="item.type" |
| | | :prop="item.prop" |
| | | :label="item.label" |
| | | :fixed="item.fixed" |
| | | :width="item.width" |
| | | :align="item.align" |
| | | showOverflowTooltip |
| | | > |
| | | <template #default="scope" v-if="item.prop === 'published'"> |
| | |
| | | import { useQueryTable } from '/@/hooks/useQueryTable'; |
| | | // import { useTableSort } from '/@/hooks/useTableSort'; |
| | | // import { useValidateUniqueness } from '/@/hooks/useValidateUniqueness'; |
| | | import axios, { CancelTokenSource } from 'axios'; |
| | | import type { CancelTokenSource } from 'axios'; |
| | | import axios from 'axios'; |
| | | import type { FormInstance, FormRules } from 'element-plus'; |
| | | import { ElMessage, ElMessageBox } from 'element-plus'; |
| | | import { nextTick } from 'vue'; |
| | |
| | | import Chat from '/@/components/chat/Chat.vue'; |
| | | import AHMContainer from '/@/components/layout/AHMContainer.vue'; |
| | | import ColFilter from '/@/components/table/colFilter/ColFilter.vue'; |
| | | import { TableCol } from '/@/components/table/colFilter/types'; |
| | | import type { TableCol } from '/@/components/table/colFilter/types'; |
| | | import LeftTreeByMgr from '/@/components/tree/leftTreeByMgr.vue'; |
| | | import { useUpdateData } from '/@/hooks/useUpdateData'; |
| | | import emitter from '/@/utils/mitt'; |
| | |
| | | import { OptClassificationMap, classificationEnum } from '/@/views/types/metrics'; |
| | | |
| | | const columnList = ref<TableCol[]>([ |
| | | { type: 'index', label: '序号', width: 55, fixed: 'left', align: 'center' }, |
| | | { prop: 'title', label: '标题', width: 300, fixed: 'left' }, |
| | | { prop: 'published', label: '发布状态', width: 85 }, |
| | | { prop: 'prompt', label: '提示词', width: 300 }, |
| | |
| | | { prop: 'note', label: '备注' }, |
| | | { prop: 'operate', label: '操作', width: 200, fixed: 'right' }, |
| | | ]); |
| | | |
| | | //#region ====================== 左侧树数据,tree init ====================== |
| | | const leftTreeRef = useCompRef(LeftTreeByMgr); |
| | | const treeLoading = ref(false); |