Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan-dian committed Apr 19, 2019
1 parent cfd9334 commit 6f08a25
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions application/admin/view/user/group_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,12 @@
layer.close(index);
var status = data.elem.checked ? 1 : 0;
id = data.elem.value;
$.post("{:url('/admin/grouplist')}", {id: id, status: status, type: 2}, function (data) {
$.post("{:url('/admin/disableGroup')}", {id: id, status: status}, function (data) {
var icon = 5;
if (data.code) {
icon = 6;
}
layer.msg(data.msg, {icon: icon, time: 1500}, function () {
if (data.code) {
tableIns.reload();
}
layui.layer.closeAll();
});
layer.msg(data.msg, {icon: icon, time: 1500});
});
}, 500);
});
Expand Down

0 comments on commit 6f08a25

Please sign in to comment.