|
@@ -63,13 +63,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="cb-play">
|
|
|
- <span class="speed" :class="{'selected': playSpeed===1.5}" @click="ChangePlaySpeed(1.5)">x1.5</span>
|
|
|
- <span class="speed" :class="{'selected': playSpeed===2}" @click="ChangePlaySpeed(2)">x2.0</span>
|
|
|
- <span class="speed" :class="{'selected': playSpeed===3}" @click="ChangePlaySpeed(3)">x3.0</span>
|
|
|
- <span class="play-btn" :class="{'btn-disabled': playState===-1}" v-show="playState<1" @click="track_play">播放</span>
|
|
|
- <span class="play-btn" v-show="playState===1||playState===2" @click="track_stop">停止</span>
|
|
|
- <span class="play-btn" v-show="playState===1" @click="track_pause">暂停</span>
|
|
|
- <span class="play-btn" v-show="playState===2" @click="track_resume">继续</span>
|
|
|
+ <!-- <span class="speed" :class="{'selected': playSpeed===1.5}" @click="ChangePlaySpeed(1.5)">x1.5</span>-->
|
|
|
+ <!-- <span class="speed" :class="{'selected': playSpeed===2}" @click="ChangePlaySpeed(2)">x2.0</span>-->
|
|
|
+ <!-- <span class="speed" :class="{'selected': playSpeed===3}" @click="ChangePlaySpeed(3)">x3.0</span>-->
|
|
|
+ <span class="play-btn" :class="{'btn-disabled': playState===-1}" @click="track_play(1)">轨迹点</span>
|
|
|
+ <span class="play-btn" v-show="playState<2" @click="track_play(2)">播放</span>
|
|
|
+ <span class="play-btn" v-show="playState===2" @click="track_pause">暂停</span>
|
|
|
+ <span class="play-btn" v-show="playState===3" @click="track_resume">继续</span>
|
|
|
+ <span class="play-btn" v-show="playState===2||playState===3" @click="track_stop">停止</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="content-hxyl" v-else-if="bottomType==='preview'">
|
|
@@ -184,28 +185,40 @@ export default {
|
|
|
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);
|
|
|
+ let data={
|
|
|
+ mmsi: props.boatInfo.mmsi,
|
|
|
+ startTime:timeRange.time1,
|
|
|
+ endTime:timeRange.time2}
|
|
|
+
|
|
|
+ if (types==1)
|
|
|
+ {
|
|
|
+ bus.emit('playBoatPath', data)
|
|
|
+ }else {
|
|
|
+ bus.emit('playBoatHistoryPath', 'start')
|
|
|
+ }
|
|
|
+ playState.value = 1
|
|
|
+ // ueCallBoatGuiji(timeRange.time1, timeRange.time2)
|
|
|
+ // let timer = setInterval(() => {
|
|
|
+ // if(playState.value===-1) { return }
|
|
|
+ // ueCallBoatDrive()
|
|
|
+ // playState.value = 1
|
|
|
+ // clearInterval(timer)
|
|
|
+ // }, 300);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
function track_stop() {
|
|
|
+ bus.emit('playBoatHistoryPath', 'stop')
|
|
|
playState.value = 0
|
|
|
- ueCallBoatCloseDrive()
|
|
|
}
|
|
|
function track_pause() {
|
|
|
- playState.value = 2
|
|
|
- ueCallBoatStop()
|
|
|
+ bus.emit('playBoatHistoryPath', 'pause')
|
|
|
+ playState.value = 3
|
|
|
}
|
|
|
function track_resume() {
|
|
|
- playState.value = 1
|
|
|
- ueCallBoatContinue()
|
|
|
+ bus.emit('playBoatHistoryPath', 'resume')
|
|
|
+ playState.value = 2
|
|
|
}
|
|
|
-
|
|
|
const previewState = ref(0) /* 0--未开始/已结束; 1--托管中; 2--接管中; -1--禁用状态 */
|
|
|
|
|
|
function preview_play() {
|
|
@@ -278,7 +291,6 @@ export default {
|
|
|
historyState.value = 0
|
|
|
historyCurrent.value = null
|
|
|
}
|
|
|
-
|
|
|
|
|
|
watch(()=>props.boatInfo.mmsi, (val) => {
|
|
|
GetLshb(val).then(res => {
|