Commit 2b642e1e authored by xxx's avatar xxx

1

parent 7857bff5
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
"vrButton": false, "vrButton": false,
"fullscreenButton": true, "fullscreenButton": true,
"navigationHelpButton": true, "navigationHelpButton": true,
"animation": true, "animation": false,
"timeline": false, "timeline": false,
"infoBox": false, "infoBox": false,
"geocoder": false, "geocoder": false,
...@@ -561,7 +561,7 @@ export default { ...@@ -561,7 +561,7 @@ export default {
//改变时间 //改变时间
changeTime(time){ changeTime(time){
let julian_time = Cesium.JulianDate.fromDate(new Date(time)); let julian_time = Cesium.JulianDate.fromDate(new Date(time));
console.log(julian_time); map.clock.currentTime = julian_time;
}, },
//清除定时器 //清除定时器
closeInterval(){ closeInterval(){
......
...@@ -280,7 +280,11 @@ export default { ...@@ -280,7 +280,11 @@ export default {
}, },
//改变倍速 //改变倍速
changeSpeed(num){ changeSpeed(num){
this.$refs.mars3dViewerMapMethod.changeSpeed(num); if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
return;
}else{
this.$refs.mars3dViewerMapMethod.changeSpeed(num);
}
}, },
//开测量距离 //开测量距离
measureDistance(){ measureDistance(){
...@@ -295,7 +299,7 @@ export default { ...@@ -295,7 +299,7 @@ export default {
let that = this; let that = this;
this.leadTime = boo; this.leadTime = boo;
this.pauseResumeBoolean = true; this.pauseResumeBoolean = true;
if(this.query.number == '' || this.query.bTime == '' || this.query.eTime == ''){ if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
return; return;
}else{ }else{
HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => { HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => {
...@@ -317,24 +321,34 @@ export default { ...@@ -317,24 +321,34 @@ export default {
}, },
//暂停继续 //暂停继续
pauseResume(){ pauseResume(){
if(this.pauseResumeBoolean){ if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
this.$refs.mars3dViewerMapMethod.pauseResume(false); return;
this.pauseResumeBoolean = false;
}else{ }else{
this.$refs.mars3dViewerMapMethod.pauseResume(true); if(this.pauseResumeBoolean){
this.pauseResumeBoolean = true; this.$refs.mars3dViewerMapMethod.pauseResume(false);
this.pauseResumeBoolean = false;
}else{
this.$refs.mars3dViewerMapMethod.pauseResume(true);
this.pauseResumeBoolean = true;
}
} }
}, },
//接收当前进度时间 //接收当前进度时间
progressTimeFn(time){ progressTimeFn(time){
//console.log(time);
this.trajectoryTimePointPlaceholder = time; this.trajectoryTimePointPlaceholder = time;
}, },
//轨迹时间点跳转 //轨迹时间点跳转
trajectoryTimePointFn(){ trajectoryTimePointFn(){
console.log(this.trajectoryTimePoint); if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
//this.$refs.mars3dViewerMapMethod.changeTime(this.trajectoryTimePoint); return;
}else{
if(!this.trajectoryTimePoint){
return
}else{
this.$refs.mars3dViewerMapMethod.changeTime(this.trajectoryTimePoint);
this.trajectoryTimePoint = '';
}
}
}, },
// 地图构造完成回调 // 地图构造完成回调
onMapload(map) { onMapload(map) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment