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'
export default {
name: 'BaseRoleList',
components: {
ListTable
},
@@ -90,8 +91,6 @@ export default {
}
}
},
mounted() {
},
methods: {
hasPermNotBuiltinNotRootOrg(row, perm) {
return !row['builtin'] && this.$hasPerm(perm) && !this.$isRootOrg()

View File

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

View File

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

View File

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