新建模型判断
This commit is contained in:
parent
4b20cdd776
commit
a1eb26a92b
@ -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{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user