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

文件下载修改

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