From aebc289d974721bb94b5ee85bb65d44e14055bb0 Mon Sep 17 00:00:00 2001 From: yujh Date: Wed, 2 Oct 2024 10:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E5=88=B6=E5=B0=81=E7=9A=AE=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/pal.pl.repository.designer.htm | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) 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 15f12ceb..14a28d09 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 @@ -486,7 +486,6 @@ if (methodId == 'data.form') { $('#bar_importPolicyFile').css('display','none') } - debugger; //新增 打开wps文件逻辑 if(methodId === 'control.policy' || methodId ==='engineering.standard' || methodId ==='process.scheme'){ //执行切换显示按钮 @@ -502,7 +501,6 @@ } $("#upfile").on('click',openUpFile);//附件上传页面 if(processOutput) { // 导出流程手册菜单控制 - // debugger; if (methodId == 'data.form') { $('#export_report').text('导出表单手册'); } else if (methodId == 'control.policy') { @@ -546,17 +544,24 @@ $.ajax({ url: "./jd?sid=" + sid + "&cmd=com.awspaas.user.apps.output.template.getCoverTpl", type: 'GET', + data: { + palId: ruuid + }, success: function (data) { debugger; console.log(data); - var opt = { - width : 100, - data : data - }; + //如果defaultJson不为空增加赋默认值的逻辑 + //如果defaultJson不为空增加赋默认值的逻辑 + var defaultJson = data.data.defaultJson; + if (defaultJson!== null && defaultJson !== undefined){ + $("#tpl_list").attr("value",defaultJson.id); + $("#tpl_list").text("文件封面:"+defaultJson.text); + } + $("#tpl_list").popBox({ cache:false, title:'请选择模版', - content: initContentHtml(data), + content: initContentHtml(data.data.list), position:'bottom-left', callback:function(item){ debugger; @@ -576,7 +581,7 @@ }, success: function (data) { $("#tpl_list").attr("value",$(historyRadioBoxArr[0]).attr("id")); - $("#tpl_list").text("封皮模版:"+$(historyRadioBoxArr[0]).attr("showText")); + $("#tpl_list").text("文件封面:"+$(historyRadioBoxArr[0]).attr("showText")); } }) @@ -614,7 +619,6 @@ function isGetHidden(){ - debugger; $.ajax({ url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.bpa.IsHidden_Modeling_Guidance", type: 'GET', @@ -891,7 +895,6 @@ } async function switchWpsDisplay(flag){ if(flag){//显示wps页面,隐藏其余页面 - debugger; $("#wpsPage").css('display','block'); $("#wpsPage").height($('#designer_viewport').height()); $("#shape_panel").css('display','none'); @@ -929,7 +932,6 @@ //保存wps内容 async function saveWps() { try { - debugger; await jssdk.ready(); await jssdk.save(); }catch (e) { @@ -938,7 +940,6 @@ } function openWpsUrl(){ - debugger; $.ajax({ url: "./jd?sid=" + sid + "&cmd=com.awspaas.user.apps.yiliwps.previewUrl&palId=" + ruuid +"&fileName="+updatedPolicyFileList, type: 'GET', @@ -1034,7 +1035,7 @@
- 封皮模版:默认 + 文件封面:默认