...
|
...
|
@@ -521,7 +521,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,
|
|
|
type: 'PDF_FILE'
|
|
|
}
|
|
|
}
|
|
|
}, '*')
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
...
|
...
|
|