|
|
@ -67,7 +67,7 @@ |
|
|
|
<div class="item" v-for="item in wdcgqArr" :key="item.deviceId"> |
|
|
|
<div class="item" v-for="item in wdcgqArr" :key="item.deviceId"> |
|
|
|
<div class="dev_name">{{ item.deviceName }}</div> |
|
|
|
<div class="dev_name">{{ item.deviceName }}</div> |
|
|
|
<div class="line"></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> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -119,7 +119,9 @@ import {getTemperature,getDevicesInfo,getZdb} from '../../api/bigview/bigview' |
|
|
|
|
|
|
|
|
|
|
|
/** 页面加载时*/ |
|
|
|
/** 页面加载时*/ |
|
|
|
onMounted(()=>{ |
|
|
|
onMounted(()=>{ |
|
|
|
currentTime(); |
|
|
|
setInterval(()=> { |
|
|
|
|
|
|
|
currentTime(); |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
dcglChartFun(); |
|
|
|
dcglChartFun(); |
|
|
|
kqyrbChartFun(); |
|
|
|
kqyrbChartFun(); |
|
|
|
frdlChartFun(); |
|
|
|
frdlChartFun(); |
|
|
@ -163,7 +165,7 @@ function currentTime() { |
|
|
|
const wdcgqArr = ref([]) |
|
|
|
const wdcgqArr = ref([]) |
|
|
|
function getWenduFun(){ |
|
|
|
function getWenduFun(){ |
|
|
|
getTemperature("温度传感器").then((res)=>{ |
|
|
|
getTemperature("温度传感器").then((res)=>{ |
|
|
|
console.log('111',res) |
|
|
|
console.log('8个温度传感器',res) |
|
|
|
for(let i = 0;i < res.data.length;i++){ |
|
|
|
for(let i = 0;i < res.data.length;i++){ |
|
|
|
if(res.data[i].deviceTemp == null){ |
|
|
|
if(res.data[i].deviceTemp == null){ |
|
|
|
res.data[i].deviceTemp = '--' |
|
|
|
res.data[i].deviceTemp = '--' |
|
|
|