From 71f4ee0ba1a2ab1eacc0f6876af954035e2177b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Fri, 4 Feb 2022 17:42:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=88=97=E8=A1=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magic-boot-ui/src/views/system/role/role-list.vue | 11 ++++++++++- magic-boot-ui/src/views/system/user/user-list.vue | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) 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