|
|
@@ -30,60 +30,68 @@ const arr = [
|
|
|
pids: [null]
|
|
|
},
|
|
|
{
|
|
|
- type: "2",
|
|
|
- title: "你好",
|
|
|
- content: "contentaps9lbz9o4jg6rp1",
|
|
|
- groupId: "amchc9jr6hrtm3sr",
|
|
|
- id: "aps9lbz9o4jg6rp1",
|
|
|
- isRow: true,
|
|
|
+ title: "title",
|
|
|
data: {},
|
|
|
- isParent: true,
|
|
|
- pids: ["amchc9jr6hrtm3sr"]
|
|
|
+ id: "an3boz0zbth6i67o",
|
|
|
+ groupId: "a7wd1l3kz6orbpyf",
|
|
|
+ type: "3",
|
|
|
+ content: "undefinedan3boz0zbth6i67o",
|
|
|
+ groupPid: "a9urcgltunlo3svk",
|
|
|
+ isRow: false,
|
|
|
+ pids: ["a9urcgltunlo3svk"]
|
|
|
},
|
|
|
{
|
|
|
- type: "4",
|
|
|
title: "title",
|
|
|
- content: "contentaqfvkqc99q6xxq83",
|
|
|
- groupId: "root",
|
|
|
- id: "aqfvkqc99q6xxq83",
|
|
|
- isRow: true,
|
|
|
data: {},
|
|
|
- isParent: true,
|
|
|
- pids: ["root"]
|
|
|
+ id: "am3ewe040lpe90j0",
|
|
|
+ groupId: "a7wd1l3kz6orbpyf",
|
|
|
+ type: "3",
|
|
|
+ content: "undefinedam3ewe040lpe90j0",
|
|
|
+ groupPid: "a9urcgltunlo3svk",
|
|
|
+ isRow: false,
|
|
|
+ pids: ["a9urcgltunlo3svk"]
|
|
|
},
|
|
|
{
|
|
|
+ type: "4",
|
|
|
title: "title",
|
|
|
+ content: "contenta9urcgltunlo3svk",
|
|
|
+ groupId: "root",
|
|
|
+ id: "a9urcgltunlo3svk",
|
|
|
+ isRow: true,
|
|
|
data: {},
|
|
|
- id: "amchc9jr6hrtm3sr",
|
|
|
- groupId: "ah97ujupz91p2gdr",
|
|
|
- type: "3",
|
|
|
- content: "undefinedamchc9jr6hrtm3sr",
|
|
|
- groupPid: "aqfvkqc99q6xxq83",
|
|
|
- isRow: false,
|
|
|
isParent: true,
|
|
|
childNode: {
|
|
|
- type: "2",
|
|
|
- title: "你好",
|
|
|
- content: "contentaps9lbz9o4jg6rp1",
|
|
|
- groupId: "amchc9jr6hrtm3sr",
|
|
|
- id: "aps9lbz9o4jg6rp1",
|
|
|
+ id: "a7wd1l3kz6orbpyf",
|
|
|
+ groupId: "a9urcgltunlo3svk",
|
|
|
+ type: "route",
|
|
|
isRow: true,
|
|
|
- data: {},
|
|
|
- isParent: true,
|
|
|
- pids: ["amchc9jr6hrtm3sr"]
|
|
|
+ isFlowTo: false,
|
|
|
+ conditionNodes: [
|
|
|
+ {
|
|
|
+ title: "title",
|
|
|
+ data: {},
|
|
|
+ id: "an3boz0zbth6i67o",
|
|
|
+ groupId: "a7wd1l3kz6orbpyf",
|
|
|
+ type: "3",
|
|
|
+ content: "undefinedan3boz0zbth6i67o",
|
|
|
+ groupPid: "a9urcgltunlo3svk",
|
|
|
+ isRow: false,
|
|
|
+ pids: ["a9urcgltunlo3svk"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "title",
|
|
|
+ data: {},
|
|
|
+ id: "am3ewe040lpe90j0",
|
|
|
+ groupId: "a7wd1l3kz6orbpyf",
|
|
|
+ type: "3",
|
|
|
+ content: "undefinedam3ewe040lpe90j0",
|
|
|
+ groupPid: "a9urcgltunlo3svk",
|
|
|
+ isRow: false,
|
|
|
+ pids: ["a9urcgltunlo3svk"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
- pids: ["aqfvkqc99q6xxq83"]
|
|
|
- },
|
|
|
- {
|
|
|
- title: "title",
|
|
|
- data: {},
|
|
|
- id: "a8rg79hnv5e74gct",
|
|
|
- groupId: "ah97ujupz91p2gdr",
|
|
|
- type: "3",
|
|
|
- content: "undefineda8rg79hnv5e74gct",
|
|
|
- groupPid: "aqfvkqc99q6xxq83",
|
|
|
- isRow: false,
|
|
|
- pids: ["aqfvkqc99q6xxq83"]
|
|
|
+ pids: ["root"]
|
|
|
}
|
|
|
];
|
|
|
// @ is an alias to /src
|
|
|
@@ -114,7 +122,7 @@ export default {
|
|
|
getData() {
|
|
|
console.log(this.$refs.flow);
|
|
|
let res = this.$refs.flow.getResData();
|
|
|
- console.log("这是返回的一维数组", JSON.stringify(res));
|
|
|
+ console.log("这是返回的一维数组", res);
|
|
|
},
|
|
|
nodeChange() {
|
|
|
this.node.content = "nihao";
|