From afe2d0dba5d6e42d7999b62836ed5e4bea75391a Mon Sep 17 00:00:00 2001 From: zyh Date: Mon, 14 Nov 2022 16:00:18 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat=EF=BC=9ANEZ-2383=20chart=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E6=94=AF=E6=8C=81=20repeat=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/rightBox/chart/chartRightBox.vue | 5 ++ .../rightBox/chart/otherChartConfig.vue | 46 ++++++++++++++++++- .../src/components/page/dashboard/panel.vue | 2 +- 3 files changed, 51 insertions(+), 2 deletions(-) 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 @@ - From b12d36c1fc7c3ef1a5f408e93474442b8778484d Mon Sep 17 00:00:00 2001 From: likexuan Date: Tue, 15 Nov 2022 13:36:09 +0800 Subject: [PATCH 2/3] =?UTF-8?q?NEZ-2392=20fix=20:=20dashboard=20=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=20receivers=20=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/rightBox/panelBox.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/nezha-fronted/src/components/common/rightBox/panelBox.vue b/nezha-fronted/src/components/common/rightBox/panelBox.vue index ccc35e332..d0ebc6476 100644 --- a/nezha-fronted/src/components/common/rightBox/panelBox.vue +++ b/nezha-fronted/src/components/common/rightBox/panelBox.vue @@ -309,6 +309,7 @@ {{item.name}} + @{{item.username}} From 8ffb9365b7cfe28a9045f25a2222c4af912bc225 Mon Sep 17 00:00:00 2001 From: likexuan Date: Tue, 15 Nov 2022 13:40:00 +0800 Subject: [PATCH 3/3] =?UTF-8?q?NEZ-2388=20feat=20:=20backup=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E4=B8=8B=E8=BD=BD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/table/settings/backupsTable.vue | 102 +++++++++++------- 1 file changed, 66 insertions(+), 36 deletions(-) diff --git a/nezha-fronted/src/components/common/table/settings/backupsTable.vue b/nezha-fronted/src/components/common/table/settings/backupsTable.vue index dcf9554b7..8029ee419 100644 --- a/nezha-fronted/src/components/common/table/settings/backupsTable.vue +++ b/nezha-fronted/src/components/common/table/settings/backupsTable.vue @@ -50,26 +50,30 @@ -
- -
- +
+ + +
+
- + + {{$t('backup.RestoreNow')}} + + + + +