feat(视图): 同环比前端UI

This commit is contained in:
junjie 2021-12-09 12:05:01 +08:00
parent dbd782e62d
commit 46bac1769e

View File

@ -172,10 +172,7 @@ export default {
}
},
watch: {
'chart.xaxis': function() {
this.isEnableCompare()
},
'chart.extStack': function() {
'chart': function() {
this.isEnableCompare()
}
},
@ -198,7 +195,7 @@ export default {
const t2 = extStack.filter(ele => {
return ele.deType === 1
})
if (t1.length > 0 || t2.length > 0) {
if ((t1.length > 0 || t2.length > 0) && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
this.disableEditCompare = false
} else {
this.disableEditCompare = true