解决绩效模型可重复新建问题

This commit is contained in:
zhal 2022-07-19 14:49:53 +08:00
parent f08360fc7e
commit c2deee5393

View File

@ -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,6 +1016,21 @@ 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_find_same_role",
data : {
uuid:uuid,
methodId:method
},
success : function(msg) {
if (msg.data.result == "ok") {
window.top.$.simpleAlert("请勿重复"+methodName+"!!!");
}else{
//跳转表单/绩效模型
$.ajax({
type : "POST",
@ -1036,6 +1051,10 @@ function openRelationDialog(obj, callback) {
}
});
}
}
});
}
},
{text:'确定',cls:"blue",handler:function(){
var attrId = obj.attr("id");