From 8d83544ff6e123df4facf40c446e7d9bf4a522b6 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 31 十二月 2024 18:07:54 +0800
Subject: [PATCH] 序号

---
 src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue b/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue
index 9355cc4..9cdca4f 100644
--- a/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue
+++ b/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue
@@ -52,10 +52,12 @@
 					<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'">
@@ -206,7 +208,8 @@
 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';
@@ -220,7 +223,7 @@
 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';
@@ -231,6 +234,7 @@
 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 },
@@ -241,6 +245,7 @@
 	{ prop: 'note', label: '澶囨敞' },
 	{ prop: 'operate', label: '鎿嶄綔', width: 200, fixed: 'right' },
 ]);
+
 //#region ====================== 宸︿晶鏍戞暟鎹紝tree init ======================
 const leftTreeRef = useCompRef(LeftTreeByMgr);
 const treeLoading = ref(false);

--
Gitblit v1.9.3