for the incoming id, how to find the organguid, and delete the items equivalent to the incoming id and their children?
treeData: [{
id: "0",
organguid: "",
parentguid: "",
organname: "",
organtype: "0",
organDesc: "",
children: []
}],
defaultProps: {
children: "children",
label: "organname"
}
this.treeData[0].children = [{
organguid: "1",
parentguid: "0",
organtype: "1",
organDesc: "",
organname: "",
children: [{
organguid: "4",
parentguid: "1",
organtype: "2",
organDesc: "",
organname: ""
}, {
organguid: "5",
parentguid: "1",
organtype: "2",
organDesc: "",
organname: ""
}]
},
{
organguid: "2",
parentguid: "0",
organtype: "1",
organDesc: "",
organname: "",
children: [{
organguid: "6",
parentguid: "2",
organtype: "2",
organDesc: "",
organname: ""
}, {
organguid: "7",
parentguid: "2",
organtype: "2",
organDesc: "",
organname: ""
}]
}, {
organguid: "3",
parentguid: "0",
organtype: "1",
organDesc: "",
organname: "",
children: [{
organguid: "8",
parentguid: "3",
organtype: "2",
organDesc: "",
organname: ""
}, {
organguid: "9",
parentguid: "3",
organtype: "2",
organDesc: "",
organname: "",
children: [{
organguid: "10",
parentguid: "9",
organtype: "3",
organDesc: "",
organname: ""
}, {
organguid: "11",
parentguid: "9",
organtype: "3",
organDesc: "",
organname: ""
}, {
organguid: "12",
parentguid: "9",
organtype: "3",
organDesc: "",
organname: "GRE"
}]
}]
}]