Skip to content

Commit

Permalink
feat(视图): 透视表列汇总支持按合计排序
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaJunjie2020 committed Dec 2, 2022
1 parent 0aabb23 commit 291d3f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend/src/views/chart/chart/table/table-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ 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 && v.indexOf(totalCfg.col.totalSortField) > -1) {
const sort = {
sortFieldId: r[0],
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/chart/components/shapeAttr/TotalCfg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
</el-select>
</el-form-item>
<el-form-item
v-if="false && chart.type === 'table-pivot'"
v-if="chart.type === 'table-pivot'"
:label="$t('chart.total_sort')"
class="form-item"
>
Expand All @@ -239,7 +239,7 @@
</el-radio-group>
</el-form-item>
<el-form-item
v-if="false && chart.type === 'table-pivot' && totalForm.col.totalSort !== 'none'"
v-if="chart.type === 'table-pivot' && totalForm.col.totalSort !== 'none'"
:label="$t('chart.total_sort_field')"
class="form-item"
>
Expand Down

0 comments on commit 291d3f8

Please sign in to comment.