角色列表添加用户列表跳转

This commit is contained in:
吕金泽 2022-02-04 17:42:22 +08:00
parent 7c0519888a
commit 71f4ee0ba1
2 changed files with 13 additions and 1 deletions

View File

@ -117,9 +117,18 @@ export default {
{ {
title: '操作', title: '操作',
type: 'btns', type: 'btns',
width: 200, width: 270,
fixed: 'right', fixed: 'right',
btns: [ 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', permission: 'role:save',
title: '修改', title: '修改',

View File

@ -157,6 +157,9 @@ export default {
ids: [] ids: []
} }
}, },
created() {
this.tableOptions.where.roleId.value = this.$route.query.roleId
},
methods: { methods: {
checkChange(values) { checkChange(values) {
this.tableOptions.where.officeId = values this.tableOptions.where.officeId = values