From 25d2ef134320cad312d057b2061c317a0bbbfdeb Mon Sep 17 00:00:00 2001 From: zhoule Date: Fri, 17 May 2024 13:39:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=AA=E9=98=B3=E8=83=BD=E6=9D=BF=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/DeviceControlDialog.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/components/DeviceControlDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/components/DeviceControlDialog.vue index 91566e7f..658580c6 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/components/DeviceControlDialog.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/components/DeviceControlDialog.vue @@ -102,14 +102,14 @@ export default { let times = [], datas = []; qsData.rows.forEach(item => { if (lastPath == 'deviceHour') { - times.push(item.timeSlot); + times.push(item.date); } else if (lastPath == 'deviceDay') { times.push(new Date(item.date).format('dd')); } else if (lastPath == 'deviceYears') { times.push(new Date(item.month).format('MM')); } - datas.push(this.btnType == 1 ? item.avgTemperature : item.avgVisibility) + datas.push(this.btnType == 1 ? item.temperature : item.visibility) }) // console.log('datas',datas) @@ -121,8 +121,8 @@ export default { lineChartOption.xAxis.name = '月' } lineChartOption.xAxis.data = times; - lineChartOption.yAxis.name = this.btnType == 1 ? '℃' : '米'; - lineChartOption.series[0].name = this.btnType == 1 ? '温度(℃)' : '能见度(米)' + lineChartOption.yAxis.name = this.btnType == 1 ? '℃' : '千米'; + lineChartOption.series[0].name = this.btnType == 1 ? '温度(℃)' : '能见度(千米)' lineChartOption.series[0].data = datas; const chartIns = echarts.init(this.$refs.LineChartRef);