Commit 8203df81 authored by caicaicai's avatar caicaicai

修改

parent c6382307
......@@ -163,7 +163,7 @@ export default {
that.allCarInforData.forEach((item,index)=>{
var graphicLayer4 = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayer4);
that.bindLayerPopup(graphicLayer4)
that.bindLayerPopup(graphicLayer4,item.number)
that.addDemoGraphics(graphicLayer4,item.number,item.equipmentName,item.carclass);
})
......@@ -189,6 +189,7 @@ export default {
distanceDisplayCondition_near: 0,
},
},
allowDrillPick:true,
});
graphicLayer.addGraphic(graphic); //还可以另外一种写法: graphic.addTo(graphicLayer)
},
......@@ -221,8 +222,7 @@ export default {
distanceDisplayCondition_far: 50000,
distanceDisplayCondition_near: 0
}
},
allowDrillPick:true,
}
})
//载入图层
......@@ -252,10 +252,10 @@ export default {
},
// 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer) {
bindLayerPopup(graphicLayer,number) {
let that = this;
graphicLayer.bindPopup(function (event) {
that.$parent.smallWinFn(that.carNumber);
that.$parent.smallWinFn(number);
})
}
......
......@@ -8,9 +8,6 @@
<div>
<span>车牌号:</span><span style="color: rgb(24,228,240);">{{carnumber}}</span>
</div>
<div>
<span>司机:</span><span style="color: rgb(24,228,240);">{{personalName}}</span>
</div>
<div>
<span>车辆运行公里数:</span><span style="color: rgb(24,228,240);">{{carInformationData2.effic}}</span>
</div>
......@@ -48,7 +45,7 @@ export default {
loadData(carnumber) {
this.showDecide = true;
this.carnumber = carnumber;
this.personalName = 'personalName';
//获取实时数据
httpGet(vehicleRealTimeQuery,{number:this.carnumber}).then((res) => {
if(res.code == 200){
if(res.data.totalElements == 0){
......
......@@ -263,7 +263,6 @@ export default {
this.$refs.carInformationMethod.carInCloseFn();
this.$refs.personalCenterMethod.personalCenCloseFn();
this.$refs.smallWindowMethod.carInCloseFn();
let byValue = this.carName;
this.$refs.failureDeclarationMethod.loadData(this.carnumber,this.personalName);
}else{
this.selectFunction = 0;
......
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