|
|
@ -7,8 +7,9 @@
|
|
|
|
<div class="container-div">
|
|
|
|
<div class="container-div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="centerDiv">
|
|
|
|
<div class="centerDiv">
|
|
|
|
<div id="temInfo" style="text-align: center;white-space: nowrap"></div>
|
|
|
|
<div id="temInfo" style="text-align: center;white-space: nowrap;font-size: 2vw"></div>
|
|
|
|
<div id="canvasDiv" style="width: 320px;height:240px;margin:0 auto;">
|
|
|
|
<div id="timeInfo" style="text-align: center;white-space: nowrap;font-size: 2vw"></div>
|
|
|
|
|
|
|
|
<div id="canvasDiv" style="width: 32vw;height:24vw;margin:0 auto;">
|
|
|
|
<canvas id="canvas"></canvas>
|
|
|
|
<canvas id="canvas"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -74,6 +75,7 @@
|
|
|
|
$.post(prefix+'/newDataStreak',(e)=>{
|
|
|
|
$.post(prefix+'/newDataStreak',(e)=>{
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
$('#temInfo').html(`<span style="color:#ff0000">最高温度:${e.rows[0].maxTemperature}℃</span> <span style="color:#0b05f7">最低温度:${e.rows[0].minTemperature}℃</span> <span style="color:#0066e4">平均温度:${e.rows[0].avgTemperature}℃</span>`)
|
|
|
|
$('#temInfo').html(`<span style="color:#ff0000">最高温度:${e.rows[0].maxTemperature}℃</span> <span style="color:#0b05f7">最低温度:${e.rows[0].minTemperature}℃</span> <span style="color:#0066e4">平均温度:${e.rows[0].avgTemperature}℃</span>`)
|
|
|
|
|
|
|
|
$('#timeInfo').html(`<span style="color:#0b05f7">采集时间:${e.rows[0].collectTime}℃</span> `)
|
|
|
|
let colors = []
|
|
|
|
let colors = []
|
|
|
|
for(i in e.rows[0]){
|
|
|
|
for(i in e.rows[0]){
|
|
|
|
if(i.includes('site')){
|
|
|
|
if(i.includes('site')){
|
|
|
|