change - 温度实时监控优化

master
yinq 4 months ago
parent 45e1a0f696
commit b2a710af39

@ -125,7 +125,7 @@
tempData = eval(result); tempData = eval(result);
var tempInfo = ''; var tempInfo = '';
for (var i = 0; i < tempData.length; i++) { 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;;*/ /*info += '<div style="background-color: red;width: 200px;height: 200px;">'+tempData[i].name+'</div>' border: solid 1px greenyellow;padding: 10px 10px;;*/
} }
@ -134,7 +134,7 @@
var temperatureMeterChart = echarts.init(document.getElementById(tempData[i].name)); var temperatureMeterChart = echarts.init(document.getElementById(tempData[i].name));
var temperatureMeterOption = { var temperatureMeterOption = {
title: { 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, subtext: tempData[i].refushTime,
left: 'center', left: 'center',
textStyle: { textStyle: {
@ -149,7 +149,7 @@
{ {
name: "温度仪表", name: "温度仪表",
type: 'gauge', type: 'gauge',
detail: {formatter: '{value}℃', fontSize: 16}, detail: {formatter: '{value}℃', fontSize: 12},
showSymbol: false, showSymbol: false,
animation: false, // 关闭动画 animation: false, // 关闭动画
radius: '100%', radius: '100%',

Loading…
Cancel
Save