mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
Merge pull request #13814 from dataease/pr@dev-v2@fix_pivot_row_sub_calc
fix(图表): 修复透视表树形模式下行小计计算错误 #12928
This commit is contained in:
commit
315b1793a9
@ -240,6 +240,10 @@ export class TablePivot extends S2ChartView<PivotSheet> {
|
||||
col: chart.xAxisExt,
|
||||
quota: chart.yAxis
|
||||
}
|
||||
//树形模式下,列维度为空,行小计会变成列总计,特殊处理下
|
||||
if (basicStyle.tableLayoutMode === 'tree' && !chart.xAxisExt?.length) {
|
||||
tableTotal.col.calcTotals = tableTotal.row.calcSubTotals
|
||||
}
|
||||
totals.forEach(total => {
|
||||
if (total.cfg?.length) {
|
||||
delete total.aggregation
|
||||
|
Loading…
Reference in New Issue
Block a user