From 3b36181ff8df011ecdc15501a4f9a25be82856e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 2 Sep 2025 10:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E8=A1=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TempertureData/TempertureReport.html | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/TempertureData/TempertureReport.html b/ruoyi-admin/src/main/resources/templates/system/TempertureData/TempertureReport.html index 2f4b816..7ba1163 100644 --- a/ruoyi-admin/src/main/resources/templates/system/TempertureData/TempertureReport.html +++ b/ruoyi-admin/src/main/resources/templates/system/TempertureData/TempertureReport.html @@ -124,13 +124,13 @@ success: function (result) { tempData = eval(result); var tempInfo = ''; - for (var i = 0; i < tempData.length; i++) { - tempInfo += '
'; + for (let i = 0; i < tempData.length; i++) { + tempInfo += '
'; /* tempInfo += '
'; */ /*info += '
'+tempData[i].name+'
' border: solid 1px greenyellow;padding: 10px 10px;;*/ } $("#tempDiv").html(tempInfo); - for (var i = 0; i < tempData.length; i++) { + for (let i = 0; i < tempData.length; i++) { var temperatureMeterChart = echarts.init(document.getElementById(tempData[i].name)); var temperatureMeterOption = { title: { @@ -152,10 +152,31 @@ detail: {formatter: '{value}℃', fontSize: 12}, showSymbol: false, animation: false, // 关闭动画 - radius: '100%', + radius: '90%', // startAngle: 180, // 仪表盘起始角度(默认 225) // endAngle: 0, // 仪表盘结束角度(默认 -45) - data: [{value: tempData[i].value}] + data: [{value: tempData[i].value}], + axisLine: { + lineStyle: { + width: 10 + } + }, + + axisTick: { + show: true, + length: 15, + lineStyle: { + color: 'auto', + width: 2 + } + }, + splitLine: { + length: 25, + lineStyle: { + color: 'auto', + width: 3 + } + }, } ] };