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 7f2606cf..b4eac891 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 @@ -1054,6 +1054,8 @@ function openRelationDialog(obj, callback) { var getteamId=parent.$("#teamId").val()==undefined?"":parent.$('#teamId').val(); if(method=="control.kpi") { + + //根据角色 $.ajax({ type: "POST", @@ -1133,6 +1135,7 @@ function openRelationDialog(obj, callback) { ] }); } else { + var relationDlg = parent.FrmDialog.open({ title: title, width: 710, @@ -1163,6 +1166,16 @@ function openRelationDialog(obj, callback) { text: methodName, cls: "green", handler: function () { + + //关闭新建按钮 + var dlgButton = parent.$(".dlg-button button"); + for (var i = 0; i < dlgButton.length; i++) { + var text = dlgButton.eq(i).text(); + if (text == "新建绩效模型") { + dlgButton.eq(i).hide(); + } + } + //根据角色 $.ajax({ type: "POST", @@ -1293,6 +1306,14 @@ function openRelationDialog(obj, callback) { text: methodName, cls: "green", handler: function () { + //判断表单图 + var dlgButton = parent.$(".dlg-button button"); + for (var i = 0; i < dlgButton.length; i++) { + var text = dlgButton.eq(i).text(); + if (text == "新建表单模型") { + dlgButton.eq(i).hide(); + } + } //跳转表单/绩效模型 $.ajax({ type: "POST",