Skip to content

Commit

Permalink
fix: isTotalRoot 替换 isTotals
Browse files Browse the repository at this point in the history
  • Loading branch information
JuZe committed Sep 7, 2023
1 parent ce4aa59 commit e51ab22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/s2-core/src/data-set/pivot-data-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ export class PivotDataSet extends BaseDataSet {
}

// 有中间维度汇总的分组场景,将有中间 undefined 值的 query 处理为一组合法 query 后查询数据再合并
private getGroupTotalMultiData(totalRows, columns, query): DataType[] {
private getGroupTotalMultiData(totalRows, rows, columns, query): DataType[] {
let result = [];
const rowTotalGroupQueries = this.getTotalGroupQueries(totalRows, query);
let totalGroupQueries = [];
Expand All @@ -645,8 +645,8 @@ export class PivotDataSet extends BaseDataSet {
colDimensionValues,
careUndefined: true,
isFirstCreate: true,
rowFields: rowDimensionValues,
colFields: colDimensionValues,
rowFields: rows,
colFields: columns,
rowPivotMeta: this.rowPivotMeta,
colPivotMeta: this.colPivotMeta,
});
Expand Down Expand Up @@ -674,7 +674,7 @@ export class PivotDataSet extends BaseDataSet {
const existDimensionGroup = this.checkExistDimensionGroup(query);
let result = [];
if (existDimensionGroup) {
result = this.getGroupTotalMultiData(totalRows, columns, query);
result = this.getGroupTotalMultiData(totalRows, rows, columns, query);
} else {
const rowDimensionValues = getQueryDimValues(totalRows, query);
const colDimensionValues = getQueryDimValues(columns as string[], query);
Expand All @@ -683,8 +683,8 @@ export class PivotDataSet extends BaseDataSet {
colDimensionValues,
careUndefined: true,
isFirstCreate: true,
rowFields: rowDimensionValues,
colFields: colDimensionValues,
rowFields: rows,
colFields: columns as string[],
rowPivotMeta: this.rowPivotMeta,
colPivotMeta: this.colPivotMeta,
});
Expand Down

0 comments on commit e51ab22

Please sign in to comment.