提交 7873329d 编写于 作者: Shine-zwj's avatar Shine-zwj

表格代码表分组--fix1

上级 75624d3e
......@@ -1466,7 +1466,7 @@ ${gridColumn.getName()}
allGroup.forEach((group: any,i: number)=>{
let children:Array<any> = [];
this.items.forEach((item: any,j: number)=>{
if(Object.is(group.label,item[this.groupField])){
if(Object.is(group.label,item[this.groupAppField])){
item.groupById = Number((i+1) * 10 + (i+1) * 1);
item.group = '';
children.push(item);
......@@ -1496,7 +1496,7 @@ ${gridColumn.getName()}
});
let child:Array<any> = [];
this.items.forEach((item: any)=>{
let i = allGroup.findIndex((group: any)=>Object.is(group.label,item[this.groupField]));
let i = allGroup.findIndex((group: any)=>Object.is(group.label,item[this.groupAppField]));
if(i < 0){
item.groupById = Number((allGroup.length+1) * 10 + (allGroup.length+1) * 1);
item.group = '';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册