Authored by ww

Merge branch 'master-mj' of http://113.200.75.45:82/monitor_v3/hg-monitor-web into master-mj

... ... @@ -258,7 +258,18 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
url: domainName + '/api-web/inspectiontask/getPdfPath?batchNo=' + batchNo
}).done(function (response) {
if ("success" == response.msg) {
window.open("/src/lib/extend/pdfjs/web/viewer.html?test=" + encodeURIComponent(response.pdfPath));
let win = window.top;
if (win) {
window.top.postMessage({
type: "previewFile",
message: {
params: {
url: response.pdfPath
}
}
}, '*')
}
// window.open("/src/lib/extend/pdfjs/web/viewer.html?test=" + encodeURIComponent(response.pdfPath));
}
})
}
... ...