From 71ffe1b098e8a7b2b2c8f938e7765be9776e8966 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 09 九月 2024 14:07:08 +0800
Subject: [PATCH] 修改意见

---
 src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue b/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue
index 32489b1..af9e4ad 100644
--- a/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue
+++ b/src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue
@@ -54,14 +54,16 @@
 					<!-- <el-table-column prop="id" label="id" width="130" fixed="left" show-overflow-tooltip> </el-table-column> -->
 
 					<el-table-column prop="title" label="鏍囬" width="300" fixed="left" show-overflow-tooltip> </el-table-column>
-					<el-table-column prop="prompt" label="鎻愮ず璇�" show-overflow-tooltip> </el-table-column>
+					<el-table-column prop="prompt" label="鎻愮ず璇�" width="300" show-overflow-tooltip> </el-table-column>
 
 					<el-table-column label="鍒涘缓浜�" prop="creator" width="100" show-overflow-tooltip> </el-table-column>
 					<el-table-column label="鍒涘缓鏃堕棿" prop="create_time" width="105" show-overflow-tooltip> </el-table-column>
 					<el-table-column label="鏇存柊鏃堕棿" prop="update_time" width="105" show-overflow-tooltip> </el-table-column>
 					<el-table-column label="鍙戝竷鐘舵��" prop="published" width="85" show-overflow-tooltip>
 						<template #default="scope">
-							{{ supervisorPublishedMap[scope.row.published] }}
+							<el-tag :type="scope.row.published === SupervisorPublished.Y ? 'primary' : 'info'">{{
+								supervisorPublishedMap[scope.row.published]
+							}}</el-tag>
 						</template>
 					</el-table-column>
 
@@ -69,12 +71,13 @@
 					<el-table-column label="鎿嶄綔" width="200" fixed="right" show-overflow-tooltip>
 						<template #default="scope">
 							<div class="space-x-3 items-center flex">
-								<el-tooltip effect="dark" content="SQL缂栬緫" placement="top">
-									<i class="ywifont ywicon-sql !text-[14px] text-blue-400 cursor-pointer" @click="editSqlClick(scope.row)"></i>
-								</el-tooltip>
 								<el-tooltip effect="dark" content="AMIS浣庝唬鐮佺紪杈�" placement="top">
 									<i class="ywifont ywicon-didaima !text-[21px] text-blue-400 cursor-pointer" @click="gotoAmisPage(scope.row)"></i>
 								</el-tooltip>
+								<el-tooltip effect="dark" content="SQL缂栬緫" placement="top">
+									<i class="ywifont ywicon-sql !text-[14px] text-blue-400 cursor-pointer" @click="editSqlClick(scope.row)"></i>
+								</el-tooltip>
+
 								<el-tooltip effect="dark" content="瀵硅瘽娴嬭瘯" placement="top">
 									<i class="ywifont ywicon-ceshi !text-[20px] text-blue-400 cursor-pointer" @click="openChatTest(scope.row)"></i>
 								</el-tooltip>
@@ -188,7 +191,12 @@
 			</template>
 		</el-dialog>
 	</AHMContainer>
-	<SqlAmisEdit v-else :supervisor="sqlEditMapSupervisor" @backLastPage="backLastPage" @updatePublished="updatePublishedById"></SqlAmisEdit>
+	<SqlAmisEdit
+		v-else
+		:supervisor="sqlEditMapSupervisor"
+		@backLastPage="backLastPage"
+		@updatePublished="updatePublishedById"
+	></SqlAmisEdit>
 </template>
 
 <script setup lang="ts">
@@ -270,7 +278,7 @@
 		ElMessage.success('鍒犻櫎鎴愬姛锛�');
 		const foundIndex = listData.value.findIndex((item) => row.id === item.id);
 		listData.value.splice(foundIndex, 1);
-		if(listData.value.length>0){
+		if (listData.value.length > 0) {
 			currentNode.value = listData.value[foundIndex];
 		}
 	});
@@ -347,9 +355,9 @@
 		const newNode = {
 			...moduleDialogFormValue.value,
 			id: res.group_id,
-			parent:moduleDialogFormValue.value.parent_id
-		}
-		Reflect.deleteProperty(newNode,'parent_id');
+			parent: moduleDialogFormValue.value.parent_id,
+		};
+		Reflect.deleteProperty(newNode, 'parent_id');
 		listData.value.push(newNode);
 		currentNode.value = newNode;
 		moduleDialogIsShow.value = false;
@@ -532,7 +540,6 @@
 useUpdateData({
 	event: 'supervisor.publish',
 	updateFun({ id, published }) {
-
 		updatePublishedById(id, published);
 	},
 });

--
Gitblit v1.9.3