From ab1894cbcf850cceea030538d7b78f6821d6a898 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 16:36:24 +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 | 2 +- 1 file changed, 1 insertion(+), 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 092d672..52c527a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html +++ b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html @@ -84,7 +84,7 @@ getColorByTemperature={} for (var i = 0; i <= sum; i++) { - getColorByTemperature[20+i] = getGradientColor(i,sum) + getColorByTemperature[(Math.min(...tems))+i] = getGradientColor(i,sum) } for(i in e.rows[0]){ if(i.includes('site')){