// treeData 是获取到的树结构 realTimeRect为要插入的值
`
getNewTreeData(treeData) {
let keyArray = Object.keys(this.realTimeRect)
keyArray.forEach(item => {
let that = this;
that.breadthQuery(treeData, item, that.realTimeRect[item]);
})
}
breadthQuery(tree, id, rectsData) {
var stark = [];
stark = stark.concat(tree);
while(stark.length) {
var temp = stark.shift();
if(temp.children) {
stark = stark.concat(temp.children);
}
if(temp.id == parseInt(id)) {
rectsData.forEach((item, index) => {
if(item) {
temp.rects[index].intervalData = item.intervalData
}
});
debugger;
return tree;
}
}
},
`