diff --git a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm index f330c976..f27938ff 100755 --- a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm +++ b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.htm @@ -465,6 +465,7 @@ } $(document).ready(function(){ + debugger; // 自定义帮助扩展 initCustomHelpToolExtMenuUrl(); if (methodId !== 'process.epc' && methodId != 'control.policy'&& methodId != 'process.flowchart') { @@ -485,6 +486,14 @@ $('#bar_importPolicyFile').css('display','none') } + //新增 打开wps文件逻辑 + if((methodId === 'control.policy' && ext3==='I/O_L4')|| methodId ==='engineering.standard' || methodId ==='process.scheme'){ + //执行切换显示按钮 + switchWpsDisplay(true); + }else{ + switchWpsDisplay(false); + } + isGetHidden(); if (!installBatch) {// 未安装批处理应用,删除功能入口 $('li[ac=batchreplace]').remove(); @@ -517,7 +526,7 @@ verHtml += ""; } $("#versionGroup").html(verHtml); - $("#dialog_version_compare .awsui-checkbox").check(); + //$("#dialog_version_compare .awsui-checkbox").check(); //三员管理,密级回显 if (isHighSecurity == "true") { $("#securityLevelName").show() @@ -698,7 +707,7 @@ $('#shape_panel_more_shape').show(); var panelHeight=$('#designer_viewport').height(); $('#shape_panel').height(panelHeight - 40); - $('#shape_panel_more_shape').css('margin-top',panelHeight - 40); + $('#shape_panel_more_shape').css('margin-top',panelHeight); } //计算页面渲染效率 //var t = window.performance.timing; @@ -820,6 +829,35 @@ ifrm.style.height = getDocHeight(doc) + 4 + "px"; ifrm.style.visibility = 'visible'; } + function switchWpsDisplay(flag){ + debugger; + if(flag){//显示wps页面,隐藏其余页面 + $("#wpsPage").css('display','block'); + $("#wpsPage").height($('#designer_viewport').height()); + $("#shape_panel").css('display','none'); + $("#shape_panel_more_shape").css('display','none'); + $("#designer_layout").css('display','none'); + //打开wps在线编辑页面 + openWpsUrl(); + }else{ + $("#wpsPage").css('display','none'); + $("#shape_panel").css('display','block'); + $("#shape_panel_more_shape").css('display','block'); + $("#designer_layout").css('display','block'); + } + } + function openWpsUrl(){ + $.ajax({ + url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.addons.wpsonline_get_previewUrl&fileId=" + ruuid, + type: 'GET', + success: function(data) { + if(data.code ===200){ + //初始化建模导引 + $("#wpsUrl").attr("src", data.data.link); + } + } + }); + } //渲染形状配置信息 /*function painterShapeConfig(dataArray, shapeId, key) { for (var i = 0; i < dataArray.length; i++) { @@ -1215,7 +1253,7 @@
-