xy 2 years ago
parent 13ad1a6620
commit 1599659699

@ -78,7 +78,7 @@
</tbody>
</table>
<img src="/images/yz.png" alt=""
<img class="print-yz" src="/images/yz.png" alt=""
style="filter: saturate(2);position: absolute;right: 20px; bottom: 20px; width: 154px;">
<div
style="text-align: right;line-height: 2;margin-top: 20px;font-weight: 600;position: relative;z-index: 3;">
@ -111,12 +111,12 @@
var eprnstr = "<!--end print-->"; //设置打印结束区域
var prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
console.log(prnhtml)
window.document.body.innerHTML = prnhtml;
setTimeout(() => {
$(".print-yz").onload = function () {
window.print();
window.document.body.innerHTML = bdhtml;
},500)
}
}
</script>
@endsection

Loading…
Cancel
Save