NEZ-2702 feat:stat图表增加对比功能(Comparison)

This commit is contained in:
zyh
2023-03-21 16:53:15 +08:00
parent f49284dc50
commit bc49fc6ff8
17 changed files with 258 additions and 40 deletions

View File

@@ -486,7 +486,6 @@ export default {
if (!this.hasButton('dashboard_view')) {
return
}
console.log(this.rightBox.panel.show)
this.rightBox.panel.show = true
// 关闭selectDashboard弹框
this.$refs.selectDashboard && this.$refs.selectDashboard.esc()
@@ -602,8 +601,9 @@ export default {
if (!this.chart.groupId || this.chart.groupId == -1) {
this.chart.groupId = ''
}
if (this.chart.type === 'stat' && !this.chart.param.sparklineMode) {
this.chart.param.sparklineMode = 'none'
if (this.chart.type === 'stat') {
if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }
if (!this.chart.param.comparison) { this.chart.param.comparison = 'none' }
}
if (this.chart.type == 'table') {
const arr = this.chart.param.indexs ? this.chart.param.indexs.split(',') : []