From 18aeed6ed17a3aeacc157e0019159957aeaec556 Mon Sep 17 00:00:00 2001
From: gerson <1405270578@qq.com>
Date: 星期日, 08 九月 2024 13:40:44 +0800
Subject: [PATCH] 意向分组;编辑时更新为未发布

---
 src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue b/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue
index 021253a..c1aa22e 100644
--- a/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue
+++ b/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue
@@ -77,9 +77,10 @@
 import * as supervisorApi from '/@/api/supervisorAdmin';
 import { updateSqlApi } from '/@/api/supervisorAdmin';
 import { useCompRef } from '/@/utils/types';
+import { SupervisorPublished } from '../types';
 
 const props = defineProps(['supervisor']);
-const emit = defineEmits(['backLastPage']);
+const emit = defineEmits(['backLastPage', 'updatePublished']);
 const log = console.log;
 const jsonCode = ref(codeExample.jsonCode);
 const dockCode = ref(codeExample.dockCode);
@@ -223,7 +224,9 @@
 		{
 			loading: false,
 		}
-	);
+	).then(() => {
+		emit('updatePublished', props.supervisor.id, SupervisorPublished.N);
+	});
 };
 
 const sqlCodeChange = debounce((val) => {
@@ -289,8 +292,6 @@
 		rsTableRef.value.setCurrentRow(configList.value[0]);
 		// dockRowChange(configList.value[0]);
 	}
-
-
 
 	if (checkRsUpdate(originConfig, configList.value)) {
 		// 鑷姩鏇存柊Rs

--
Gitblit v1.9.3