From 54645f374259b84d3b970c95cb39e00cd45504a7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 08 九月 2023 20:33:48 +0800
Subject: [PATCH] 2023-09-08

---
 src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx
index c834b60..eaeeb85 100644
--- a/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx
@@ -388,14 +388,23 @@
     const { verify } = this.state
 
     let _columns = JSON.parse(JSON.stringify(verify.columns))
-    let _cols = _columns.map(col => col.Column.toLowerCase())
+    let _names = {}
+    let _cols = columns.map(item => {
+      let key = item.Column.toLowerCase()
+      _names[key] = item.Text
+
+      return key
+    })
     let names = {$up: false}
 
     columns.forEach(col => {
       if (!col.field) return
-      if (_cols.includes(col.field.toLowerCase())) {
-        names.$up = true
-        names[col.field.toLowerCase()] = col.label
+      let key = col.field.toLowerCase()
+      if (_cols.includes(key)) {
+        if (_names[key] !== col.label) {
+          names.$up = true
+          names[key] = col.label
+        }
         return
       }
 

--
Gitblit v1.8.0