diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index 04a3e10b7..bf2945f95 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -580,6 +580,11 @@ export default { result: '' } } + if (obj.type === 'group' && !obj.param.repeat) { + obj.param.repeat = { + variable: '' + } + } // this.editChart.varType = 1 if (obj.param.enable.legend && !obj.param.legend) { obj.param.legend = { placement: 'bottom', values: [], show: true } diff --git a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue index 159ebc567..3ed9642d7 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue @@ -247,6 +247,46 @@ + +
+
+ {{$t('dashboard.repeat')}} + +
+ +
+ + + + + + +
+
+
@@ -320,7 +360,8 @@ export default { link: this.chartConfig.param.link, collapse: true, enable: { - visibility: false + visibility: false, + repeat: false }, showHeader: this.chartConfig.param.showHeader, visibility: { @@ -328,6 +369,9 @@ export default { operator: 'equal', varValue: '', result: 'show' + }, + repeat: { + variable: '' } } break diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 77dabbace..32af35f83 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -42,7 +42,7 @@ -