diff --git a/src/components/AutoDataZTree/index.vue b/src/components/AutoDataZTree/index.vue index 89f6725e9..c1f2bf1d6 100644 --- a/src/components/AutoDataZTree/index.vue +++ b/src/components/AutoDataZTree/index.vue @@ -148,7 +148,19 @@ export default { }, 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() {