- GrapeCity.ActiveReports.JSViewer.create({
- element: '#viewerContainer',
- reportService: {
- url: '报表服务地址'
- },
- action: (actionType, actionParams) => {
- switch (actionType) {
- case 'print':
- setTimeout(() => {
- var box = document.getElementById("modal-root")
- if (box) {
- //删除打印提示
- box.parentNode.removeChild(box)
- }
- }, 5000)
- break
- default:
- break
- }
- }
- })
复制代码
分享一个不是办法的办法,反正也能解决问题 |