Commit 96163cd3 authored by 黄奎's avatar 黄奎

文件下载修改

parent 5e145b08
...@@ -315,6 +315,7 @@ ...@@ -315,6 +315,7 @@
}, 2000); }, 2000);
}, },
checkFile(msg) { checkFile(msg) {
var fileName="品牌信息.xls";
var that = this; var that = this;
this.apipost( this.apipost(
"/api/Trade/CheckBrandFile", "/api/Trade/CheckBrandFile",
...@@ -343,7 +344,7 @@ ...@@ -343,7 +344,7 @@
// var newUrl = that.domainManager().DomainUrl + fileUrl; // var newUrl = that.domainManager().DomainUrl + fileUrl;
// var linkObj = document.getElementById("downloadLink"); // var linkObj = document.getElementById("downloadLink");
// linkObj.href = newUrl; // linkObj.href = newUrl;
// linkObj.setAttribute("download", "品牌信息.xls"); // linkObj.setAttribute("download", fileName);
// linkObj.click(); // linkObj.click();
var apiurl = that.domainManager().DomainUrl + "/api/Trade/GetFile"; var apiurl = that.domainManager().DomainUrl + "/api/Trade/GetFile";
...@@ -368,12 +369,11 @@ ...@@ -368,12 +369,11 @@
that.downLoadLoading = false; that.downLoadLoading = false;
that.loadingText = ""; that.loadingText = "";
that.apipost("/api/Trade/DeleteKey", deleteparams, (res) => { that.apipost("/api/Trade/DeleteKey", deleteparams, (res) => {
}) })
that.dialogVisible = false; that.dialogVisible = false;
}).catch(function (res) {}); }).catch(function (res) {
console.log(res);
});
} }
} }
); );
......
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