From 9cf5fc474d2159aad973e3208fbef670f325307f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 25 十一月 2020 17:57:41 +0800
Subject: [PATCH] 2020-11-25

---
 src/templates/subtableconfig/index.jsx |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx
index a5e680a..eb3f3da 100644
--- a/src/templates/subtableconfig/index.jsx
+++ b/src/templates/subtableconfig/index.jsx
@@ -751,10 +751,6 @@
           duration: 5
         })
       } else {
-        this.setState({
-          loading: true
-        })
-
         // 瀛愯彍鍗曚俊鎭獙璇侀�氳繃鍚庯紝璺宠浆瀛愭寜閽厤缃〉闈�
         let _view = ''
         let _subtab = editSubTab
@@ -764,6 +760,15 @@
         } else if (btn.OpenType === 'popview') {
           _view = btn.tabType        // 鏂板脊绐楁爣绛炬ā鏉�
           _subtab = btn
+
+          if (editSubTab) {
+            notification.warning({
+              top: 92,
+              message: '寮圭獥(鏍囩)涓笉鏀寔姝ゆ寜閽墦寮�鏂瑰紡锛�',
+              duration: 5
+            })
+            return
+          }
         }
 
         if (editSubTab) {
@@ -786,6 +791,10 @@
           subConfig: '',
           tabview: _view
         }
+
+        this.setState({
+          loading: true
+        })
 
         Api.getSystemConfig({
           func: 'sPC_Get_LongParam',
@@ -1001,7 +1010,7 @@
   render () {
     const { activeKey, config, chartview } = this.state
 
-    const confActions = config.action.filter(_action => !_action.origin && ['pop', 'popview', 'blank', 'tab'].includes(_action.OpenType))
+    const confActions = config.action.filter(_action => !_action.origin && ['pop', 'popview', 'blank'].includes(_action.OpenType))
 
     return (
       <div className="model-subtable-board">

--
Gitblit v1.8.0