From 794cff1fcc9af7a265e3510500065fc86f5d7b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 25 Apr 2024 14:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ArrayTemperatureData/ArrayTemperatureData.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html index 8202d97..73ee1fd 100644 --- a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html +++ b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html @@ -7,6 +7,7 @@
+
@@ -71,10 +72,11 @@ getColorByTemperature[20+i] = getGradientColor(i) } $.post(prefix+'/newDataStreak',(e)=>{ + console.log(e) + $('#temInfo').html(`最高温度:${e.rows[0].maxTemperature}℃ 最低温度:${e.rows[0].minTemperature}℃ 平均温度:${e.rows[0].avgTemperature}℃`) let colors = [] for(i in e.rows[0]){ if(i.includes('site')){ - console.log(getColorByTemperature[e.rows[0][i]]) colors.push(getColorByTemperature[e.rows[0][i]]) } }