Commit efebecd6 by naan1993

刪除部門增加提示

parent 8d836ecb
...@@ -72,14 +72,19 @@ Dept.openDeptDetail = function () { ...@@ -72,14 +72,19 @@ Dept.openDeptDetail = function () {
*/ */
Dept.delete = function () { Dept.delete = function () {
if (this.check()) { if (this.check()) {
var ajax = new $ax(Feng.ctxPath + "/dept/delete", function (data) {
var operation = function(){
var ajax = new $ax(Feng.ctxPath + "/dept/delete", function () {
Feng.success("删除成功!"); Feng.success("删除成功!");
Dept.table.refresh(); Dept.table.refresh();
}, function (data) { }, function (data) {
Feng.error("删除失败!" + data.responseJSON.message + "!"); Feng.error("删除失败!" + data.responseJSON.message + "!");
}); });
ajax.set("deptId",this.seItem.id); ajax.set("deptId",Dept.seItem.id);
ajax.start(); ajax.start();
};
Feng.confirm("是否刪除该部门?", 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