mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 15:07:43 +00:00
[Update] 添加更新节点资产硬件信息执行逻辑
This commit is contained in:
@@ -148,7 +148,19 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
updateNodeAssetHardwareInfo: function() {
|
updateNodeAssetHardwareInfo: function() {
|
||||||
|
this.hideRMenu()
|
||||||
|
const currentNode = this.zTree.getSelectedNodes()[0]
|
||||||
|
if (!currentNode) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$axios.post(
|
||||||
|
`/api/v1/assets/nodes/${currentNode.meta.node.id}/tasks/`,
|
||||||
|
{ 'action': 'refresh' }
|
||||||
|
).then((res) => {
|
||||||
|
window.open(`/core/ops/celery/task/${res.task}/log/`, '_blank', 'toolbar=yes, width=900, height=600')
|
||||||
|
}).catch(error => {
|
||||||
|
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + error))
|
||||||
|
})
|
||||||
},
|
},
|
||||||
testNodeAssetConnectivity: function() {
|
testNodeAssetConnectivity: function() {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user