角色模型多次重复

This commit is contained in:
zhal 2022-08-04 23:10:30 +08:00
parent ed16209afc
commit b8b42abee8
2 changed files with 9 additions and 1 deletions

View File

@ -1121,6 +1121,14 @@ function openRelationDialog(obj, callback) {
},
success : function(msg) {
if (msg.result == "ok") {
//关闭新建按钮
var dlgButton=parent.$(".dlg-button button");
for(var i=0;i<dlgButton.length;i++){
var text=dlgButton.eq(i).text();
if(text=="新建绩效模型" || text=="新建表单模型"){
dlgButton.eq(i).hide();
}
}
window.open("./w?uuid=" + msg.data.uuid+"&teamId"
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val()));
}

View File

@ -3563,7 +3563,7 @@ function openRelationDig(obj,value) {
success : function(msg) {
if (msg.result == "ok") {
//关闭新建按钮
$(".dlg-button button").eq(2).hide();
$(".dlg-button button").eq(2).hide();
window.open("./w?uuid=" + msg.data.uuid+"&teamId="+$('#teamId').val()
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid=" + encodeURIComponent($('#sid').val()));
}