forked from github/dataease
feat(视图): 透视表行汇总支持按合计排序
This commit is contained in:
parent
8f0076ce08
commit
282a13475b
@ -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],
|
||||||
|
@ -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"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user