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 1297d65..2857921 100644 --- a/ruoyi-admin/src/main/resources/templates/system/TempertureData/TempertureReport.html +++ b/ruoyi-admin/src/main/resources/templates/system/TempertureData/TempertureReport.html @@ -21,7 +21,8 @@ class="fa fa-chevron-up"> - @@ -108,7 +109,6 @@ } - function meterChart() { var formData = new FormData(); @@ -125,7 +125,7 @@ tempData = eval(result); var tempInfo = ''; for (var i = 0; i < tempData.length; i++) { - tempInfo += '
'; + tempInfo += '
'; /* tempInfo += '
';*/ /*info += '
'+tempData[i].name+'
' border: solid 1px greenyellow;padding: 10px 10px;;*/ } @@ -138,7 +138,7 @@ subtext: tempData[i].refushTime, left: 'center', textStyle: { - fontSize: 14 // 调小主标题字体大小 + fontSize: 10 // 调小主标题字体大小 } }, tooltip: { @@ -152,7 +152,7 @@ detail: {formatter: '{value}℃', fontSize: 16}, showSymbol: false, animation: false, // 关闭动画 - // radius: '60%', + radius: '100%', // startAngle: 180, // 仪表盘起始角度(默认 225) // endAngle: 0, // 仪表盘结束角度(默认 -45) data: [{value: tempData[i].value}] @@ -187,7 +187,7 @@ } meterChart(); // 正确方式:传递函数引用(而不是调用结果) - refreshInterval = window.setInterval(function() { + refreshInterval = window.setInterval(function () { meterChart(); }, 5000);