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