Unverified 提交 37cb9562 authored 作者: XiaJunjie2020's avatar XiaJunjie2020 提交者: GitHub

Merge pull request #1429 from dataease/pr@dev@feat_compare

feat(视图): 同比环比
......@@ -194,7 +194,8 @@ export default {
const t1 = xAxis.filter(ele => {
return ele.deType === 1
})
if (t1.length > 0 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
// 暂时只支持类别轴/维度的时间类型字段,且视图中有且只有一个时间字段
if (t1.length === 1 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
this.disableEditCompare = false
} else {
this.disableEditCompare = true
......
......@@ -191,7 +191,8 @@ export default {
const t1 = xAxis.filter(ele => {
return ele.deType === 1
})
if (t1.length > 0 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
// 暂时只支持类别轴/维度的时间类型字段,且视图中有且只有一个时间字段
if (t1.length === 1 && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') {
this.disableEditCompare = false
} else {
this.disableEditCompare = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论