CustomJSError : Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'. 在向父页面中通信的时候提示这个,报表是在父页面中有个弹框,弹框里面使用iframe嵌套的报表,在报表中选择数据之后传给父页面,没有传递成功还报错了,使用的window.parent.postMessage()是什么原因
window.parent.postMessage(p1,"*") 参数改成*号就可以了
JS实现弹窗后数据回填
参考这个
JS实现弹窗后数据回填 https://help.fanruan.com/finereport/doc-view-3127.html