feat(视图): 透视表行汇总支持按合计排序

This commit is contained in:
junjun 2022-11-22 12:57:44 +08:00
parent 8f0076ce08
commit 282a13475b
2 changed files with 3 additions and 2 deletions

View File

@ -435,6 +435,7 @@ export function baseTablePivot(s2, container, chart, action, tableData) {
} }
sortParams.push(sort) sortParams.push(sort)
} }
totalCfg.col.totalSort = false
if (totalCfg.col.totalSort && totalCfg.col.totalSort !== 'none' && r.length > 0 && totalCfg.col.showGrandTotals) { if (totalCfg.col.totalSort && totalCfg.col.totalSort !== 'none' && r.length > 0 && totalCfg.col.showGrandTotals) {
const sort = { const sort = {
sortFieldId: r[0], sortFieldId: r[0],

View File

@ -225,7 +225,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="chart.type === 'table-pivot'" v-if="false && chart.type === 'table-pivot'"
:label="$t('chart.total_sort')" :label="$t('chart.total_sort')"
class="form-item" class="form-item"
> >
@ -239,7 +239,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="chart.type === 'table-pivot' && totalForm.col.totalSort !== 'none'" v-if="false && chart.type === 'table-pivot' && totalForm.col.totalSort !== 'none'"
:label="$t('chart.total_sort_field')" :label="$t('chart.total_sort_field')"
class="form-item" class="form-item"
> >