Merge pull request #4967 from dataease/pr@dev@feat_chart_date

feat(视图): Doris,StarRocks同环比支持周,季度
This commit is contained in:
Junjun
2023-04-06 10:09:17 +08:00
committed by GitHub
3 changed files with 1392 additions and 1363 deletions

View File

@@ -298,7 +298,10 @@ export default {
},
getDateExtStatus() {
if (this.chart) {
this.showDateExt = this.chart.datasourceType === 'mysql' && this.chart.datasetMode === 0
this.showDateExt = this.showDateExt = this.chart.datasourceType === 'mysql' ||
this.chart.datasourceType === 'ds_doris' ||
this.chart.datasourceType === 'StarRocks' ||
this.chart.datasetMode === 1
} else {
this.showDateExt = false
}

View File

@@ -342,7 +342,10 @@ export default {
getDateExtStatus() {
if (this.chart) {
this.showDateExt = this.chart.datasourceType === 'mysql' && this.chart.datasetMode === 0
this.showDateExt = this.chart.datasourceType === 'mysql' ||
this.chart.datasourceType === 'ds_doris' ||
this.chart.datasourceType === 'StarRocks' ||
this.chart.datasetMode === 1
} else {
this.showDateExt = false
}