diff --git a/src/api/role.js b/src/api/role.js index a812ffb..38f64d9 100644 --- a/src/api/role.js +++ b/src/api/role.js @@ -16,6 +16,7 @@ export function edit(data) { data }) } + export function del(params) { return api({ url: '/role', @@ -49,4 +50,15 @@ export function getAllRole() { }) } +export function updateDataScope(data) { + return api({ + url: '/role/updateDataScope', + method: 'put', + data, + paramsSerializer: function(data) { + return qs.stringify(data, { indices: false }) + } + }) +} + export default { add, edit, del, getList } diff --git a/src/views/user/components/data-permission.vue b/src/views/user/components/data-permission.vue index 50d19ec..5ceb2d4 100644 --- a/src/views/user/components/data-permission.vue +++ b/src/views/user/components/data-permission.vue @@ -58,7 +58,7 @@