| @@ -559,6 +559,7 @@ export default { | |||||
| resolve: null, | resolve: null, | ||||
| toleranceInput: 0, | toleranceInput: 0, | ||||
| showFilterInput: true, | showFilterInput: true, | ||||
| currentNodeName: '', | |||||
| }; | }; | ||||
| }, | }, | ||||
| components: {debuggerGridTable}, | components: {debuggerGridTable}, | ||||
| @@ -806,7 +807,7 @@ export default { | |||||
| mode: 'node', | mode: 'node', | ||||
| params: { | params: { | ||||
| watch_point_id: this.curWatchPointId ? this.curWatchPointId : 0, | watch_point_id: this.curWatchPointId ? this.curWatchPointId : 0, | ||||
| name: this.nodeName, | |||||
| name: this.currentNodeName, | |||||
| single_node: true, | single_node: true, | ||||
| node_type: 'leaf', | node_type: 'leaf', | ||||
| }, | }, | ||||
| @@ -820,12 +821,12 @@ export default { | |||||
| if (res.data.graph) { | if (res.data.graph) { | ||||
| const graph = res.data.graph; | const graph = res.data.graph; | ||||
| if (graph.children) { | if (graph.children) { | ||||
| this.dealTreeData(graph.children, this.nodeName); | |||||
| this.dealTreeData(graph.children, this.currentNodeName); | |||||
| this.defaultCheckedArr = this.$refs.tree.getCheckedKeys(); | this.defaultCheckedArr = this.$refs.tree.getCheckedKeys(); | ||||
| } | } | ||||
| this.querySingleNode( | this.querySingleNode( | ||||
| JSON.parse(JSON.stringify(res.data.graph)), | JSON.parse(JSON.stringify(res.data.graph)), | ||||
| this.nodeName, | |||||
| this.currentNodeName, | |||||
| false, | false, | ||||
| ); | ); | ||||
| } | } | ||||
| @@ -1130,16 +1131,14 @@ export default { | |||||
| if (metadata.node_name !== undefined && metadata.step !== undefined) { | if (metadata.node_name !== undefined && metadata.step !== undefined) { | ||||
| const nodeName = metadata.node_name; | const nodeName = metadata.node_name; | ||||
| if ( | if ( | ||||
| (nodeName !== this.nodeName && nodeName !== '') || | |||||
| (nodeName !== this.currentNodeName && nodeName !== '') || | |||||
| this.metadata.step !== metadata.step | this.metadata.step !== metadata.step | ||||
| ) { | ) { | ||||
| this.nodeName = nodeName ? nodeName : this.nodeName; | this.nodeName = nodeName ? nodeName : this.nodeName; | ||||
| this.currentNodeName = nodeName ? nodeName : this.currentNodeName; | |||||
| this.metadata.step = metadata.step; | this.metadata.step = metadata.step; | ||||
| if (isQuery) { | if (isQuery) { | ||||
| this.queryAllTreeData( | |||||
| nodeName ? nodeName : this.$refs.tree.getCurrentKey(), | |||||
| true, | |||||
| ); | |||||
| this.queryAllTreeData(this.nodeName, true); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -1557,6 +1556,7 @@ export default { | |||||
| } | } | ||||
| this.initCondition(); | this.initCondition(); | ||||
| this.nodeName = this.metadata.node_name; | this.nodeName = this.metadata.node_name; | ||||
| this.currentNodeName = this.metadata.node_name; | |||||
| if (this.pollInit) { | if (this.pollInit) { | ||||
| this.pollData(); | this.pollData(); | ||||
| this.pollInit = false; | this.pollInit = false; | ||||