Browse Source

更改了可视化接口地址

V1.0
dai 3 years ago
parent
commit
49ebd89fc2
  1. 2
      .env.production.sit
  2. 5
      src/views/modules/base/smartImport.vue

2
.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

5
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(); //FormDataappend('key', value)
formData.append("file", file.file); //
formData.append("code", code); //

Loading…
Cancel
Save