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(){