diff --git a/src/views/assets/Asset/AssetList/HostList.vue b/src/views/assets/Asset/AssetList/HostList.vue index f32baad00..f231d212f 100644 --- a/src/views/assets/Asset/AssetList/HostList.vue +++ b/src/views/assets/Asset/AssetList/HostList.vue @@ -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 } - }) - } } ] } diff --git a/src/views/assets/Asset/AssetList/components/BaseList.vue b/src/views/assets/Asset/AssetList/components/BaseList.vue index b60514c17..9693a1904 100644 --- a/src/views/assets/Asset/AssetList/components/BaseList.vue +++ b/src/views/assets/Asset/AssetList/components/BaseList.vue @@ -129,7 +129,14 @@ export default { label: this.$t('assets.HardwareInfo'), formatter: HostInfoFormatter, formatterArgs: { - fieldName: 'info' + fieldName: 'info', + can: vm.$hasPerm('assets.refresh_assethardwareinfo'), + getRoute({ row }) { + return { + name: 'AssetMoreInformationEdit', + params: { id: row.id } + } + } } }, connectivity: connectivityMeta,