fix: 修改列表中字段跳转权限判断

This commit is contained in:
Jiangjie.Bai
2022-03-15 11:45:07 +08:00
committed by Jiangjie.Bai
parent ebbc5ceb3e
commit 6461a66bc1
2 changed files with 4 additions and 2 deletions

View File

@@ -70,8 +70,9 @@ export default {
prop: 'hostname',
label: this.$t('assets.Hostname'),
showOverflowTooltip: true,
formatter: this.$hasPerm('assets.view_asset') ? DetailFormatter : (row) => row.hostname,
formatter: DetailFormatter,
formatterArgs: {
can: this.$hasPerm('assets.view_asset'),
getRoute({ row }) {
return {
name: 'AssetDetail',

View File

@@ -82,8 +82,9 @@ export default {
},
systemuser: {
showOverflowTooltip: true,
formatter: this.$hasPerm('assets.view_systemuser') ? DetailFormatter : (row) => row.systemuser_display,
formatter: DetailFormatter,
formatterArgs: {
can: this.$hasPerm('assets.view_systemuser'),
getTitle({ row }) {
return row.systemuser_display
},