fix:修复角色列表组件切换数据不准确问题

This commit is contained in:
“huailei000”
2022-03-09 14:38:18 +08:00
committed by 老广
parent 5897c52268
commit e13a62c206
4 changed files with 5 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import { ListTable } from '@/components'
import { DetailFormatter } from '@/components/TableFormatters' import { DetailFormatter } from '@/components/TableFormatters'
export default { export default {
name: 'BaseRoleList',
components: { components: {
ListTable ListTable
}, },
@@ -90,8 +91,6 @@ export default {
} }
} }
}, },
mounted() {
},
methods: { methods: {
hasPermNotBuiltinNotRootOrg(row, perm) { hasPermNotBuiltinNotRootOrg(row, perm) {
return !row['builtin'] && this.$hasPerm(perm) && !this.$isRootOrg() return !row['builtin'] && this.$hasPerm(perm) && !this.$isRootOrg()

View File

@@ -6,6 +6,7 @@
import BaseRoleList from './BaseRoleList' import BaseRoleList from './BaseRoleList'
export default { export default {
name: 'OrgRoleList',
components: { components: {
BaseRoleList BaseRoleList
}, },

View File

@@ -6,6 +6,7 @@
import BaseRoleList from './BaseRoleList' import BaseRoleList from './BaseRoleList'
export default { export default {
name: 'SysRoleList',
components: { components: {
BaseRoleList BaseRoleList
}, },

View File

@@ -3,7 +3,7 @@
<div slot="title"> <div slot="title">
{{ Title }} {{ Title }}
</div> </div>
<keep-alive> <keep-alive exclude="SysRoleList,OrgRoleList">
<component :is="config.activeMenu" /> <component :is="config.activeMenu" />
</keep-alive> </keep-alive>
</TabPage> </TabPage>
@@ -29,7 +29,7 @@ export default {
title: this.$t('route.OrgRole'), title: this.$t('route.OrgRole'),
name: 'OrgRoleList', name: 'OrgRoleList',
hidden: () => { hidden: () => {
return !this.$store.getters.hasValidLicense return !this.$store.getters.hasValidLicense || !this.$hasPerm('rbac.view_orgrole')
} }
}, },
{ {