mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
feat(视图): 同环比前端UI
This commit is contained in:
parent
dbd782e62d
commit
46bac1769e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user