food/src/components/PlaneStatus.vue

71 lines
1.8 KiB
Vue
Raw Normal View History

2023-09-20 21:33:11 +08:00
<template>
<el-row class="m-15" type="flex" justify="space-between">
<el-col :span="2">
<PublicTag icon="icon-weixing" :val="plane.planeState.satCount" unit="颗" state="normal" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="2">
<PublicTag icon="icon-weixing" :val="plane.planeState.voltagBattery" unit="V" state="normal" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="2">
<PublicTag icon="icon-weixing" :val="plane.planeState.loadweight" unit="克" state="normal" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="2">
<PublicTag icon="icon-gaodu" :val="plane.planeState.state" unit="状" state="normal" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="3">
<HeartTag :heartBeat="plane.planeState.heartBeat" :heartRandom="plane.planeState.heartRandom"
:getPlaneMode="plane.planeState.getPlaneMode" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="2">
<PublicTag icon="icon-mianxingdiaogou" :val="plane.planeState.hookstatus" unit="" state="normal" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="2">
<PublicTag icon="icon-gaodu" :val="plane.planeState.positionAlt" unit="米" state="normal" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="2">
<PublicTag icon="icon-gaodu" :val="plane.planeState.fixType" unit="" state="danger" />
2023-09-20 21:33:11 +08:00
</el-col>
<el-col :span="2">
<PublicTag icon="icon-gaodu" val="50" unit="米" state="danger" />
</el-col>
</el-row>
</template>
<script>
import HeartTag from '@/components/Tag/HeartTag'
import PublicTag from '@/components/Tag/PublicTag'
export default {
name: 'PlaneStatus',
data () {
return {
}
},
props: {
plane: {
typeof: 'Object',
deep: true
}
},
2023-09-20 21:33:11 +08:00
components: {
HeartTag,
PublicTag
},
computed: {
},
watch: {
},
methods: {},
created () {
}
}
</script>
<style lang="scss" scoped>
@import "@/styles/theme.scss";
.el-row {
z-index: 90;
}
</style>