提交 46bac176 authored 作者: junjie's avatar junjie

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

上级 dbd782e6
...@@ -172,10 +172,7 @@ export default { ...@@ -172,10 +172,7 @@ export default {
} }
}, },
watch: { watch: {
'chart.xaxis': function() { 'chart': function() {
this.isEnableCompare()
},
'chart.extStack': function() {
this.isEnableCompare() this.isEnableCompare()
} }
}, },
...@@ -198,7 +195,7 @@ export default { ...@@ -198,7 +195,7 @@ export default {
const t2 = extStack.filter(ele => { const t2 = extStack.filter(ele => {
return ele.deType === 1 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 this.disableEditCompare = false
} else { } else {
this.disableEditCompare = true this.disableEditCompare = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论