diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue index 3b516170e..a58189ee0 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue @@ -429,6 +429,9 @@ export default { if (!this.chart.groupId || this.chart.groupId == -1) { this.chart.groupId = '' } + if (this.chart.type === 'group' && !this.chart.param.collapse == undefined) { + this.chart.param.collapse = false + } if ((this.chart.type === 'line' || this.chart.type === 'area' || this.chart.type === 'point') && !this.chart.param.rightYAxis) { this.chart.param.rightYAxis = { elementNames: [], @@ -473,6 +476,9 @@ export default { if (!this.chart.groupId || this.chart.groupId == -1) { this.chart.groupId = '' } + if (this.chart.type === 'group' && !this.chart.param.collapse == undefined) { + this.chart.param.collapse = false + } if ((this.chart.type === 'line' || this.chart.type === 'area' || this.chart.type === 'point') && !this.chart.param.rightYAxis) { this.chart.param.rightYAxis = { elementNames: [], diff --git a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue index 0f60c3a84..a3b3e5e1c 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue @@ -40,14 +40,18 @@ - - + + > + + +
@@ -417,7 +421,7 @@ export default { this.chartConfig.span = 12 this.chartConfig.param = { link: this.chartConfig.param.link, - collapse: true, + collapse: false, enable: { visibility: false, repeat: false diff --git a/nezha-fronted/src/components/page/dashboard/dashboard.vue b/nezha-fronted/src/components/page/dashboard/dashboard.vue index 383ffb402..f6105eb8c 100644 --- a/nezha-fronted/src/components/page/dashboard/dashboard.vue +++ b/nezha-fronted/src/components/page/dashboard/dashboard.vue @@ -604,6 +604,9 @@ export default { if (!this.chart.groupId || this.chart.groupId == -1) { this.chart.groupId = '' } + if (this.chart.type === 'group' && !this.chart.param.collapse == undefined) { + this.chart.param.collapse = false + } if ((this.chart.type === 'line' || this.chart.type === 'area' || this.chart.type === 'point') && !this.chart.param.rightYAxis) { this.chart.param.rightYAxis = { elementNames: [], @@ -648,6 +651,9 @@ export default { if (!this.chart.groupId || this.chart.groupId == -1) { this.chart.groupId = '' } + if (this.chart.type === 'group' && !this.chart.param.collapse == undefined) { + this.chart.param.collapse = false + } if ((this.chart.type === 'line' || this.chart.type === 'area' || this.chart.type === 'point') && !this.chart.param.rightYAxis) { this.chart.param.rightYAxis = { elementNames: [],