提交 08a6604b 编写于 作者: Shine-zwj's avatar Shine-zwj

分组列表

上级 0b3d9beb
...@@ -212,12 +212,12 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -212,12 +212,12 @@ import CodeListService from "@service/app/codelist-service";
groups.forEach((group: any,i: number)=>{ groups.forEach((group: any,i: number)=>{
let children:Array<any> = []; let children:Array<any> = [];
data.forEach((item: any,j: number)=>{ data.forEach((item: any,j: number)=>{
if(Object.is(group,item[this.groupProperty])){ if(Object.is(group.label,item[this.groupProperty])){
children.push(item); children.push(item);
} }
}); });
const tree: any ={ const tree: any ={
group: group, group: group.label,
children: children children: children
} }
groupTree.push(tree); groupTree.push(tree);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册