From 8cca94f74f4e85c1cd8346e6f43b11c2b2072929 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 2 Dec 2021 14:56:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85chartBox=20other?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rightBox/chartRightBox/chartRightBox.scss | 3 + .../common/rightBox/chart/chartConfig.vue | 2 +- .../common/rightBox/chart/chartRightBox.vue | 12 ++ .../common/rightBox/chart/chartTypeShow.js | 28 +++ .../rightBox/chart/otherChartConfig.vue | 190 +++++++++++++++++- .../common/rightBox/chart/publicConfig.js | 3 + 6 files changed, 234 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss b/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss index 19928980b..977bb863a 100644 --- a/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss +++ b/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss @@ -14,6 +14,9 @@ .el-form-item__error { padding-top: 0; } + .el-input-number--small { + width: 100%; + } } .chart-title-config { border: 1px solid $--border-color-light; diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index a5738eccb..9d120da90 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -362,6 +362,7 @@ /> -
- other +
+ + +
+ {{$t('dashboard.panel.chartForm.displayConfig')}} +
+
+ + + + + {{item.name}} + + + +
+
+ + + + + span-{{item}} + + + + + + + + + + span-{{item}} + + + +
+ +
+ {{$t('dashboard.panel.chartForm.content')}} + +
+ + + + + + +
+
+ +
+
+ + + + +
diff --git a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js index 391407884..f652d1792 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js +++ b/nezha-fronted/src/components/common/rightBox/chart/publicConfig.js @@ -8,6 +8,9 @@ const rz = { } } export default { + props: { + params: {} + }, data () { return { language: localStorage.getItem('nz-language'),