From cb4c8706eb48183ac8875d92d4a950ad6b6675a2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 18 三月 2020 11:01:11 +0800
Subject: [PATCH] 2020-03-18

---
 src/templates/subtableconfig/index.jsx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx
index 5cb81ea..fc2a7e6 100644
--- a/src/templates/subtableconfig/index.jsx
+++ b/src/templates/subtableconfig/index.jsx
@@ -988,6 +988,7 @@
 
       let newLText = Utils.formatOptions(Utils.getTableFunc(setting, {MenuID: config.uuid, MenuName: config.tabName, MenuNo: config.tabNo}, config)) // 鍒涘缓瀛樺偍杩囩▼sql
       let DelText = Utils.formatOptions(Utils.dropfunc(setting.innerFunc))          // 鍒犻櫎瀛樺偍杩囩▼sql
+      let isExit = false    // 瀛樺偍杩囩▼鏄惁瀛樺湪
 
       new Promise(resolve => {
         let sysDefer = new Promise(resolve => {
@@ -1044,6 +1045,7 @@
           if (index === 0 && item.TVPText) {
             cloudfunc = item.TVPText
           } else if (index === 1 && item.Ltext) {
+            isExit = true
             localfunc = Utils.formatOptions(item.Ltext)
           }
         })
@@ -1092,6 +1094,8 @@
             duration: 10
           })
           return false
+        } else if (isExit) {
+          return 'drop'
         } else {
           return 'create'
         }

--
Gitblit v1.8.0