NEZ-2903 feat:dashboard 表格图表增加默认排序等配置项
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user