diff --git a/src/views/reagent/mainoverview/index.vue b/src/views/reagent/mainoverview/index.vue index 658c4a5..912de85 100644 --- a/src/views/reagent/mainoverview/index.vue +++ b/src/views/reagent/mainoverview/index.vue @@ -529,9 +529,11 @@ export default { document.getElementById('line') ) } + const raOption = ['温度', '湿度', 'VOC含量'] + const tmp = ['°C', 'RH%', 'ppm'] const option = { title: { - text: this.options[this.client_date - 1] + '温度变化' + text: this.options[this.client_date - 1] + raOption[this.radio1 - 1] + '变化' }, tooltip: { trigger: 'axis' @@ -552,7 +554,7 @@ export default { yAxis: { type: 'value', axisLabel: { - formatter: '{value} °C' + formatter: '{value} ' + tmp[[this.radio1 - 1]] } }, series: [