Merge pull request #2890 from jumpserver/pr@dev@host_hardware_info

perf: host hardware
This commit is contained in:
feng626
2023-03-09 11:13:06 +08:00
committed by GitHub
2 changed files with 8 additions and 13 deletions

View File

@@ -78,18 +78,6 @@ export default {
}) })
} }
} }
},
{
name: 'View',
title: this.$t(`common.UpdateAssetDetail`),
type: 'primary',
can: vm.$hasPerm('assets.refresh_assethardwareinfo'),
callback: function({ cellValue, tableData, row }) {
return this.$router.push({
name: 'AssetMoreInformationEdit',
params: { id: row.id }
})
}
} }
] ]
} }

View File

@@ -129,7 +129,14 @@ export default {
label: this.$t('assets.HardwareInfo'), label: this.$t('assets.HardwareInfo'),
formatter: HostInfoFormatter, formatter: HostInfoFormatter,
formatterArgs: { formatterArgs: {
fieldName: 'info' fieldName: 'info',
can: vm.$hasPerm('assets.refresh_assethardwareinfo'),
getRoute({ row }) {
return {
name: 'AssetMoreInformationEdit',
params: { id: row.id }
}
}
} }
}, },
connectivity: connectivityMeta, connectivity: connectivityMeta,