From 2aad38492728b5cddc45412e88ee9e0c45b99a58 Mon Sep 17 00:00:00 2001 From: yujh_java Date: Thu, 11 Sep 2025 15:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E5=9B=BE=E5=88=87=E6=8D=A2=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/page/pal.pl.repository.designer.htm | 11 ++++++++++- .../js/coe.pal.processlevel.create.js | 7 ++++++- 2 files changed, 16 insertions(+), 2 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 79c9b524..e963e996 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 @@ -1230,7 +1230,7 @@ function updateMrStatus(){//更新管理办法的生效状态 //先判断是否要更新管理办法的生效状态 - if(mrStatus == 0){//生效 + if(mrStatus == undefined || mrStatus == 0){//生效 //先弹出二次确认框 var options = { title : "当前管理办法未生效,是否更新管理办法的生效状态?", @@ -1241,6 +1241,15 @@ type: 'GET', success: function (data) { mrStatus = data.data.mrStatus; + //同步修改文件属性的默认位置 + var targetElement = $('#file_attribute').contents().find('#management_requirements_Location'); + // 验证是否获取到了对象 + if (targetElement.length) { + targetElement.attr("value","活动说明后"); + var targetShowElement = $('#file_attribute').contents().find('#_awsui_combobox_display_value_management_requirements_Location'); + targetShowElement.attr("value","活动说明后"); + saveContent(targetElement); + } } }); }, diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.pal.processlevel.create.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.pal.processlevel.create.js index debb226b..1585f71f 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.pal.processlevel.create.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.pal.processlevel.create.js @@ -613,7 +613,12 @@ function saveDialogTableValue(tableValue,id,dom) { } function saveContent(obj) { var sid = $("#sid").val(); - var uuid = $("#id").val(); + //var uuid = $("#id").val(); + var uuidDom = $("#id"); + if (uuidDom.length === 0) { + uuidDom = parent.$('#file_attribute').contents().find("#id"); + } + var uuid= uuidDom.val(); var id = obj.attr("id"); var jsonContent = obj.val(); var isRequired = obj.attr('isRequired')