fix: 修复资产授权详情权限显示不准确问题

This commit is contained in:
“huailei000”
2022-03-10 11:17:40 +08:00
committed by Jiangjie.Bai
parent d917c0576c
commit cfbd88011a
2 changed files with 4 additions and 3 deletions

View File

@@ -34,7 +34,8 @@ export default {
title: this.$t('common.Active'),
type: 'switcher',
attrs: {
model: this.object.is_active
model: this.object.is_active,
disabled: !this.$hasPerm('perms.change_assetpermission')
},
callbacks: {
change: function(val) {

View File

@@ -36,12 +36,12 @@ export default {
{
title: this.$t('perms.usersAndUserGroups'),
name: 'AssetPermissionUser',
hidden: () => !this.$hasPerm('perms.view_assetpermission')
hidden: () => !this.$hasPerm('users.view_user')
},
{
title: this.$t('perms.assetAndNode'),
name: 'AssetPermissionAsset',
hidden: () => !this.$hasPerm('perms.view_assetpermission')
hidden: () => !this.$hasPerm('assets.view_asset')
}
]
}