change - 温度实时监控优化

master
yinq 4 months ago
parent 45e1a0f696
commit b2a710af39

@ -125,8 +125,8 @@
tempData = eval(result);
var tempInfo = '';
for (var i = 0; i < tempData.length; i++) {
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>';*/
tempInfo += '<div class="echarts" id="' + tempData[i].name + '" style="height: 200px;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;;*/
}
$("#tempDiv").html(tempInfo);
@ -134,7 +134,7 @@
var temperatureMeterChart = echarts.init(document.getElementById(tempData[i].name));
var temperatureMeterOption = {
title: {
text: tempData[i].name.length > 18 ? tempData[i].name.substring(0, 15) + '\n' + tempData[i].name.substring(15) : tempData[i].name,
text: tempData[i].name.length > 18 ? tempData[i].name.substring(0, 18) + '\n' + tempData[i].name.substring(18) : tempData[i].name,
subtext: tempData[i].refushTime,
left: 'center',
textStyle: {
@ -149,7 +149,7 @@
{
name: "温度仪表",
type: 'gauge',
detail: {formatter: '{value}℃', fontSize: 16},
detail: {formatter: '{value}℃', fontSize: 12},
showSymbol: false,
animation: false, // 关闭动画
radius: '100%',

Loading…
Cancel
Save