Browse Source

test 逻辑操作

肖阳 4 years ago
parent
commit
981e9f160d
2 changed files with 8 additions and 2 deletions
  1. 5 1
      src/views/Home.vue
  2. 3 1
      src/views/dingdingFlow/Home.vue

+ 5 - 1
src/views/Home.vue

@@ -77,7 +77,11 @@ export default {
       // this.FlowConfig = this.transform(this.FlowConfig);
     },
     clickNode(node) {
-      console.log("当前点击节点", node);
+      node.title = "hhhh";
+      console.log(this.$refs.flow.nodeChange, "sdfsaf");
+      console.log("当前点击节点2", node);
+      this.$refs.flow.nodeChange(node);
+      this.$forceUpdate();
     }
   }
 };

+ 3 - 1
src/views/dingdingFlow/Home.vue

@@ -77,7 +77,9 @@ export default {
       // this.FlowConfig = this.transform(this.FlowConfig);
     },
     clickNode(node) {
-      console.log("当前点击节点", node);
+      node.title = "123123";
+      this.$refs.flow.nodeChange(node);
+      this.$forceUpdate();
     }
   }
 };