diff --git a/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTree.vue b/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTree.vue index 669ed23..80d2ead 100644 --- a/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTree.vue +++ b/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTree.vue @@ -37,6 +37,7 @@ import TreeStore from "./model/tree-store.js"; import { getNodeKey } from "./model/util"; export default { name: "OkrTree", + inject: ["eventBus"], components: { OkrTreeNode, }, @@ -160,6 +161,7 @@ export default { animateName: this.animateName, }); this.root = this.store.root; + this.okrEventBus.$on("inputCompleted", this.handleInputCompleted); }, watch: { data(newVal) { diff --git a/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTreeNode.vue b/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTreeNode.vue index 6170687..aaf0c60 100644 --- a/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTreeNode.vue +++ b/imt-ui/src/components/VueOkrTree/vue-okr-tree/OkrTreeNode.vue @@ -145,14 +145,42 @@ > + +