From a10868e96c5c66bfb06e812760100a9377f2fe31 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 28 七月 2021 10:26:51 +0800
Subject: [PATCH] 2021-07-28

---
 src/utils/utils.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/utils/utils.js b/src/utils/utils.js
index 9c928e7..93d0120 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -826,6 +826,11 @@
 
   // 鎺у埗鍙版墦鍗版暟鎹�
   let conLtext = []
+  let cols = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
+  for (let i = 0; i < 26; i++) {
+    cols.push('A' + cols[i])
+  }
+
   let _Ltext = data.map((item, lindex) => {
     let vals = []
     let convals = []
@@ -833,7 +838,8 @@
       if (col.import === 'false') return
 
       let val = item[col.Column] !== undefined ? item[col.Column] : ''
-      let _position = (_topline + lindex + 1) + dict['main.excel.line'] + ' ' + (cindex + 1) + dict['main.excel.column']  + ' '
+      let _colindex = cols[cindex] || (cindex + 1)
+      let _position = (_topline + lindex + 1) + dict['main.excel.line'] + ' ' + _colindex + dict['main.excel.column']  + ' '
 
       if (/^Nvarchar/ig.test(col.type)) {
         if (typeof(val) === 'number') {

--
Gitblit v1.8.0