邓洁: 完善首页数据

This commit is contained in:
邓洁
2023-12-22 16:07:06 +08:00
parent 3907f39b7f
commit 43c4aaa21d
7 changed files with 74 additions and 137 deletions

View File

@@ -3,8 +3,7 @@
<div class="fan-speed">
<img src="@/assets/images/airInfo/fan-v-icon.png" alt=""/>
<div class="fan-info" @click="handleOpenChart">
<div class="input-fan"><span>风速</span><span>进风{{ windSpeed }}m/s</span></div>
<div class="output-fan"><span>出风{{ windSpeed }}m/s</span></div>
<div class="input-fan"><span>风速</span>{{ windSpeed }}m/s</div>
</div>
</div>
<item-info
@@ -146,7 +145,7 @@ const getAirInfo = (now) => {
if (item.equipmentType === "dust" || item.equipmentType === "oxygen" || item.equipmentType === "temperature" || item.equipmentType === "humidness") {
airObj = changeData(item)
airArr.push(airObj)
} else if (item.equipmentType === "windDirection") {
} else if (item.equipmentType === "windSpeed") {
windSpeed.value = item.value
}
})
@@ -233,17 +232,6 @@ const initChart = () => {
//配置项
series: [
{
name: '进风口',
data: [56, 12, 89, 34, 71, 43, 67, 20, 98, 72, 19, 61, 3, 85, 47, 92, 17, 76, 69, 25, 31, 49, 81, 63],
type: 'line',
smooth: true,
symbolSize: 24,
lineStyle: {
width: 5
}
},
{
name: '出风口',
data: [3, 85, 47, 92, 17, 76, 69, 25, 56, 12, 89, 34, 71, 43, 67, 20, 98, 72, 19, 61, 31, 49, 81, 63],
type: 'line',
smooth: true,
@@ -391,13 +379,13 @@ const initAirChart = () => {
.fan-info {
flex: 1;
display: flex;
justify-content: space-between;
justify-content: flex-start;
.input-fan {
margin: 0 26px;
//margin: 0 26px;
> span:last-child {
margin-left: 30px;
margin-left: 25px;
}
}
}