权限更换接口

ui1
e 3 years ago
parent 4ab8483486
commit c639e8d51c
  1. 2
      src/api/index.js
  2. 6
      src/pages/role/list/index.vue

@ -50,7 +50,7 @@ export default {
// 权限菜单管理 // 权限菜单管理
doAssign:`/data/data/permission/doAssign`, doAssign:`/data/data/permission/doAssign`,
queryPermissionMenu:`/users/user-role/grantAllPermissions`, queryAllMenus:`/users/users/permission/queryAllMenus`,
savePer:`/users/user-role/rolePermissionService`, savePer:`/users/user-role/rolePermissionService`,
toAssign:`/data/data/permission/toAssign`, toAssign:`/data/data/permission/toAssign`,

@ -116,7 +116,7 @@ export default {
}, },
methods: { methods: {
getData() { 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.listData = res.rolePage.records
this.total = res.rolePage.total this.total = res.rolePage.total
if(!this.listData.length && this.total){ if(!this.listData.length && this.total){
@ -147,8 +147,8 @@ export default {
// //
getPer(){ getPer(){
if(!this.permissions.length){ if(!this.permissions.length){
this.$get(`${this.api.getPermissions}?platformId=${Setting.platformId}`).then(res => { this.$get(`${this.api.queryAllMenus}?platformId=${Setting.platformId}`).then(res => {
this.permissions = res.permissionMenu[0].children this.permissions = res.children[0].children
}).catch(res => {}) }).catch(res => {})
} }
}, },

Loading…
Cancel
Save