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
commit 6a7e597c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1392 additions and 1363 deletions

View File

@ -298,7 +298,10 @@ export default {
}, },
getDateExtStatus() { getDateExtStatus() {
if (this.chart) { 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 { } else {
this.showDateExt = false this.showDateExt = false
} }

View File

@ -342,7 +342,10 @@ export default {
getDateExtStatus() { getDateExtStatus() {
if (this.chart) { 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 { } else {
this.showDateExt = false this.showDateExt = false
} }