|
|
|
@ -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(); |
|
|
|
|