From c639e8d51ce7d11038e6d9ba273453f76fd47813 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Tue, 2 Nov 2021 23:50:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=9B=B4=E6=8D=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 2 +- src/pages/role/list/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 5ef267d..99014f9 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -50,7 +50,7 @@ export default { // 权限菜单管理 doAssign:`/data/data/permission/doAssign`, - queryPermissionMenu:`/users/user-role/grantAllPermissions`, + queryAllMenus:`/users/users/permission/queryAllMenus`, savePer:`/users/user-role/rolePermissionService`, toAssign:`/data/data/permission/toAssign`, diff --git a/src/pages/role/list/index.vue b/src/pages/role/list/index.vue index 5f4f524..3d926e0 100644 --- a/src/pages/role/list/index.vue +++ b/src/pages/role/list/index.vue @@ -116,7 +116,7 @@ export default { }, methods: { getData() { - this.$get(`${this.api.listRole}?page=${this.page}&size=${this.pageSize}&name=${this.keyword}`).then(res => { + this.$get(`${this.api.listRole}?page=${this.page}&size=${this.pageSize}&name=${this.keyword}&platformId=${Setting.platformId}`).then(res => { this.listData = res.rolePage.records this.total = res.rolePage.total if(!this.listData.length && this.total){ @@ -147,8 +147,8 @@ export default { // 获取权限树 getPer(){ if(!this.permissions.length){ - this.$get(`${this.api.getPermissions}?platformId=${Setting.platformId}`).then(res => { - this.permissions = res.permissionMenu[0].children + this.$get(`${this.api.queryAllMenus}?platformId=${Setting.platformId}`).then(res => { + this.permissions = res.children[0].children }).catch(res => {}) } },