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