findUpInstName(arr, id) {
arr.forEach((item) => {
if (item.instId == id) {
this.branch = item.instName;
return;
} else {
if (!item.children) {
return;
} else {
this.findUpInstName(item.children, id);
}
}
});
},
this.findUpInstName(this.instTree, data.upInstId);
树级结构数据处理
于 2024-03-07 10:35:50 首次发布