|
|
|
|
@ -21,7 +21,8 @@
|
|
|
|
|
class="fa fa-chevron-up"></i></button>
|
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i
|
|
|
|
|
class="fa fa-chevron-down"></i></button>
|
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新"><i class="fa fa-refresh"></i>
|
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新"><i
|
|
|
|
|
class="fa fa-refresh"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -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 += '<div class="echarts" id="' + tempData[i].name + '" style="height: 400px;width: 25%;float: left;" ></div>';
|
|
|
|
|
tempInfo += '<div class="echarts" id="' + tempData[i].name + '" style="height: 300px;width: 12.5%;float: left;" ></div>';
|
|
|
|
|
/* tempInfo += '<div class="echarts" id="' + tempData[i].name + '" style="height: 200px;width: 12.5%;float: left;" ></div>';*/
|
|
|
|
|
/*info += '<div style="background-color: red;width: 200px;height: 200px;">'+tempData[i].name+'</div>' 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);
|
|
|
|
|
|
|
|
|
|
|