diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js index 1171428e..eca6c12c 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js @@ -928,6 +928,7 @@ var Designer = { } }, init: function () { + debugger; this.initialize.initLayout(); this.initialize.initModel(); this.initialize.initCanvas(); @@ -936,9 +937,13 @@ var Designer = { this.contextMenu.init(); Designer.op.init(); this.initialize.initialized = true; - //表单或制度的时候不渲染模型图 - if (methodId != "data.form" && methodId != "control.policy") { - Designer.events.push("initialized"); + //Designer.events.push("initialized"); + let searchParam=window.location.search; + //打开模型预览页面表单或制度的时候不渲染模型图 + if(searchParam.indexOf("com.actionsoft.apps.coe.pal.publisher_publish_file_open")>=0 && methodId != "data.form" && methodId != "control.policy"){ + // if (methodId != "data.form" && methodId != "control.policy") { + Designer.events.push("initialized"); + //} } $("#designer_layout").on("scroll", function () {