fix: 修改 valiue Mapping 不显示的问题
This commit is contained in:
@@ -88,6 +88,9 @@ export default {
|
||||
gauge.value = getMetricTypeValue(data.values, chartInfo.param.statistics || 'last')
|
||||
gauge.max = getMetricTypeValue(data.values, 'max')
|
||||
gauge.min = getMetricTypeValue(data.values, 'min')
|
||||
if (gauge.min === gauge.max) {
|
||||
gauge.min = gauge.max / 2
|
||||
}
|
||||
gauge.label = data.metric
|
||||
gauge.legend = this.handleLegend(chartInfo, data, expressionIndex, dataIndex, colorIndex).alias
|
||||
gauge.name = this.handleLegend(chartInfo, data, expressionIndex, dataIndex, colorIndex).name
|
||||
|
||||
@@ -508,9 +508,9 @@
|
||||
></el-switch>
|
||||
</div>
|
||||
<transition name="el-zoom-in-top">
|
||||
<el-row v-if="chartConfig.param.enable.thresholds">
|
||||
<el-row v-if="chartConfig.param.enable.valueMapping">
|
||||
<div
|
||||
v-for="(item,index) in chartConfig.param.thresholds"
|
||||
v-for="(item,index) in chartConfig.param.valueMapping"
|
||||
:key="index"
|
||||
>
|
||||
<div class="chart-title chart-title-config">
|
||||
|
||||
@@ -399,6 +399,17 @@ export default {
|
||||
this.chartConfig.param.tags = newTags
|
||||
this.chartConfig.param.indexs = newTags.map(item => item.text).join(',')
|
||||
this.change()
|
||||
},
|
||||
enableChange (type) {
|
||||
switch (type) {
|
||||
case 'valueMapping':
|
||||
break;
|
||||
case 'legend':
|
||||
break;
|
||||
case '':
|
||||
break;
|
||||
}
|
||||
this.change()
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user