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++) {