|
|
@@ -48,13 +48,15 @@
|
|
|
</div>
|
|
|
<div class="content-dock-info-cell">
|
|
|
<div class="content-dock-info-cell-style">
|
|
|
- <div v-if="1">
|
|
|
+ <div v-if="airworthiness">
|
|
|
<img :src="weatherSrc">
|
|
|
适合飞行
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <img :src="weatherSrc">
|
|
|
- 不适合飞行
|
|
|
+ <img :src="weatherErrorSrc">
|
|
|
+ <span style="color: #FF0000;">
|
|
|
+ 不适合飞行
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-dock-info-cell-row">
|
|
|
@@ -365,6 +367,7 @@ import dock2Src from '../icons/info/dock2.png';
|
|
|
import M30Src from '../icons/info/m30.png';
|
|
|
import M3tdSrc from '../icons/info/m3td.png';
|
|
|
import weatherSrc from '../icons/info/weather.svg';
|
|
|
+import weatherErrorSrc from '../icons/info/weatherError.svg';
|
|
|
import temperatureSrc from '../icons/info/temperature.svg';
|
|
|
import networkSrc from '../icons/info/network.svg';
|
|
|
import uploadSrc from '../icons/info/upload.svg';
|
|
|
@@ -413,6 +416,23 @@ const { dockControlPanelVisible, setDockControlPanelVisible, onCloseControlPanel
|
|
|
|
|
|
const hmsInfo = computed(() => store.state.hmsInfo);
|
|
|
|
|
|
+// 适合飞行
|
|
|
+const airworthiness = computed(() => {
|
|
|
+ const info = props.deviceInfo?.dock?.basic_osd;
|
|
|
+ if (info) {
|
|
|
+ const { rainfall, wind_speed } = info;
|
|
|
+ if (rainfall === 3) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (wind_speed > 8) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
// 飞行器告警信息
|
|
|
const aircraftLogInfo = computed(() => {
|
|
|
const hmsList = hmsInfo.value[props.osdInfo.sn] || [];
|