修改新建角色模型重复新建问题
This commit is contained in:
parent
c2deee5393
commit
694ccaf09b
@ -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 : '确定',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user