完成角色删除和权限编辑

This commit is contained in:
mkg
2021-03-20 22:41:00 +08:00
parent 3dcdf8e1a3
commit 328458eda9
6 changed files with 74 additions and 32 deletions
+2 -2
View File
@@ -184,7 +184,7 @@
layer.close(index);
let loading = layer.load();
$.ajax({
url: MODULE_PATH + "remove/" + obj.data['roleId'],
url: MODULE_PATH + "remove/" + obj.data['id'],
dataType: 'json',
type: 'delete',
success: function (result) {
@@ -202,7 +202,7 @@
}
window.batchRemove = function (obj) {
let ids = common.checkField(obj,'roleId');
let ids = common.checkField(obj,'id');
if (common.isEmpty(ids)) {
popup.warning("未选中数据");
return false;