forked from github/dataease
Merge pull request #3822 from dataease/pr@dev@feat_table
feat(视图): 透视表行汇总支持按合计排序
This commit is contained in:
commit
3507241d24
@ -435,6 +435,7 @@ export function baseTablePivot(s2, container, chart, action, tableData) {
|
||||
}
|
||||
sortParams.push(sort)
|
||||
}
|
||||
totalCfg.col.totalSort = false
|
||||
if (totalCfg.col.totalSort && totalCfg.col.totalSort !== 'none' && r.length > 0 && totalCfg.col.showGrandTotals) {
|
||||
const sort = {
|
||||
sortFieldId: r[0],
|
||||
|
@ -225,7 +225,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="chart.type === 'table-pivot'"
|
||||
v-if="false && chart.type === 'table-pivot'"
|
||||
:label="$t('chart.total_sort')"
|
||||
class="form-item"
|
||||
>
|
||||
@ -239,7 +239,7 @@
|
||||
</el-radio-group>
|
||||
</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')"
|
||||
class="form-item"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user