From 1c2fc831aab6ea069ab382a87524cf7f7a0ce484 Mon Sep 17 00:00:00 2001 From: 18317449825 <18317449825@163.com> Date: Tue, 22 Nov 2022 19:16:59 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2391=20feat=EF=BC=9Adashboard=20template?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/bottomBox/bottomBox.vue | 11 +- .../common/bottomBox/tabs/panelTabNew.vue | 87 ++++- .../src/components/common/js/constants.js | 3 +- .../common/popBox/topToolMoreOptions.vue | 19 +- .../common/rightBox/chart/chartRightBox.vue | 2 +- .../components/common/rightBox/panelBox.vue | 35 +- .../src/components/common/searchInput.vue | 2 + .../src/components/common/searchSelectInfo.js | 5 + .../table/settings/dashboardTmplTable.vue | 146 ++++++++ .../page/config/template/chartTemp.vue | 9 +- .../page/config/template/dashboardTemp.vue | 321 ++++++++++++++++++ .../src/components/page/dashboard/panel.vue | 3 +- nezha-fronted/src/router/index.js | 4 + 13 files changed, 606 insertions(+), 41 deletions(-) create mode 100644 nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue create mode 100644 nezha-fronted/src/components/page/config/template/dashboardTemp.vue diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index d0c772817..edb36f9cc 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -57,7 +57,9 @@ - + + + @@ -73,7 +75,7 @@ - + @@ -212,6 +214,11 @@ export default { { prop: 'panel', name: this.$t('overall.tempPrev') } ] }, + dashboardTemp: { + dashboardTempTabTitle: [ + { prop: 'panel', name: this.$t('overall.dashboardTemp') } + ] + }, alertRule: { alertRule: [ { prop: 'alertRuleAlertMessage', name: this.$t('overall.alert') }, diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue index 963dbfc03..8428aaa90 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue @@ -13,13 +13,13 @@ >