Commit bdb76e2b authored by xxx's avatar xxx

修改获取派单的间隔时间

parent eef195fa
......@@ -281,24 +281,24 @@ export default {
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000))
})
//秒后位置
//秒后位置
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 5)
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 3)
})
//定时更新动态位置
setInterval(() => {
httpGet(carRealTimeLocationQuery2,{name:equipmentName}).then((res) => {
if(res.data){
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.location.x, res.data.location.y, 1000), 5)
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.location.x, res.data.location.y, 1000), 3)
})
}else{
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 5)
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 3)
})
}
});
}, 4000)
}, 2500)
},
// 装车箭头线 graphicLayer.removeGraphic(graphic);
......
......@@ -224,7 +224,7 @@ export default {
});
}
}, 10000)
}, 5000)
},
methods:{
loadData(carnumber){
......
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