|
|
|
@ -67,7 +67,7 @@ |
|
|
|
|
<div class="item" v-for="item in wdcgqArr" :key="item.deviceId"> |
|
|
|
|
<div class="dev_name">{{ item.deviceName }}</div> |
|
|
|
|
<div class="line"></div> |
|
|
|
|
<div class="data"><span class="screenNumber">{{ item.deviceTemp}}</span>℃</div> |
|
|
|
|
<div class="data"><span class="screenNumber">{{ item.thermometerValue}}</span>℃</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -163,7 +163,7 @@ function currentTime() { |
|
|
|
|
const wdcgqArr = ref([]) |
|
|
|
|
function getWenduFun(){ |
|
|
|
|
getTemperature("温度传感器").then((res)=>{ |
|
|
|
|
console.log('111',res) |
|
|
|
|
console.log('8个温度传感器',res) |
|
|
|
|
for(let i = 0;i < res.data.length;i++){ |
|
|
|
|
if(res.data[i].deviceTemp == null){ |
|
|
|
|
res.data[i].deviceTemp = '--' |
|
|
|
|