优化防止产生错误数据
This commit is contained in:
parent
07d8018b11
commit
5c665f3aab
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user