+
+
+
+
+
diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue
index 8ad760e14..a32cb2881 100644
--- a/nezha-fronted/src/components/page/dashboard/chartBox.vue
+++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue
@@ -200,21 +200,15 @@
+
+
+
+
+
{{$t('dashboard.panel.chartForm.option')}}
-
-
-
-
-
-
+
@@ -223,6 +217,7 @@
+
+
+
+
+
+
+
+
@@ -250,26 +258,23 @@
+
+
+
+ {{item.label}}
+
+
+
+
-
-
-
- {{item.label}}
-
-
-
-
-
-
-
{{$t('alert.config.expr')}}
@@ -569,9 +574,6 @@ export default {
alertParams: {},
spanList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
nullTypeList: [{
- label: 'connected',
- value: 'connected'
- }, {
label: 'null',
value: 'null'
}, {
@@ -1309,7 +1311,7 @@ export default {
param.threshold = ''
param.valueMapping = { type: 'text', mapping: [{ value: '', text: '', color: { bac: '#fff', text: '#000' } }] }
param.legendValue = { min: 'off', max: 'off', avg: 'off', last: 'off', total: 'off' }
- param.nullType = 'connected'
+ param.nullType = 'null'
this.$set(this.editChart, 'param', param)
this.elements = [1]
this.elementTarget = []
@@ -1377,9 +1379,9 @@ export default {
} else {
this.setIsOtherChart()
if (chartType === 'bar' || chartType === 'line' || chartType === 'stackArea') {
- this.editChart.param = { nullType: 'connected', threshold: '', legendValue: { min: 'off', max: 'off', avg: 'off', last: 'off', total: 'off' } }
+ this.editChart.param = { nullType: 'null', threshold: '', legendValue: { min: 'off', max: 'off', avg: 'off', last: 'off', total: 'off' } }
if (chartType === 'bar') {
- this.editChart.param = { statistics: 'last', nullType: 'connected', threshold: '', legendValue: { min: 'off', max: 'off', avg: 'off', last: 'off', total: 'off' } }
+ this.editChart.param = { statistics: 'last', nullType: 'null', threshold: '', legendValue: { min: 'off', max: 'off', avg: 'off', last: 'off', total: 'off' } }
this.statisticsList = JSON.parse(JSON.stringify(this.$CONSTANTS.statisticsList))
this.statisticsList.push({ value: 'null', label: i18n.t('dashboard.panel.chartForm.statisticsVal.null') })
}
@@ -1387,7 +1389,7 @@ export default {
this.$set(this.editChart.param, 'last', 0)
this.editChart.param = {
statistics: 'last',
- nullType: 'connected',
+ nullType: 'null',
valueMapping: {
type: 'value',
mapping: [{ text: '', value: '', color: { bac: '#fff', text: '#000' } }]
@@ -1703,7 +1705,7 @@ export default {
this.editChart.param = JSON.parse(this.editChart.param)
}
if (!n.param.nullType) {
- this.editChart.param.nullType = 'connected'
+ this.editChart.param.nullType = 'null'
}
if (n.type === 'url') {
this.setIsUrl()