From 0dd0bf217772b61681f8a24d277305af97d561a2 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 08 一月 2024 11:05:48 +0800
Subject: [PATCH] 1.导入问题修改
---
src/views/systemSetting/dataImport.vue | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/systemSetting/dataImport.vue b/src/views/systemSetting/dataImport.vue
index 14b88c0..7d0ce9a 100644
--- a/src/views/systemSetting/dataImport.vue
+++ b/src/views/systemSetting/dataImport.vue
@@ -830,7 +830,7 @@
}
// 鏁版嵁鎻愪氦鍓嶅幓闄ょ┖鏍兼柟娉�
- this.tableDataTrim()
+ // this.tableDataTrim()
const data = {
fileCode: this.excelCode,
@@ -2171,7 +2171,9 @@
// 妯℃澘涓嬭浇
async getExcel() {
const res = await DownLoadExcel({ FileCode: this.excelCode })
- window.location.href = res.data
+ if (res.code === '200') {
+ window.location.href = res.data
+ }
},
async getSelectArr() {
await this.getPrentOrganization()
@@ -2249,11 +2251,9 @@
tableDataTrim() {
if (this.tableData.length === 1) { // 涓�涓猻heet
this.tableData[0].forEach(i => {
- this.tableData[0].forEach(i => {
- for (const j in i) {
- i[j] = i[j].trim()
- }
- })
+ for (const j in i) {
+ i[j] = i[j].trim()
+ }
})
}
--
Gitblit v1.9.3