新增弹窗状态码 modal_status
This commit is contained in:
@ -73,7 +73,7 @@ function remove(id) {
|
||||
function batchRemove() {
|
||||
var rows = $.getSelections("configId");
|
||||
if (rows.length == 0) {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
$.modalMsg("请选择要删除的数据", modal_status.WARNING);
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
|
@ -82,7 +82,7 @@ function remove(id) {
|
||||
function batchRemove() {
|
||||
var rows = $.getSelections("dictCode");
|
||||
if (rows.length == 0) {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
$.modalMsg("请选择要删除的数据", modal_status.WARNING);
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
|
@ -80,7 +80,7 @@ function remove(id) {
|
||||
function batchRemove() {
|
||||
var rows = $.getSelections("dictId");
|
||||
if (rows.length == 0) {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
$.modalMsg("请选择要删除的数据", modal_status.WARNING);
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
|
@ -91,6 +91,6 @@ function selectMenuTree() {
|
||||
}
|
||||
else
|
||||
{
|
||||
$.modalAlert("主菜单不能选择", "error");
|
||||
$.modalAlert("主菜单不能选择", modal_status.FAIL);
|
||||
}
|
||||
}
|
@ -72,7 +72,7 @@ function remove(id) {
|
||||
function batchRemove() {
|
||||
var rows = $.getSelections("postId");
|
||||
if (rows.length == 0) {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
$.modalMsg("请选择要删除的数据", modal_status.WARNING);
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
|
@ -86,7 +86,7 @@ function add() {
|
||||
},
|
||||
async : false,
|
||||
error : function(request) {
|
||||
$.modalAlert("系统错误", "error");
|
||||
$.modalAlert("系统错误", modal_status.FAIL);
|
||||
},
|
||||
success : function(data) {
|
||||
if (data.code == 0) {
|
||||
@ -94,7 +94,7 @@ function add() {
|
||||
$.parentReload();
|
||||
});
|
||||
} else {
|
||||
$.modalAlert(data.msg, "error");
|
||||
$.modalAlert(data.msg, modal_status.FAIL);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ function update() {
|
||||
},
|
||||
async : false,
|
||||
error : function(request) {
|
||||
$.modalAlert("系统错误", "error");
|
||||
$.modalAlert("系统错误", modal_status.FAIL);
|
||||
},
|
||||
success : function(data) {
|
||||
if (data.code == 0) {
|
||||
@ -99,7 +99,7 @@ function update() {
|
||||
$.parentReload();
|
||||
});
|
||||
} else {
|
||||
$.modalAlert(data.msg, "error");
|
||||
$.modalAlert(data.msg, modal_status.FAIL);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ function remove(id) {
|
||||
function batchRemove() {
|
||||
var rows = $.getSelections("roleId");
|
||||
if (rows.length == 0) {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
$.modalMsg("请选择要删除的数据", modal_status.WARNING);
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
|
@ -114,7 +114,7 @@ function add() {
|
||||
},
|
||||
async : false,
|
||||
error : function(request) {
|
||||
$.modalAlert("系统错误", "error");
|
||||
$.modalAlert("系统错误", modal_status.FAIL);
|
||||
},
|
||||
success : function(data) {
|
||||
if (data.code == 0) {
|
||||
@ -122,7 +122,7 @@ function add() {
|
||||
$.parentReload();
|
||||
});
|
||||
} else {
|
||||
$.modalAlert(data.msg, "error");
|
||||
$.modalAlert(data.msg, modal_status.FAIL);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ function update() {
|
||||
},
|
||||
async : false,
|
||||
error : function(request) {
|
||||
$.modalAlert("系统错误", "error");
|
||||
$.modalAlert("系统错误", modal_status.FAIL);
|
||||
},
|
||||
success : function(data) {
|
||||
if (data.code == 0) {
|
||||
@ -97,7 +97,7 @@ function update() {
|
||||
$.parentReload();
|
||||
});
|
||||
} else {
|
||||
$.modalAlert(data.msg, "error");
|
||||
$.modalAlert(data.msg, modal_status.FAIL);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -155,7 +155,7 @@ function resetPwd(userId) {
|
||||
function batchRemove() {
|
||||
var rows = $.getSelections("userId");
|
||||
if (rows.length == 0) {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
$.modalMsg("请选择要删除的数据", modal_status.WARNING);
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
|
Reference in New Issue
Block a user