Commit bd6ce38d by naan1993

删除用户增加提示

parent 71141591
...@@ -98,15 +98,20 @@ MgrUser.roleAssign = function () { ...@@ -98,15 +98,20 @@ MgrUser.roleAssign = function () {
*/ */
MgrUser.delMgrUser = function () { MgrUser.delMgrUser = function () {
if (this.check()) { if (this.check()) {
var userId = this.seItem.id;
var ajax = new $ax(Feng.ctxPath + "/mgr/delete", function (data) { var operation = function(){
Feng.success("删除成功!"); var userId = MgrUser.seItem.id;
MgrUser.table.refresh(); var ajax = new $ax(Feng.ctxPath + "/mgr/delete", function () {
}, function (data) { Feng.success("删除成功!");
Feng.error("删除失败!" + data.responseJSON.message + "!"); MgrUser.table.refresh();
}); }, function (data) {
ajax.set("userId", userId); Feng.error("删除失败!" + data.responseJSON.message + "!");
ajax.start(); });
ajax.set("userId", userId);
ajax.start();
};
Feng.confirm("是否删除用户" + MgrUser.seItem.account + "?",operation);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment