From 5c665f3aab1a1e85f00ceda0545018319c985832 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Thu, 3 Nov 2022 10:56:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=98=B2=E6=AD=A2=E4=BA=A7?= =?UTF-8?q?=E7=94=9F=E9=94=99=E8=AF=AF=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/coe.pal.processlevel.create.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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",