新建模型判断

This commit is contained in:
zhal 2022-07-20 22:00:51 +08:00
parent 4b20cdd776
commit a1eb26a92b

View File

@ -971,7 +971,6 @@ function removeTr(obj) {
//打开对象关联Dialog
function openRelationDialog(obj, callback) {
debugger;
var title = obj.closest('tr').find('td:first').text();
if (title == undefined || title == '') {
title = '选择模型对象';
@ -982,6 +981,8 @@ function openRelationDialog(obj, callback) {
var methodName="";
if(title=="支持文件"){
methodName="新建表单模型";
//data.form
method="data.form";
}else if(method=="control.kpi"){
methodName="新建绩效模型";
}
@ -1105,6 +1106,7 @@ function openRelationDialog(obj, callback) {
methodId:method
},
success : function(msg) {
debugger;
if (msg.data.result == "ok") {
window.top.$.simpleAlert("请勿重复"+methodName+"!!!");
}else{