Commit 7b1e3d7a authored by xxx's avatar xxx

1

parent ca455121
...@@ -22,6 +22,10 @@ Vue.prototype.mars3d = mars3d ...@@ -22,6 +22,10 @@ Vue.prototype.mars3d = mars3d
Vue.prototype.Cesium = mars3d.Cesium Vue.prototype.Cesium = mars3d.Cesium
var map; var map;
var graphicLayerZ;
var graphicZ;
var graphicLayerX;
var graphicX;
export default { export default {
name: 'mars3dViewer', name: 'mars3dViewer',
...@@ -251,6 +255,50 @@ export default { ...@@ -251,6 +255,50 @@ export default {
}, 4000) }, 4000)
}, },
// 装车箭头线 graphicLayer.removeGraphic(graphic);
addArrowGraphic3(boo) {
if(boo){
graphicLayerZ = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayerZ);
graphicZ = new mars3d.graphic.PolylineEntity({
positions: [
[117.662855, 34.52912, 500],
[117.662755, 34.52729, 500]
],
style: {
width: 10,
color: '#E47E1B',
clampToGround: true,
materialType: mars3d.MaterialType.PolylineArrow,
},
})
graphicLayerZ.addGraphic(graphicZ)
}else{
graphicLayerZ.removeGraphic(graphicZ);
}
},
// 卸车箭头线 graphicLayer.removeGraphic(graphic);
addArrowGraphic4(boo) {
if(boo){
graphicLayerX = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayerX);
graphicX = new mars3d.graphic.PolylineEntity({
positions: [
[117.662755, 34.52729, 500]
[117.660336, 34.528271, 500]
],
style: {
width: 10,
color: '#E47E1B',
clampToGround: true,
materialType: mars3d.MaterialType.PolylineArrow,
},
})
graphicLayerX.addGraphic(graphicX)
}else{
graphicLayerX.removeGraphic(graphicX);
}
},
// 在图层绑定Popup弹窗 // 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer,number) { bindLayerPopup(graphicLayer,number) {
let that = this; let that = this;
......
...@@ -74,6 +74,9 @@ export default { ...@@ -74,6 +74,9 @@ export default {
this.btnShow2 = true; this.btnShow2 = true;
this.carDestination = res.data.content[0].destination; this.carDestination = res.data.content[0].destination;
this.dingDanId = res.data.content[0].id; this.dingDanId = res.data.content[0].id;
//删除路径
this.$parent.zhixinglujing(false);
this.$parent.zhixinglujing2(true);
//查询指定目的地围栏以及判读该车是否在围栏里 //查询指定目的地围栏以及判读该车是否在围栏里
httpGet(screenMapSetUpQuery,{size:9999,name:this.carDestination}).then((resSon2) => { httpGet(screenMapSetUpQuery,{size:9999,name:this.carDestination}).then((resSon2) => {
let weilanArr1 = []; let weilanArr1 = [];
...@@ -182,6 +185,8 @@ export default { ...@@ -182,6 +185,8 @@ export default {
} }
} }
}); });
//执行路径
this.$parent.zhixinglujing(true);
}, },
//拒绝派单 //拒绝派单
refusePaidanFn(){ refusePaidanFn(){
...@@ -233,7 +238,10 @@ export default { ...@@ -233,7 +238,10 @@ export default {
} }
} }
}); });
httpDelForJson(dingDanBiaoCaoZuo,[this.dingDanId]).then((res) => {}); httpDelForJson(dingDanBiaoCaoZuo,[this.dingDanId]).then((res) => {
this.$parent.zhixinglujing2(false);
});
} }
}, },
//获取当前时间 //获取当前时间
......
...@@ -505,6 +505,14 @@ export default { ...@@ -505,6 +505,14 @@ export default {
} }
}); });
}, },
//执行路径
zhixinglujing(boo){
this.$refs.mars3dViewerMapMethod.addArrowGraphic3(boo);
},
//执行路径
zhixinglujing2(boo){
this.$refs.mars3dViewerMapMethod.addArrowGraphic4(boo);
},
}, },
beforeDestroy(){ beforeDestroy(){
this.$refs.voiceApplicationMethod.xintiaoCloseFn(); this.$refs.voiceApplicationMethod.xintiaoCloseFn();
......
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