From 04b5222fcf0c8f24b3a577cf3a05fb57462982a5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 11 八月 2020 09:18:27 +0800
Subject: [PATCH] 2020-08-11

---
 src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
index e50a5e6..e20c028 100644
--- a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -73,11 +73,21 @@
     }
 
     _verify.enable = _verify.enable || 'false'
-    _verify.columns = _verify.columns || []
-    _verify.columns = _verify.columns.map(col => {
-      col.Width = col.Width || 20
-      return col
-    })
+
+    // 鍚屾鏄剧ず鍒�
+    if (!_verify.columns || _verify.columns.length === 0) {
+      _verify.columns = []
+      config.columns.forEach(item => {
+        if (!item.field) return
+  
+        _verify.columns.push({
+          Column: item.field,
+          Text: item.label,
+          Width: 20,
+          uuid: Utils.getuuid()
+        })
+      })
+    }
 
     if (card.intertype !== 'inner' || card.innerFunc) {
       _verify.enable = 'false'

--
Gitblit v1.8.0