Commit cf22c4b2 by 宋祥

1.fixBug:下载文件时自定义文件名

parent ca864c64
...@@ -27,7 +27,8 @@ let singleDownload = function (row) { ...@@ -27,7 +27,8 @@ let singleDownload = function (row) {
EiCommunicator.send("HGWD001C", "add", inInfo, { EiCommunicator.send("HGWD001C", "add", inInfo, {
onSuccess(res) { onSuccess(res) {
if (res.status > -1) { if (res.status > -1) {
window.open(res.extAttr.url, '_blank'); let url = res.extAttr.url + "?filename=" + row['docName'];
window.open(url, '_blank');
} else { } else {
message(res.msg); message(res.msg);
} }
......
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