From 49ebd89fc211abf5275e1382c4204b1856dc2f5d Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 6 Mar 2023 14:24:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BA=86=E5=8F=AF=E8=A7=86?= =?UTF-8?q?=E5=8C=96=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production.sit | 2 +- src/views/modules/base/smartImport.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.production.sit b/.env.production.sit index 18f137550..2191f2dde 100644 --- a/.env.production.sit +++ b/.env.production.sit @@ -2,6 +2,6 @@ NODE_ENV=production # VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api # VUE_APP_API_SERVER = http://192.168.1.140/api VUE_APP_API_SERVER = http://219.146.91.110:30801/api -VUE_APP_BIPASS_API_SERVER = http://bipaas.elinkservice.com:30801/linkdata/linkdata-gateway/route +VUE_APP_BIPASS_API_SERVER = http://dcommunity-dev.elinkservice.cn:30801/linkdata/linkdata-gateway/route VUE_APP_NODE_ENV=prod:sit VUE_APP_PUBLIC_PATH=epmet-oper diff --git a/src/views/modules/base/smartImport.vue b/src/views/modules/base/smartImport.vue index 17c7ae81f..6c231d0bd 100644 --- a/src/views/modules/base/smartImport.vue +++ b/src/views/modules/base/smartImport.vue @@ -409,7 +409,8 @@ export default { .then((res) => { console.log("res-up", res); if (res.data.code == 0 && res.data.msg == "success") { - this.upload2(this.fileData, this.importCode); + // this.upload2(this.fileData, this.importCode); + this.afterSuccess(); } else this.$message.error(res.data.msg); }) .catch((err) => { @@ -423,7 +424,7 @@ export default { async upload2(file, code) { this.importLoading = true; - this.importBtnTitle = "正在上次中..."; + this.importBtnTitle = "正在上传中..."; const formData = new FormData(); //FormData对象,添加参数只能通过append('key', value)的形式添加 formData.append("file", file.file); //添加文件对象 formData.append("code", code); //添加文件对象