fix: 同环比支持多时间

This commit is contained in:
junjun 2022-02-21 17:24:05 +08:00
parent 4faf9257fa
commit dfefade933
2 changed files with 4 additions and 4 deletions

View File

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

View File

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