From c2deee5393a6728498650d1a51326797975bdbcf Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Tue, 19 Jul 2022 14:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BB=A9=E6=95=88=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E5=8F=AF=E9=87=8D=E5=A4=8D=E6=96=B0=E5=BB=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/coe.pal.processlevel.create.js | 37 ++++++++++++++----- 1 file changed, 28 insertions(+), 9 deletions(-) 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 4f948a8e..ddd8a786 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 @@ -971,7 +971,7 @@ function removeTr(obj) { //打开对象关联Dialog function openRelationDialog(obj, callback) { - ; + debugger; var title = obj.closest('tr').find('td:first').text(); if (title == undefined || title == '') { title = '选择模型对象'; @@ -1016,25 +1016,44 @@ function openRelationDialog(obj, callback) { text : methodName, cls : "green", handler : function() { - //跳转表单/绩效模型 + + //根据角色 $.ajax({ type : "POST", url : "./jd?sid=" + $("#sid").val() - + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_shape_createDialogModel", + + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_find_same_role", data : { uuid:uuid, - methodId:method, - wsId:$("#wsid").val() + methodId:method }, success : function(msg) { - if (msg.result == "ok") { - window.open("./w?uuid=" + msg.data.uuid+"&teamId" - + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val())); - } + if (msg.data.result == "ok") { + window.top.$.simpleAlert("请勿重复"+methodName+"!!!"); + }else{ + //跳转表单/绩效模型 + $.ajax({ + type : "POST", + url : "./jd?sid=" + + $("#sid").val() + + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_shape_createDialogModel", + data : { + uuid:uuid, + methodId:method, + wsId:$("#wsid").val() + }, + success : function(msg) { + if (msg.result == "ok") { + window.open("./w?uuid=" + msg.data.uuid+"&teamId" + + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val())); + } + } + }); + } } }); + } }, {text:'确定',cls:"blue",handler:function(){