Merge pull request #4220 from dataease/pr@dev@fix_chat

fix(视图): 日期格式受数据源控制
This commit is contained in:
Junjun 2022-12-28 12:57:04 +08:00 committed by GitHub
commit 541a1c70c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -67,8 +67,8 @@
>
{{ $t('chart.total') }}
<span>{{
(chart.datasetMode === 0 && !not_support_page_dataset.includes(chart.datasourceType)) ? chart.totalItems : ((chart.data && chart.data.tableRow) ? chart.data.tableRow.length : 0)
}}</span>
(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>
<de-pagination
@ -351,9 +351,9 @@ export default {
dimensionList.push({ id: nameIdMap[key], value: rowData[key] })
}
}
this.antVActionPost(dimensionList, nameIdMap[meta.valueField] || 'null')
this.antVActionPost(dimensionList, nameIdMap[meta.valueField] || 'null', param)
},
antVActionPost(dimensionList, name) {
antVActionPost(dimensionList, name, param) {
this.pointParam = {
data: {
dimensionList: dimensionList,
@ -385,7 +385,7 @@ export default {
dimensionList.push({ id: nameIdMap[key], value: rowData[key] })
}
}
this.antVActionPost(dimensionList, nameIdMap[meta.field] || 'null')
this.antVActionPost(dimensionList, nameIdMap[meta.field] || 'null', param)
},
setBackGroundBorder() {
if (this.chart.customStyle) {

View File

@ -222,6 +222,7 @@ export default {
},
mounted() {
bus.$on('reset-change-table', this.getItemTagType)
this.getDateExtStatus()
},
beforeDestroy() {
bus.$off('reset-change-table', this.getItemTagType)

View File

@ -241,6 +241,7 @@ export default {
mounted() {
bus.$on('reset-change-table', this.getItemTagType)
this.init()
this.getDateExtStatus()
},
beforeDestroy() {
bus.$off('reset-change-table', this.getItemTagType)