Browse Source

[完善] 预案赋能iframe获取父页面传递参数

develop
陈鹏飞 4 years ago
parent
commit
3b190997ca
  1. 10
      src/app/ui/plan-assistance/plan-assistance.component.ts

10
src/app/ui/plan-assistance/plan-assistance.component.ts

@ -7468,6 +7468,16 @@ export class PlanAssistanceComponent implements OnInit, AfterViewInit {
ngOnInit(): void {
const that = this;
// iframe接收消息
window.addEventListener('message', function(e) {
if (e.source != window.parent)
return;
console.log('children',e)
}, false);
window.setTimeout(() => {
document.getElementById('center').oncontextmenu = function(event) {
that.workingArea.cancelPaint();

Loading…
Cancel
Save