From f3167f8371d19d0ea8fe7d0e7af5517ff0b08cd2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 07 四月 2021 23:25:29 +0800
Subject: [PATCH] 2021-04-07

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

diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
index e71b802..8fb4902 100644
--- a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -50,6 +50,25 @@
         max: 200,
         editable: true,
         width: '25%'
+      },
+      {
+        title: '鍙栫粷瀵瑰��',
+        dataIndex: 'abs',
+        inputType: 'select',
+        editable: true,
+        required: false,
+        width: '25%',
+        render: (text) => {
+          if (text === 'true') {
+            return '鏄�'
+          } else {
+            return '鍚�'
+          }
+        },
+        options: [
+          {value: 'true', text: '鏄�'},
+          {value: 'false', text: '鍚�'}
+        ]
       }
     ]
   }
@@ -64,21 +83,6 @@
 
     _verify.enable = _verify.enable || 'false'
     _verify.columns = _verify.columns || []
-
-    // 鍚屾鏄剧ず鍒�
-    // 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 !== 'system') {
       _verify.enable = 'false'
@@ -159,6 +163,7 @@
       return
     }
     values.uuid = Utils.getuuid()
+    values.abs = 'false'
     verify.columns.push(values)
 
     this.setState({
@@ -364,6 +369,7 @@
         Column: item.field,
         Text: item.label,
         Width: 20,
+        abs: 'false',
         uuid: Utils.getuuid()
       })
     })

--
Gitblit v1.8.0