From 0c86e5e2eaf907dfcb63aea13e6efac3ccc52cce Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 25 二月 2020 11:06:20 +0800
Subject: [PATCH] 2020-02-25

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

diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx
index 5c221c9..fb223e3 100644
--- a/src/templates/comtableconfig/index.jsx
+++ b/src/templates/comtableconfig/index.jsx
@@ -1458,6 +1458,18 @@
           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
+        }
       }
 
       config.action = config.action.map(item => {

--
Gitblit v1.8.0