From dba1179e60651dd22d2e1c927f4859a21c42f491 Mon Sep 17 00:00:00 2001 From: zyh Date: Fri, 22 Sep 2023 10:53:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Arightbox=E5=88=A0=E9=99=A4option?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/bottomBox/tabs/dashboardTab.vue | 16 ------- .../common/rightBox/chart/chartConfig.vue | 42 ------------------- .../common/rightBox/chart/chartRightBox.vue | 4 -- .../components/page/dashboard/dashboard.vue | 16 ------- 4 files changed, 78 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue index 5195f60a7..e36941875 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue @@ -249,10 +249,6 @@ export default { min: undefined, max: undefined }, - option: { - lineWidth: 2, - pointSize: 8 - } }, elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }], panel: '', @@ -461,12 +457,6 @@ export default { max: undefined } } - if (!this.chart.param.option) { - this.chart.param.option = { - lineWidth: 2, - pointSize: 8 - } - } } if (this.chart.type === 'stat') { if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' } @@ -503,12 +493,6 @@ export default { max: undefined } } - if (!this.chart.param.option) { - this.chart.param.option = { - lineWidth: 2, - pointSize: 8 - } - } } if (this.chart.type === 'stat') { if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' } diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index 4c9df2468..8d0d0abe3 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -448,44 +448,6 @@ - -
-
- {{$t('dashboard.dashboard.chartForm.option')}} -
-
- - - - - - - - -
-
-
@@ -1262,10 +1224,6 @@ export default { min: undefined, max: undefined }, - option: { - lineWidth: 2, - pointSize: 8 - } } this.$nextTick(() => { this.chartConfig.param.thresholds.push({ value: undefined, color: randomcolor() }) diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index 635ea9af0..50cf20570 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -402,10 +402,6 @@ export default { label: '', min: undefined, max: undefined - }, - option: { - lineWidth: 2, - pointSize: 8 } } } diff --git a/nezha-fronted/src/components/page/dashboard/dashboard.vue b/nezha-fronted/src/components/page/dashboard/dashboard.vue index 5652397a4..e3cc233e1 100644 --- a/nezha-fronted/src/components/page/dashboard/dashboard.vue +++ b/nezha-fronted/src/components/page/dashboard/dashboard.vue @@ -266,10 +266,6 @@ export default { min: undefined, max: undefined }, - option: { - lineWidth: 2, - pointSize: 8 - } }, elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1, orderNum: 0 }], panel: '', @@ -632,12 +628,6 @@ export default { max: undefined } } - if (!this.chart.param.option) { - this.chart.param.option = { - lineWidth: 2, - pointSize: 8 - } - } } if (this.chart.type === 'stat') { if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' } @@ -674,12 +664,6 @@ export default { max: undefined } } - if (!this.chart.param.option) { - this.chart.param.option = { - lineWidth: 2, - pointSize: 8 - } - } } if (this.chart.type === 'stat') { if (!this.chart.param.sparklineMode) { this.chart.param.sparklineMode = 'none' }