Merge pull request #4022 from dataease/pr@dev@fix_table

fix(视图): 修复明细表总数
This commit is contained in:
dataeaseShu 2022-12-06 14:55:05 +08:00 committed by GitHub
commit f27d46405a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: {