质量管理

标养室管理接口对接
This commit is contained in:
605875155@qq.com 2023-01-11 13:47:03 +08:00
parent 5941472e20
commit 802f34713a

View File

@ -53,6 +53,7 @@ export default {
dustData_24: [], dustData_24: [],
humidityList:[],//湿 humidityList:[],//湿
temperatureList:[],// temperatureList:[],//
xData:[],//x
}; };
}, },
mounted() { mounted() {
@ -81,6 +82,7 @@ export default {
this.dustData_24.forEach(item=>{ this.dustData_24.forEach(item=>{
this.humidityList.push(item.humidity) this.humidityList.push(item.humidity)
this.temperatureList.push(item.temperature) this.temperatureList.push(item.temperature)
this.xData.push(item.receiveTime.split(' ')[1])
}) })
this.createdEchart1(); this.createdEchart1();
this.createdEchart2(); this.createdEchart2();
@ -118,7 +120,7 @@ export default {
}, },
}, },
axisTick: { show: true }, axisTick: { show: true },
data: ["8.00", "10.00", "12.00", "14.00", "16.00"], data: this.xData,
}, },
], ],
yAxis: [ yAxis: [
@ -176,7 +178,7 @@ export default {
shadowBlur: 100, //shadowBlurshadowColor,shadowOffsetX/Y, shadowBlur: 100, //shadowBlurshadowColor,shadowOffsetX/Y,
}, },
}, },
data: [90, 105, 84, 125, 110], data: this.temperatureList,
}, },
], ],
}; };
@ -215,7 +217,7 @@ export default {
}, },
}, },
axisTick: { show: true }, axisTick: { show: true },
data: ["8.00", "10.00", "12.00", "14.00", "16.00"], data: this.xData,
}, },
], ],
yAxis: [ yAxis: [
@ -273,7 +275,7 @@ export default {
shadowBlur: 100, //shadowBlurshadowColor,shadowOffsetX/Y, shadowBlur: 100, //shadowBlurshadowColor,shadowOffsetX/Y,
}, },
}, },
data: [90, 105, 84, 125, 110], data: this.humidityList,
}, },
], ],
}; };