fixed:role delete api
parent
bd15d1b817
commit
0188dcfc5d
|
|
@ -101,8 +101,7 @@
|
|||
layer.close(index);
|
||||
let idsStr = okUtils.tableBatchCheck(table);
|
||||
if (idsStr) {
|
||||
okUtils.ajax("/role/batchDel", "post", {idsStr: idsStr}, true).done(function (response) {
|
||||
console.log(response);
|
||||
okUtils.ajax("/role/deleteRole", "delete", {idsStr: idsStr}, true).done(function (response) {
|
||||
okUtils.tableSuccessMsg(response.msg);
|
||||
}).fail(function (error) {
|
||||
console.log(error)
|
||||
|
|
@ -119,8 +118,7 @@
|
|||
|
||||
function del(id) {
|
||||
okLayer.confirm("确定要删除吗?", function () {
|
||||
okUtils.ajax("/user/batchDel", "post", {idsStr: id}, true).done(function (response) {
|
||||
console.log(response);
|
||||
okUtils.ajax("/role/deleteRole", "delete", {idsStr: id}, true).done(function (response) {
|
||||
okUtils.tableSuccessMsg(response.msg);
|
||||
}).fail(function (error) {
|
||||
console.log(error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue