From a4ffc27d8ad2399546917fa072d2411f5565c6d0 Mon Sep 17 00:00:00 2001 From: duan Date: Tue, 9 Aug 2022 09:35:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor(src/views/reagent/mainoverview):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B9=BF=E5=BA=A6=E6=B8=A9=E5=BA=A6=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E5=8D=95=E4=BD=8Dmap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reagent/mainoverview/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: [