|
@@ -66,6 +66,8 @@
|
|
|
<!-- <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': playJaShi===1}" v-show="playState<2" @click="preview_moni(true)">模拟驾驶</span>
|
|
|
+ <span class="play-btn" :class="{'btn-disabled': playJaShi===0}" v-show="playState<2" @click="preview_moni(false)">关闭驾驶</span>
|
|
|
<span class="play-btn" :class="{'btn-disabled': playState===-1}" v-show="playState<2" @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>
|
|
@@ -127,6 +129,7 @@ export default {
|
|
|
import { GetLshb } from '../../../../apis/ssky'
|
|
|
import 'element-plus/es/components/date-picker/style/css'
|
|
|
import bus from '@/utils/bus'
|
|
|
+ import {boatDriving} from '@/utils/map/Boat'
|
|
|
import {
|
|
|
ueCallBoatGuiji, ueCallSetBoatDriveSpeed, ueCallBoatDrive, ueCallBoatCloseDrive, ueCallBoatStop, ueCallBoatContinue,
|
|
|
ueCallInitAll, ueCallFindJinghua, ueCallRunJinghua, ueCallRunOpJinghua, ueCallFindZhuanhang, ueCallRunZhuanhang, ueCallRunOpZhuanhang,
|
|
@@ -157,9 +160,21 @@ export default {
|
|
|
ElMessage({type: 'warning',message:'此船舶该时段未查到轨迹点'})
|
|
|
}
|
|
|
})
|
|
|
+ const playJaShi = ref(0)
|
|
|
|
|
|
+ function preview_moni(type)
|
|
|
+ {
|
|
|
+ if (type)
|
|
|
+ {
|
|
|
+ playJaShi.value=1
|
|
|
+ }else {
|
|
|
+ playJaShi.value=0
|
|
|
+ }
|
|
|
+ boatDriving(type)
|
|
|
+ }
|
|
|
const bottomType = ref('playback')
|
|
|
|
|
|
+
|
|
|
bus.on('ueRec_pujiangInit', (data) => {
|
|
|
if(data.isOk=='true') {
|
|
|
previewState.value=0
|