Commit 418c0ca4 authored by 黄奎's avatar 黄奎

11

parent 340656c0
......@@ -254,13 +254,13 @@
}, 2000);
},
checkCarrierFile(msg) {
var fileName = "服务信息.xls";
var fileName = "企业服务信息.xls";
if (this.isBrand) {
fileName = "消费品牌信息.xls";
}
var that = this;
this.apipost(
"/api/Trade/CheckBuildingCarrierFile",
"/api/Trade/CheckBrandEnterpriseFile",
msg,
(res) => {
if (res.data.resultCode == 1) {
......@@ -269,7 +269,7 @@
if (this.isBrand) {
this.loadingText = "正在下载消费品牌文件,请勿关闭或刷新页面...";
} else {
this.loadingText = "正在下载服务文件,请勿关闭或刷新页面...";
this.loadingText = "正在下载企业服务文件,请勿关闭或刷新页面...";
}
var fileUrl = res.data.data.fileUrl;
var filepath = res.data.data.filePath;
......@@ -289,7 +289,7 @@
responseType: 'arraybuffer',
onDownloadProgress: (progressEvent) => {
const progress = Math.round((progressEvent.loaded / progressEvent.total) * 100);
that.loadingText = `正在下载【` + (that.isBrand ? '品牌' : "服务") + `】文件` + progress +
that.loadingText = `正在下载【` + (that.isBrand ? '消费品牌' : "企业服务") + `】文件` + progress +
`%,请勿关闭或刷新页面...`;
// 在这里处理下载进度, 如更新界面上的进度条
}
......@@ -317,7 +317,7 @@
getDown() {
this.cityOptions = [];
this.apipost("/api/Trade/GetBuildingCarrierExportEnumList", {}, (res) => {
this.apipost("/api/Trade/GetBrandEnterpriseExportEnumList", {}, (res) => {
this.cities = res.data.data;
let data = res.data.data;
data.forEach((item) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment