Procházet zdrojové kódy

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

zk před 1 rokem
rodič
revize
9d72daf89d

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

@@ -158,7 +158,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)
   }
   watch(()=>props.boatInfo, (val) => {
     nextTick(() => {

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

@@ -173,7 +173,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)
   }
   const bottomType = ref('playback')