Browse Source

修改结束定位,修改模拟驾驶

zk 1 year ago
parent
commit
749d561bab

+ 4 - 3
src/views/home/ComPage.vue

@@ -36,9 +36,10 @@ bus.on('ueRec_BoatClick', (data) => {
   bus.emit('closeAllBoatDockList')
 })
 watch(boatPanelShow, (newValue, oldValue) => {
- // if (!newValue){
- //   locationBoat( null,false)
- // }
+
+ if (!newValue){
+   locationBoat( null,false)
+ }
   clearBoatHistoryPath(boatPanelInfo.value)
 });
 

+ 10 - 1
src/views/home/cpns/boatPanel/BoatDjld.vue

@@ -109,7 +109,16 @@ export default {
     }else {
       playJaShi.value=0
     }
-    boatDriving(type)
+
+   let data= {
+     "mmsi":    props.boatInfo.mmsi,
+     "shipName":    props.boatInfo.shipNameCn,
+     "shipTypeName": props.boatInfo.shipTypeName,
+     "direction":  props.boatInfo.direction,
+     "mapx":  props.boatInfo.mapx,
+     "mapy":  props.boatInfo.mapy
+   }
+    boatDriving(data,type)
   }
   bus.on('ueRec_boatGuiji', (data) => {
     if(data.isOk=='true') {

+ 9 - 1
src/views/home/cpns/boatPanel/BoatGeneral.vue

@@ -163,7 +163,15 @@ export default {
     }else {
       playJaShi.value=0
     }
-    boatDriving(type)
+    let data= {
+      "mmsi":    props.boatInfo.mmsi,
+      "shipName":    props.boatInfo.shipNameCn,
+      "shipTypeName": props.boatInfo.shipTypeName,
+      "direction":  props.boatInfo.direction,
+      "mapx":  props.boatInfo.mapx,
+      "mapy":  props.boatInfo.mapy
+    }
+    boatDriving(data,type)
   }
 
   bus.on('ueRec_boatGuiji', (data) => {