From 179916494ba7b51a2efb86d5b81bfecffbc4f562 Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Tue, 29 Oct 2024 10:21:33 +0800 Subject: [PATCH] =?UTF-8?q?OkrTree=E6=B7=BB=E5=8A=A0=E5=AD=90=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=9B=9E=E5=A4=8D=E5=92=8C=E5=86=85=E5=AE=B9=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E7=BB=99=E8=B0=83=E7=94=A8=E7=BB=84=E4=BB=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VueOkrTree/vue-okr-tree/OkrTree.vue | 2 + .../VueOkrTree/vue-okr-tree/OkrTreeNode.vue | 117 +++++++++++++++++- .../inspectionPlan/inspectionPlanTree.vue | 56 ++++++++- 3 files changed, 169 insertions(+), 6 deletions(-) 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" + > + +
+
+ + +
+