summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzyh <[email protected]>2023-09-22 10:53:54 +0800
committerzyh <[email protected]>2023-09-22 10:53:54 +0800
commitdba1179e60651dd22d2e1c927f4859a21c42f491 (patch)
tree0cb2575f1a3422d7d81718e4d6bac3a03d2bb0ef
parent070226e45247bfc0263a2c1d5d50da70ea982445 (diff)
fix:rightbox删除option配置
-rw-r--r--nezha-fronted/src/components/common/bottomBox/tabs/dashboardTab.vue16
-rw-r--r--nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue42
-rw-r--r--nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue4
-rw-r--r--nezha-fronted/src/components/page/dashboard/dashboard.vue16
4 files changed, 0 insertions, 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 @@
</el-form-item>
</div>
- <!-- option -->
- <div v-if="isTimeSeries(chartConfig.type)">
- <div class="form__sub-title">
- <span>{{$t('dashboard.dashboard.chartForm.option')}}</span>
- </div>
- <div
- class="form-items--half-width-group"
- >
- <!--lineWidth-->
- <el-form-item
- v-if="chartConfig.type!=='point'"
- :label="$t('dashboard.dashboard.chartForm.lineWidth')"
- class="form-item--half-width"
- prop="param.option.lineWidth"
- >
- <el-input-number
- size="small"
- :controls="false"
- @change="change"
- show-word-limit
- v-model="chartConfig.param.option.lineWidth"/>
- </el-form-item>
- <!--pointSize-->
- <el-form-item
- :label="$t('dashboard.dashboard.chartForm.pointSize')"
- class="form-item--half-width"
- prop="param.option.pointSize"
- >
- <el-input-number
- size="small"
- :controls="false"
- @change="change"
- show-word-limit
- v-model="chartConfig.param.option.pointSize"/>
- </el-form-item>
- </div>
- </div>
-
<!-- Right Y Axis -->
<div v-if="isTimeSeries(chartConfig.type)">
<div class="form__sub-title">
@@ -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' }