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 @@ > + +
+ +
+
+ {{ inputDisplayText }} +
+ 编辑 + diff --git a/imt-ui/src/views/system/inspectionPlan/inspectionPlanTree.vue b/imt-ui/src/views/system/inspectionPlan/inspectionPlanTree.vue index f0be81f..74cf64f 100644 --- a/imt-ui/src/views/system/inspectionPlan/inspectionPlanTree.vue +++ b/imt-ui/src/views/system/inspectionPlan/inspectionPlanTree.vue @@ -24,13 +24,40 @@ default-expand-all :current-lable-class-name="renderCurrentClass" @node-click="nodeClick" - > + @comment-submitted="handleCommentSubmitted" + > + +
+
+ + +
+