Commit bb0f5ace authored by xxx's avatar xxx

修改

parent 12076e96
...@@ -276,7 +276,13 @@ export default { ...@@ -276,7 +276,13 @@ export default {
monitorCover1Id.play(); monitorCover1Id.play();
}); });
}else if(event.data.data.url == '轨迹回放'){ }else if(event.data.data.url == '轨迹回放'){
console.log('轨迹回放',event.data.data.data); let pathInfo = this.$router.resolve({
path:'/carManagement/carTrajectory',
query:{
number:event.data.data.data
}
})
window.open(pathInfo.href, '_blank');
} }
} }
}, },
......
...@@ -75,20 +75,40 @@ export default { ...@@ -75,20 +75,40 @@ export default {
} }
}, },
mounted() { mounted() {
this.$nextTick(() => { let that = this;
this.loadData(); this.loadData();
this.$refs.mars3dViewerMapMethod.getCoordinate('','',5,'',''); if(this.$route.query.number){
}) this.query.number = this.$route.query.number;
HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => {
if(res.code == 200 && res.data.totalElements != 0){
this.tishiTextShow = false;
this.shuaxinTimer = new Date().getTime();
that.$refs.mars3dViewerMapMethod.getCoordinate(res.data.content[0].equipmentName,res.data.content[0].number,that.playSpeedNum,that.query.bTime,that.query.eTime);
}else{
this.$notify({
title: '暂无该车辆轨迹信息!',
type: 'warning',
duration: 2500
});
}
})
}
}, },
methods: { methods: {
// 点击搜索 // 点击搜索
toSearch() { toSearch() {
let that = this; let that = this;
HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => { HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => {
if(res.code == 200){ if(res.code == 200 && res.data.totalElements != 0){
this.tishiTextShow = false; this.tishiTextShow = false;
this.shuaxinTimer = new Date().getTime(); this.shuaxinTimer = new Date().getTime();
that.$refs.mars3dViewerMapMethod.getCoordinate(res.data.content[0].equipmentName,res.data.content[0].number,that.playSpeedNum,that.query.bTime,that.query.eTime); that.$refs.mars3dViewerMapMethod.getCoordinate(res.data.content[0].equipmentName,res.data.content[0].number,that.playSpeedNum,that.query.bTime,that.query.eTime);
}else{
this.$notify({
title: '暂无该车辆轨迹信息!',
type: 'warning',
duration: 2500
});
} }
}) })
}, },
......
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