fix(视图): 修复明细表总数

This commit is contained in:
junjun 2022-12-06 14:50:37 +08:00
parent 826a7d57de
commit 39886e60dc
2 changed files with 6 additions and 4 deletions

View File

@ -67,7 +67,7 @@
>
{{ $t('chart.total') }}
<span>{{
chart.datasetMode === 0 ? chart.totalItems : ((chart.data && chart.data.tableRow) ? chart.data.tableRow.length : 0)
(chart.datasetMode === 0 && !not_support_page_dataset.includes(chart.datasourceType)) ? chart.totalItems : ((chart.data && chart.data.tableRow) ? chart.data.tableRow.length : 0)
}}</span>
{{ $t('chart.items') }}
</span>
@ -173,7 +173,8 @@ export default {
},
totalStyle: {
color: '#606266'
}
},
not_support_page_dataset: NOT_SUPPORT_PAGE_DATASET
}
},

View File

@ -55,7 +55,7 @@
>
{{ $t('chart.total') }}
<span>{{
chart.datasetMode === 0 ? chart.totalItems : ((chart.data && chart.data.tableRow) ? chart.data.tableRow.length : 0)
(chart.datasetMode === 0 && !not_support_page_dataset.includes(chart.datasourceType)) ? chart.totalItems : ((chart.data && chart.data.tableRow) ? chart.data.tableRow.length : 0)
}}</span>
{{ $t('chart.items') }}
</span>
@ -166,7 +166,8 @@ export default {
scrollBarHoverColor: DEFAULT_COLOR_CASE.tableScrollBarHoverColor,
totalStyle: {
color: '#606266'
}
},
not_support_page_dataset: NOT_SUPPORT_PAGE_DATASET
}
},
computed: {