提交 dfefade9 authored 作者: junjun's avatar junjun

fix: 同环比支持多时间

上级 4faf9257
...@@ -180,8 +180,8 @@ export default { ...@@ -180,8 +180,8 @@ export default {
const t1 = xAxis.filter(ele => { const t1 = xAxis.filter(ele => {
return ele.deType === 1 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 this.disableEditCompare = false
} else { } else {
this.disableEditCompare = true this.disableEditCompare = true
......
...@@ -177,8 +177,8 @@ export default { ...@@ -177,8 +177,8 @@ export default {
const t1 = xAxis.filter(ele => { const t1 = xAxis.filter(ele => {
return ele.deType === 1 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 this.disableEditCompare = false
} else { } else {
this.disableEditCompare = true this.disableEditCompare = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论