From 694ccaf09ba45169169df3dd7662636535ac3e6a Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Tue, 19 Jul 2022 14:50:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=BB=BA=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E6=A8=A1=E5=9E=8B=E9=87=8D=E5=A4=8D=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/js/designer.extend.link.js | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js index 3d8b4872..9828f035 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.js @@ -3529,27 +3529,43 @@ function openRelationDig(obj,value) { text : "新建角色模型", cls : "green", handler : function() { - //跳转角色 + //根据角色 $.ajax({ type : "POST", url : "./jd?sid=" + CLB.sid - + "&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:ruuid, - methodId:methodId, - wsId:wsId + methodId:methodId }, 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("请勿重复新建角色模型!!!"); + }else{ + //跳转角色 + $.ajax({ + type : "POST", + url : "./jd?sid=" + + CLB.sid + + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_relation_shape_createDialogModel", + data : { + uuid:ruuid, + methodId:methodId, + wsId:wsId + }, + 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 : '确定',