From 5ef3d9f4fd1b7edc167cca043498cf494960b52f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 25 八月 2023 17:16:23 +0800
Subject: [PATCH] 2023-08-25

---
 src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx b/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
index 7610cae..ee873ec 100644
--- a/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
+++ b/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
@@ -27,7 +27,8 @@
   onImportExcel = file => {
     const { btn } = this.props
 
-    let columns = btn.verify.columns.map(option => option.Column)
+    let btnColumns = btn.verify.columns.filter(option => option.import !== 'init')
+    let columns = btnColumns.map(option => option.Column)
     let range = btn.verify.range || 0
 
     // excel鏁版嵁澶勭悊
@@ -58,7 +59,7 @@
             errors = 'empty'
           } else {
             let iserror = false
-            btn.verify.columns.forEach(op => {
+            btnColumns.forEach(op => {
               let _name = typeof(header[op.Column]) === 'string' ? header[op.Column].replace(/(^\s*|\s*$)/g, '') : header[op.Column]
               let _text = op.Text ? op.Text.replace(/(^\s*|\s*$)/g, '') : op.Text
 

--
Gitblit v1.8.0