forked from github/dataease
Merge pull request #4022 from dataease/pr@dev@fix_table
fix(视图): 修复明细表总数
This commit is contained in:
commit
f27d46405a
@ -67,7 +67,7 @@
|
|||||||
>
|
>
|
||||||
{{ $t('chart.total') }}
|
{{ $t('chart.total') }}
|
||||||
<span>{{
|
<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>
|
}}</span>
|
||||||
{{ $t('chart.items') }}
|
{{ $t('chart.items') }}
|
||||||
</span>
|
</span>
|
||||||
@ -173,7 +173,8 @@ export default {
|
|||||||
},
|
},
|
||||||
totalStyle: {
|
totalStyle: {
|
||||||
color: '#606266'
|
color: '#606266'
|
||||||
}
|
},
|
||||||
|
not_support_page_dataset: NOT_SUPPORT_PAGE_DATASET
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
>
|
>
|
||||||
{{ $t('chart.total') }}
|
{{ $t('chart.total') }}
|
||||||
<span>{{
|
<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>
|
}}</span>
|
||||||
{{ $t('chart.items') }}
|
{{ $t('chart.items') }}
|
||||||
</span>
|
</span>
|
||||||
@ -166,7 +166,8 @@ export default {
|
|||||||
scrollBarHoverColor: DEFAULT_COLOR_CASE.tableScrollBarHoverColor,
|
scrollBarHoverColor: DEFAULT_COLOR_CASE.tableScrollBarHoverColor,
|
||||||
totalStyle: {
|
totalStyle: {
|
||||||
color: '#606266'
|
color: '#606266'
|
||||||
}
|
},
|
||||||
|
not_support_page_dataset: NOT_SUPPORT_PAGE_DATASET
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
Loading…
Reference in New Issue
Block a user