From 0c1c59933e95c4c691d6ba3d11bf4aef98fe9e8d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 15 四月 2020 15:37:44 +0800
Subject: [PATCH] 2020-04-15

---
 src/templates/comtableconfig/index.jsx |   92 ++++------------------------------------------
 1 files changed, 8 insertions(+), 84 deletions(-)

diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx
index 2eed00d..8a7c53b 100644
--- a/src/templates/comtableconfig/index.jsx
+++ b/src/templates/comtableconfig/index.jsx
@@ -1396,98 +1396,22 @@
   verifySubmit = () => {
     const { card } = this.state
     let config = JSON.parse(JSON.stringify(this.state.config))
-    
-    if (card.OpenType === 'excelIn') {
-      this.verifyRef.handleConfirm().then(res => {
-        
-        config.action = config.action.map(item => {
-          if (item.uuid === card.uuid) {
-            item.verify = res
-          }
-    
-          return item
-        })
-    
-        this.setState({
-          profileVisible: false,
-          config: config,
-          card: '',
-        })
-      })
-    } else if (card.execMode) {
-      this.verifyRef.handleConfirm().then(res => {
-        
-        config.action = config.action.map(item => {
-          if (item.uuid === card.uuid) {
-            item.verify = res
-          }
-    
-          return item
-        })
-    
-        this.setState({
-          profileVisible: false,
-          config: config,
-          card: '',
-        })
-      })
-    } else {
-      let _verify = this.verifyRef.state.verify
-      let _loading = this.verifyRef.state.updateloading
 
-      if (card.OpenType !== 'excelOut' && _verify.default === 'false' && _verify.scripts.length === 0) {
-        notification.warning({
-          top: 92,
-          message: '涓嶆墽琛岄粯璁ql鏃讹紝蹇呴』璁剧疆鑷畾涔夎剼鏈紒',
-          duration: 10
-        })
-        return
-      } else if (card.OpenType === 'excelOut') {
-        let _cols = _verify.columns.map(col => col.Column)
-        let _vcols = Array.from(new Set(_cols))
-        if (_cols.length > _vcols.length) {
-          notification.warning({
-            top: 92,
-            message: 'Excel鍒楀瓧娈靛悕锛屼笉鍙噸澶�!',
-            duration: 10
-          })
-          
-          return
-        }
-      }
-
+    this.verifyRef.handleConfirm().then(res => {
       config.action = config.action.map(item => {
         if (item.uuid === card.uuid) {
-          item.verify = _verify
+          item.verify = res
         }
   
         return item
       })
   
-      if (_loading) {
-        let _this = this
-
-        confirm({
-          content: `瀛樺湪鏈繚瀛橀」锛岀‘瀹氭彁浜ゅ悧锛焋,
-          okText: this.state.dict['header.confirm'],
-          cancelText: this.state.dict['header.cancel'],
-          onOk() {
-            _this.setState({
-              profileVisible: false,
-              config: config,
-              card: '',
-            })
-          },
-          onCancel() {}
-        })
-      } else {
-        this.setState({
-          profileVisible: false,
-          config: config,
-          card: '',
-        })
-      }
-    }
+      this.setState({
+        profileVisible: false,
+        config: config,
+        card: ''
+      })
+    })
   }
 
   /**

--
Gitblit v1.8.0