Commit 6b51ceb7 authored by xxx's avatar xxx

修改

parent 0fb2034f
...@@ -262,11 +262,11 @@ export default { ...@@ -262,11 +262,11 @@ export default {
map.addLayer(graphicLayerZ); map.addLayer(graphicLayerZ);
graphicZ = new mars3d.graphic.PolylineEntity({ graphicZ = new mars3d.graphic.PolylineEntity({
positions: [ positions: [
[117.662855, 34.52912, 500], [117.66302, 34.53032, 500],
[117.662755, 34.52729, 500] [117.6636, 34.5295, 500]
], ],
style: { style: {
width: 10, width: 20,
color: '#E47E1B', color: '#E47E1B',
clampToGround: true, clampToGround: true,
materialType: mars3d.MaterialType.PolylineArrow, materialType: mars3d.MaterialType.PolylineArrow,
...@@ -284,11 +284,11 @@ export default { ...@@ -284,11 +284,11 @@ export default {
map.addLayer(graphicLayerX); map.addLayer(graphicLayerX);
graphicX = new mars3d.graphic.PolylineEntity({ graphicX = new mars3d.graphic.PolylineEntity({
positions: [ positions: [
[117.662755, 34.52729, 500] [117.6636, 34.5295, 500]
[117.660336, 34.528271, 500] [117.6631, 34.5277, 500]
], ],
style: { style: {
width: 10, width: 20,
color: '#E47E1B', color: '#E47E1B',
clampToGround: true, clampToGround: true,
materialType: mars3d.MaterialType.PolylineArrow, materialType: mars3d.MaterialType.PolylineArrow,
......
...@@ -133,6 +133,8 @@ export default { ...@@ -133,6 +133,8 @@ export default {
//电量显示 //电量显示
IsCharge:true, IsCharge:true,
batteryEnegy:0, batteryEnegy:0,
//判断卸车1
boo1:false,
} }
}, },
mounted(){ mounted(){
...@@ -163,12 +165,12 @@ export default { ...@@ -163,12 +165,12 @@ export default {
if(res1.code == 200){ if(res1.code == 200){
res1.data.forEach((item,index) => { res1.data.forEach((item,index) => {
this.notifyPromise = this.notifyPromise.then(this.$nextTick).then(()=>{ this.notifyPromise = this.notifyPromise.then(this.$nextTick).then(()=>{
this.$notify({ // this.$notify({
title: (item.type == 1 ? "限入" : item.type == 2 ? '限出' : (item.type == 3 && this.carclass != '铲车') ? '无故停车' : item.type == 4 ? '防碰撞' : '') + (item.areaName == undefined ? '' : item.areaName) + '报警', // title: (item.type == 1 ? "限入" : item.type == 2 ? '限出' : (item.type == 3 && this.carclass != '铲车') ? '无故停车' : item.type == 4 ? '防碰撞' : '') + (item.areaName == undefined ? '' : item.areaName) + '报警',
type: 'warning', // type: 'warning',
duration: 10000, // duration: 10000,
dangerouslyUseHTMLString: true, // dangerouslyUseHTMLString: true,
}); // });
}); });
}); });
} }
...@@ -511,7 +513,11 @@ export default { ...@@ -511,7 +513,11 @@ export default {
}, },
//执行路径 //执行路径
zhixinglujing2(boo){ zhixinglujing2(boo){
this.$refs.mars3dViewerMapMethod.addArrowGraphic4(boo); if(!this.boo1){
this.boo1 = boo;
this.$refs.mars3dViewerMapMethod.addArrowGraphic4(boo);
}
}, },
}, },
beforeDestroy(){ beforeDestroy(){
......
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