|
|
|
@ -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 => {}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|