修改新建角色模型重复新建问题
This commit is contained in:
parent
c2deee5393
commit
694ccaf09b
@ -3529,27 +3529,43 @@ function openRelationDig(obj,value) {
|
|||||||
text : "新建角色模型",
|
text : "新建角色模型",
|
||||||
cls : "green",
|
cls : "green",
|
||||||
handler : function() {
|
handler : function() {
|
||||||
//跳转角色
|
//根据角色
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type : "POST",
|
type : "POST",
|
||||||
url : "./jd?sid="
|
url : "./jd?sid="
|
||||||
+ CLB.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 : {
|
data : {
|
||||||
uuid:ruuid,
|
uuid:ruuid,
|
||||||
methodId:methodId,
|
methodId:methodId
|
||||||
wsId:wsId
|
|
||||||
},
|
},
|
||||||
success : function(msg) {
|
success : function(msg) {
|
||||||
if (msg.result == "ok") {
|
if (msg.data.result == "ok") {
|
||||||
window.open("./w?uuid=" + msg.data.uuid+"&teamId"
|
window.top.$.simpleAlert("请勿重复新建角色模型!!!");
|
||||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val()));
|
}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 : '确定',
|
text : '确定',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user