Browse Source

修改浦江游览的初始化和清除操作

zk 1 year ago
parent
commit
fde6f49c6c
2 changed files with 8 additions and 1 deletions
  1. 5 0
      src/utils/UIInteractions.js
  2. 3 1
      src/views/home/cpns/boatPanel/BoatPjyl.vue

+ 5 - 0
src/utils/UIInteractions.js

@@ -184,6 +184,11 @@ export function ueCallInitAll() {    //浦江游览上下船初始化
   })
 }
 
+export function ueCallClearAllAi() {    //浦江游览清除
+  callUIInteractionFormat({
+    "ActionName":"clearAllAi"
+  })
+}
 export function ueCallFindJinghua() {    //浦江游览定位到精华航线
   callUIInteractionFormat({
     "ActionName":"find_jinghua"

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

@@ -128,7 +128,7 @@ export default {
   import { 
     ueCallBoatGuiji, ueCallSetBoatDriveSpeed, ueCallBoatDrive, ueCallBoatCloseDrive, ueCallBoatStop, ueCallBoatContinue,
     ueCallInitAll, ueCallFindJinghua, ueCallRunJinghua, ueCallRunOpJinghua, ueCallFindZhuanhang, ueCallRunZhuanhang, ueCallRunOpZhuanhang,
-    ueCallChangeTrackType, ueCallHistoryRun, ueCallHistoryStop, ueCallHistoryAgain, ueCallHistoryClear
+    ueCallChangeTrackType, ueCallHistoryRun, ueCallHistoryStop, ueCallHistoryAgain, ueCallHistoryClear,ueCallClearAllAi
   } from '@/utils/UIInteractions'
   import { useDateFormat } from '@vueuse/core'
   
@@ -218,6 +218,7 @@ export default {
   function preview_stop() {
     previewState.value = 0
     ueCallInitAll()
+    ueCallClearAllAi()
   }
   function preview_pause() {
     previewState.value = 2
@@ -297,6 +298,7 @@ export default {
     // ueCallInitAll()
     ueCallBoatCloseDrive()
     ueCallHistoryClear()
+    ueCallClearAllAi()
   })