NEZ-2903 feat:dashboard 表格图表增加默认排序等配置项

This commit is contained in:
zyh
2023-06-27 11:29:37 +08:00
parent 7ac443915a
commit c6e4c17fa2
8 changed files with 358 additions and 41 deletions

View File

@@ -611,6 +611,16 @@ export default {
if (!this.chart.param.dataLink) {
this.chart.param.dataLink = []
}
if (this.chart.type == 'table') {
if (!this.chart.param.tableOptions) {
this.chart.param.tableOptions = {
showTableHeader: 'enabled',
pagination: 'enabled',
defaultSortColumn: null,
defaultSort: null
}
}
}
} else {
this.rightBox.loading = true
this.$get('visual/dashboard/chart/' + data.id).then(res => {
@@ -653,6 +663,14 @@ export default {
tiClasses: ['ti-valid']
}
})
if (!this.chart.param.tableOptions) {
this.chart.param.tableOptions = {
showTableHeader: 'enabled',
pagination: 'enabled',
defaultSortColumn: null,
defaultSort: null
}
}
}
setTimeout(() => {
this.$refs.addChartModal.isStable = 'stable'