From 0c2775ca98c801a419209664befc45ae0a444356 Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期三, 05 七月 2023 16:37:53 +0800
Subject: [PATCH] 业务类型相关修正,修改了参照和枚举的保存 -- 补遗
---
Source/UBCS-WEB/src/components/BatchImport/index.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/BatchImport/index.vue b/Source/UBCS-WEB/src/components/BatchImport/index.vue
index b517e50..2bbbf18 100644
--- a/Source/UBCS-WEB/src/components/BatchImport/index.vue
+++ b/Source/UBCS-WEB/src/components/BatchImport/index.vue
@@ -84,7 +84,7 @@
import {
downloadHistoryImportTemplate,
downloadErrorFile,
- getHistoryLeftTree,
+ importDataShow,
downloadBatchImportApplyTemplate,
downloadBatchApplyCodeTemplate,
} from "../../api/batchImport/index";
@@ -208,6 +208,7 @@
},
methods: {
async beforeUpload(file) {
+ console.log(file, 'file');
const fileType = file.name.split(".").pop();
if (fileType !== "xlsx" && fileType !== "xls") {
// 涓婁紶鏍煎紡涓嶇鍚堣姹傦紝鎻愮ず閿欒淇℃伅骞跺彇娑堜笂浼�
@@ -243,6 +244,11 @@
});
},
onSuccess(res) {
+ if (Object.keys(res.data).length === 0) {
+ this.$message.success(this.title + '瀵煎叆鎴愬姛锛�')
+ this.dialogVisible = false
+ return
+ }
let fileName = res.data.filePath.split("/").pop();
if (res.data.fileOid) {
this.$message.error("璇蜂笅杞介敊璇俊鎭枃浠惰繘琛屾煡鐪嬶紒");
@@ -252,8 +258,8 @@
}
if (res.data.redisUuid) {
this.redisOid = res.data.redisUuid;
- getHistoryLeftTree(res.data.redisUuid).then((res) => {
- this.leftTree = res.obj.map((item) => {
+ importDataShow(res.data.redisUuid).then((res2) => {
+ this.leftTree = res2.data.data.map((item) => {
return {
...item.codeClassifyTemplateVO,
cloNamesList: item.cloNamesList,
@@ -264,6 +270,7 @@
}
},
uploadChange(file) {
+ console.log(file, 'file', file.status === "success");
if (file.status === "success" || file.status === "error") {
this.pageLoading.close();
}
--
Gitblit v1.10.0