mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
fix:修复角色列表组件切换数据不准确问题
This commit is contained in:
@@ -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()
|
||||
|
@@ -6,6 +6,7 @@
|
||||
import BaseRoleList from './BaseRoleList'
|
||||
|
||||
export default {
|
||||
name: 'OrgRoleList',
|
||||
components: {
|
||||
BaseRoleList
|
||||
},
|
||||
|
@@ -6,6 +6,7 @@
|
||||
import BaseRoleList from './BaseRoleList'
|
||||
|
||||
export default {
|
||||
name: 'SysRoleList',
|
||||
components: {
|
||||
BaseRoleList
|
||||
},
|
||||
|
@@ -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')
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user