Commit cb8be08a authored by 华国豪's avatar 华国豪 🙄

修改公告下载

parent 97b5e4d7
...@@ -273,8 +273,13 @@ ...@@ -273,8 +273,13 @@
}); });
}, },
downloadSingle(obj){ downloadSingle(obj){
let reg = /^http(s)?:\/\/(.*?)\// const link = document.createElement('a');
this.downloadFileRename(obj.Url.replace(reg,''),obj.Name); let _loadUrl=this.domainManager().UploadUrl;
link.href = obj.Url;
document.body.appendChild(link);
window.open(obj.Url)
// let reg = /^http(s)?:\/\/(.*?)\//
// this.downloadFileRename(obj.Url.replace(reg,''),obj.Name);
}, },
downloadOne(obj){ downloadOne(obj){
this.downloadFileRename(obj.url,obj.name); this.downloadFileRename(obj.url,obj.name);
......
...@@ -1505,9 +1505,10 @@ export default { ...@@ -1505,9 +1505,10 @@ export default {
downloadSingle(obj){ downloadSingle(obj){
// let reg = /^http(s)?:\/\/(.*?)\// // let reg = /^http(s)?:\/\/(.*?)\//
// this.downloadFileRename(obj.Url.replace(reg,''),obj.Name); // this.downloadFileRename(obj.Url.replace(reg,''),obj.Name);
let dom = document.querySelector("#groupTourOrderByTuan_DownLoad"); // let dom = document.querySelector("#groupTourOrderByTuan_DownLoad");
dom.href = obj.Url; // dom.href = obj.Url;
dom.click(); // dom.click();
window.open(obj.Url)
}, },
closeChangeMachie2(done){ closeChangeMachie2(done){
this.outerVisibleNot = false this.outerVisibleNot = false
......
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