diff --git a/src/components/MindMap.vue b/src/components/MindMap.vue index ff73eb60..f8e2e4a2 100644 --- a/src/components/MindMap.vue +++ b/src/components/MindMap.vue @@ -323,14 +323,17 @@ export default { * @param nodeId */ searchNode (nodeId) { - const item = this.graph.findById(nodeId) - this.graph.setItemState(nodeId, 'selected', true) if (this.lastQueryId) { this.graph.setItemState(this.lastQueryId, 'selected', false) } if (this.selectedNodeId) { this.graph.setItemState(this.selectedNodeId, 'selected', false) } + if (!nodeId) { + return + } + const item = this.graph.findById(nodeId) + this.graph.setItemState(nodeId, 'selected', true) const node = this.graph.findById(nodeId) this.selectedNodeId = nodeId this.$emit('select', node._cfg.model) diff --git a/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue b/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue index 344ab650..7a5affa8 100644 --- a/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue +++ b/src/views/businessSupport/standardizationActivity/StandardizationActivityPage.vue @@ -126,7 +126,12 @@ export default { this.nodeNameList = this.defaultNodeNameList.filter(tt => tt.name.toLowerCase().indexOf(this.nodeName.toLowerCase()) !== -1) }, searchReset () { - + this.nodeName = null + this.nodeNameList = [] + this.currentNodeName = null + this.selectedNode = {} + this.selectedNodeId = null + this.$refs.mindMap.searchNode() }, searchQuery () { this.showSearch = true @@ -301,6 +306,7 @@ export default { border-top: 1px solid #E5E6EB; padding: 8px; overflow: auto; + z-index: 99; } .hide-search {