mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-17 15:52:32 +00:00
Merge pull request #2890 from jumpserver/pr@dev@host_hardware_info
perf: host hardware
This commit is contained in:
@@ -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 }
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user