Commit 2935e2ec authored by xxx's avatar xxx

1

parent 0643ba38
......@@ -375,6 +375,10 @@ export default {
graphicLayerR.addGraphic(graphic)
})
},
//视角跟随车辆
changeView1(lat,lng){
map.setCameraView({ lat: lat, lng: lng, alt: 100, heading: 360, pitch: -90 })
},
// 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer,number) {
let that = this;
......
......@@ -554,9 +554,9 @@ export default {
httpGet(vehicleInformationQuery,{number:this.carnumber}).then((res) => {
if(res.code == 200){
if(this.paidanFlag == 0){
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:1}).then((res) => {});
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:1,status:0}).then((res) => {});
}else if(this.paidanFlag == 1){
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:2}).then((res) => {});
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:2,status:0}).then((res) => {});
}
}
});
......@@ -575,9 +575,9 @@ export default {
httpGet(vehicleInformationQuery,{number:this.carnumber}).then((res) => {
if(res.code == 200){
if(this.paidanFlag == 0){
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:1}).then((res) => {});
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:1,status:0}).then((res) => {});
}else if(this.paidanFlag == 1){
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:2}).then((res) => {});
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:1,weightStatus:2,odo:2,status:0}).then((res) => {});
}
}
});
......@@ -664,7 +664,7 @@ export default {
this.$nextTick(()=>{
httpGet(vehicleInformationQuery,{number:this.carnumber}).then((res) => {
if(res.code == 200){
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:0,weightStatus:0,oddStatus:1,odo:3}).then((res) => {});
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:0,weightStatus:0,oddStatus:1,odo:3,status:0}).then((res) => {});
}
});
httpGet(manualSchedulingQuery,{sort:'createTime,desc',size:1,carNo:this.carnumber}).then((res) => {
......@@ -734,7 +734,7 @@ export default {
this.$nextTick(()=>{
httpGet(vehicleInformationQuery,{number:this.carnumber}).then((res) => {
if(res.code == 200){
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:0,weightStatus:0,oddStatus:1,odo:3}).then((res) => {});
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,workStatus:0,weightStatus:0,oddStatus:1,odo:3,status:0}).then((res) => {});
}
});
httpGet(manualSchedulingQuery,{sort:'createTime,desc',size:1,carNo:this.carnumber}).then((res) => {
......
......@@ -230,6 +230,7 @@ export default {
}
}
})
//获取车辆位置并使视角跟随车辆(先空着)
}, 8000)
......
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