From fc8278b1e216e888c4ec9bdea4717743efdca23a Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Tue, 24 Aug 2021 17:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9D=83=E9=99=90=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/role.js | 12 ++++++++++++ src/views/user/components/data-permission.vue | 15 +++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) 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 @@