Commit 7d179daf by 宋祥

1.调整文件下载,改为直接通过链接下载

parent 827df551
......@@ -1054,21 +1054,3 @@ let isProjectManager = function (parentId) {
}
}, {async: false})
}
/**
* 批量下载
*/
let batchDownload = function () {
var rows = resultGrid.getCheckedRows();
if (rows.length == 0) {
message("请先勾选要下载的数据!");
return;
}
JSUtils.submitGridsData("result", "HGWD001C", "batchDownload", false,
function (res) {
if (res.status > -1) {
window.open(res.extAttr.downloadUrl, '_blank');
}
}
);
}
......@@ -20,8 +20,9 @@ let download = function () {
* @param row
*/
let singleDownload = function (row) {
let fileId = $("#inqu_status-0-parentId").val();
let inInfo = new EiInfo();
inInfo.set("result-0-fileId", row['fileId']);
inInfo.set("result-0-fileId", fileId);
inInfo.set("result-0-docId", row['docId']);
EiCommunicator.send("HGWD001C", "add", inInfo, {
onSuccess(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