|
@@ -20,7 +20,7 @@
|
|
<div class="title">室外</div>
|
|
<div class="title">室外</div>
|
|
<el-row v-for="(item,index) in shiwai" :key="index" >
|
|
<el-row v-for="(item,index) in shiwai" :key="index" >
|
|
<el-col :span=8>{{item.name}}</el-col>
|
|
<el-col :span=8>{{item.name}}</el-col>
|
|
- <el-col :span=8>{{item.value}}</el-col>
|
|
|
|
|
|
+ <el-col :span=8>{{item.value == "优质" ? "优" : item.value }}</el-col>
|
|
<el-col :span=8>{{item.unit}}</el-col>
|
|
<el-col :span=8>{{item.unit}}</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -41,17 +41,19 @@ export default {
|
|
totleNumber:0,
|
|
totleNumber:0,
|
|
annormalNumber:0,
|
|
annormalNumber:0,
|
|
shinei:[
|
|
shinei:[
|
|
- {name:"co2:",value:0,unit:"PPM"},
|
|
|
|
|
|
+ {name:"voc:",value:"优",unit:""},
|
|
{name:"PM2.5:",value:0,unit:"ug/m³"},
|
|
{name:"PM2.5:",value:0,unit:"ug/m³"},
|
|
{name:"温度:",value:0,unit:"℃"},
|
|
{name:"温度:",value:0,unit:"℃"},
|
|
{name:"湿度:",value:0,unit:"RH%"},
|
|
{name:"湿度:",value:0,unit:"RH%"},
|
|
- {name:"voc:",value:"优",unit:""},
|
|
|
|
|
|
+ {name:"co2:",value:0,unit:"PPM"},
|
|
|
|
+
|
|
],
|
|
],
|
|
shiwai:[
|
|
shiwai:[
|
|
|
|
+ {name:"空气质量:",value:"优",unit:""},
|
|
{name:"PM2.5:",value:0,unit:"ug/m³"},
|
|
{name:"PM2.5:",value:0,unit:"ug/m³"},
|
|
{name:"温度:",value:0,unit:"℃"},
|
|
{name:"温度:",value:0,unit:"℃"},
|
|
{name:"湿度:",value:0,unit:"RH%"},
|
|
{name:"湿度:",value:0,unit:"RH%"},
|
|
- {name:"空气质量:",value:"优",unit:""},
|
|
|
|
|
|
+
|
|
],
|
|
],
|
|
status:true,
|
|
status:true,
|
|
};
|
|
};
|
|
@@ -80,15 +82,16 @@ export default {
|
|
productCode: "511_XFFJ",
|
|
productCode: "511_XFFJ",
|
|
startTime: (dayjs().format('YYYY-MM-DD HH:mm:ss')).split(" ")[0] + " 00:00:00"
|
|
startTime: (dayjs().format('YYYY-MM-DD HH:mm:ss')).split(" ")[0] + " 00:00:00"
|
|
},
|
|
},
|
|
- timeout: 3000,
|
|
|
|
|
|
+ timeout: 30000,
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.data.data.length>0){
|
|
if(res.data.data.length>0){
|
|
let data1 = res.data.data[0]
|
|
let data1 = res.data.data[0]
|
|
- this.shinei[0].value = data1.co2
|
|
|
|
|
|
+ this.shinei[0].value = data1.voc
|
|
this.shinei[1].value = data1.pm2_5
|
|
this.shinei[1].value = data1.pm2_5
|
|
this.shinei[2].value = data1.wd
|
|
this.shinei[2].value = data1.wd
|
|
this.shinei[3].value = data1.sd
|
|
this.shinei[3].value = data1.sd
|
|
- this.shinei[4].value = data1.voc
|
|
|
|
|
|
+ this.shinei[4].value = data1.co2
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
axios({
|
|
axios({
|
|
@@ -107,14 +110,14 @@ export default {
|
|
productCode: "511_XFFJ",
|
|
productCode: "511_XFFJ",
|
|
startTime: (dayjs().format('YYYY-MM-DD HH:mm:ss')).split(" ")[0] + " 00:00:00"
|
|
startTime: (dayjs().format('YYYY-MM-DD HH:mm:ss')).split(" ")[0] + " 00:00:00"
|
|
},
|
|
},
|
|
- timeout: 3000,
|
|
|
|
|
|
+ timeout: 30000,
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.data.data.length>0){
|
|
if(res.data.data.length>0){
|
|
let data2 = res.data.data[0]
|
|
let data2 = res.data.data[0]
|
|
- this.shiwai[0].value = data2.pm2_5
|
|
|
|
- this.shiwai[1].value = data2.wd
|
|
|
|
- this.shiwai[2].value = data2.sd
|
|
|
|
- this.shiwai[3].value = data2.quality
|
|
|
|
|
|
+ this.shiwai[0].value = data2.quality
|
|
|
|
+ this.shiwai[1].value = data2.pm2_5
|
|
|
|
+ this.shiwai[2].value = data2.wd
|
|
|
|
+ this.shiwai[3].value = data2.sd
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|