From d28986e4596b4f8db6ea8a0d11c46e19a23e78e9 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, 16 May 2024 09:02:17 +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 ebda2b0..975376f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html +++ b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html @@ -118,7 +118,6 @@ return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`; } const getData = () => { - console.log(222,monitorId) $.post(prefix + '/newDataStreak', {monitorId}, (e) => { $('#temInfo').html(`最高温度:${e.rows[0].maxTemperature}℃ 最低温度:${e.rows[0].minTemperature}℃ 平均温度:${e.rows[0].avgTemperature}℃`) $('#timeInfo').html(`采集时间:${e.rows[0].collectTime} `) @@ -151,6 +150,7 @@ const gridWidth = width / 32; const gridHeight = height / 24; + ctx.clearRect(0, 0, width, height) // 遍历颜色数组,绘制矩形 for (let i = 1; i <= 768; i++) {