:[
{"id":28,"text":"",
"children":[
{"id":1,"text":""},{"id":2,"text":""},
{"id":6,"text":"","children":[{"id":47,"text":""}]},
{"id":11,"text":"","children":[{"id":24,"text":""},{"id":27,"text":""}]},
{"id":22,"text":""},
{"id":26,"text":"","children":[{"id":32,"text":""},{"id":33,"text":"","children":[{"id":55,"text":""}]}
]}
]
}
]
for (let i=0,len=data.length;i<len;iPP) {
if (this.organformId === data[i].organguid) {
data[i].organname = datas[0].organName
}
else {
if (data[i].children != null && data[i].children.length>0) {
console.log(this.organformId) //
(function () {
var _obj = arguments[0];
console.log(this.organformId)//
for (let j=0, _len=_obj.length;j<_len;jPP) {
if (this.organformId === _obj[j].organguid) {
console.log(this.organformId)
_obj[j].organname = datas[0].organName
_obj[j].organtype = datas[0].organType
_obj[j].organDesc = datas[0].organDesc
} else {
if (_obj[j].children!=null&&_obj[j].children.length>0) {
arguments.callee(_obj[j].children);
}
}
}
})(data[i].children)
}
}