Merge pull request #1429 from dataease/pr@dev@feat_compare

feat(视图): 同比环比
This commit is contained in:
XiaJunjie2020 2021-12-10 11:38:24 +08:00 committed by GitHub
commit 37cb956213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -194,7 +194,8 @@ export default {
const t1 = xAxis.filter(ele => {
return ele.deType === 1
})
if (t1.length > 0 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
// /
if (t1.length === 1 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
this.disableEditCompare = false
} else {
this.disableEditCompare = true

View File

@ -191,7 +191,8 @@ export default {
const t1 = xAxis.filter(ele => {
return ele.deType === 1
})
if (t1.length > 0 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
// /
if (t1.length === 1 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
this.disableEditCompare = false
} else {
this.disableEditCompare = true