Commit 8d836ecb by naan1993

刪除角色增加提示

parent bd6ce38d
......@@ -74,14 +74,19 @@ Role.openChangeRole = function () {
*/
Role.delRole = function () {
if (this.check()) {
var ajax = new $ax(Feng.ctxPath + "/role/remove", function (data) {
Feng.success("删除成功!");
Role.table.refresh();
}, function (data) {
Feng.error("删除失败!" + data.responseJSON.message + "!");
});
ajax.set("roleId", this.seItem.id);
ajax.start();
var operation = function(){
var ajax = new $ax(Feng.ctxPath + "/role/remove", function () {
Feng.success("删除成功!");
Role.table.refresh();
}, function (data) {
Feng.error("删除失败!" + data.responseJSON.message + "!");
});
ajax.set("roleId", Role.seItem.id);
ajax.start();
};
Feng.confirm("是否删除角色 " + Role.seItem.name + "?",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