|
@@ -131,6 +131,9 @@ export default {
|
|
|
import { ueCallBoatGuiji, ueCallSetBoatDriveSpeed, ueCallBoatDrive, ueCallBoatCloseDrive, ueCallBoatStop, ueCallBoatContinue, ueCallChangeTrackType} from '@/utils/UIInteractions'
|
|
|
import {GetBoatNum} from '@/apis/boats'
|
|
|
|
|
|
+
|
|
|
+ import {playBoatPath,playBoatHistoryPath} from '@/utils/map/Boat'
|
|
|
+
|
|
|
const tableData = reactive({value: []})
|
|
|
|
|
|
const props = defineProps(['boat-info'])
|
|
@@ -169,17 +172,24 @@ export default {
|
|
|
playSpeed.value = s===playSpeed.value? 1: s
|
|
|
ueCallSetBoatDriveSpeed(playSpeed.value)
|
|
|
}
|
|
|
+ // import {playBoatPath,playBoatHistoryPath} from '@/utils/map/Boat'
|
|
|
|
|
|
function track_play() {
|
|
|
if(timeRange.time1&&timeRange.time2) {
|
|
|
playState.value=-1
|
|
|
- ueCallBoatGuiji(timeRange.time1, timeRange.time2)
|
|
|
- let timer = setInterval(() => {
|
|
|
- if(playState.value===-1) { return }
|
|
|
- ueCallBoatDrive()
|
|
|
- playState.value = 1
|
|
|
- clearInterval(timer)
|
|
|
- }, 300);
|
|
|
+ // ueCallBoatGuiji(timeRange.time1, timeRange.time2)
|
|
|
+ console.log('轨迹回放'+ props.boatInfo.mmsi)
|
|
|
+ let data={
|
|
|
+ deviceId: props.boatInfo.mmsi,
|
|
|
+ startTime:timeRange.time1,
|
|
|
+ endTime:timeRange.time2}
|
|
|
+ playBoatPath(data)
|
|
|
+ // let timer = setInterval(() => {
|
|
|
+ // if(playState.value===-1) { return }
|
|
|
+ // ueCallBoatDrive()
|
|
|
+ // playState.value = 1
|
|
|
+ // clearInterval(timer)
|
|
|
+ // }, 300);
|
|
|
}
|
|
|
}
|
|
|
function track_stop() {
|