diff --git a/magic-boot-ui/src/views/system/role/role-list.vue b/magic-boot-ui/src/views/system/role/role-list.vue index e8f9046..159f6c8 100644 --- a/magic-boot-ui/src/views/system/role/role-list.vue +++ b/magic-boot-ui/src/views/system/role/role-list.vue @@ -117,9 +117,18 @@ export default { { title: '操作', type: 'btns', - width: 200, + width: 270, fixed: 'right', btns: [ + { + permission: 'role:user:list', + title: '用户列表', + type: 'text', + icon: 'el-icon-user-solid', + click: (row) => { + this.$router.push({ path: `/system/user/user-list?roleId=${row.id}` }) + } + }, { permission: 'role:save', title: '修改', diff --git a/magic-boot-ui/src/views/system/user/user-list.vue b/magic-boot-ui/src/views/system/user/user-list.vue index fea30d3..e65cfe3 100644 --- a/magic-boot-ui/src/views/system/user/user-list.vue +++ b/magic-boot-ui/src/views/system/user/user-list.vue @@ -157,6 +157,9 @@ export default { ids: [] } }, + created() { + this.tableOptions.where.roleId.value = this.$route.query.roleId + }, methods: { checkChange(values) { this.tableOptions.where.officeId = values