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]]) } }