Commit c6382307 authored by caicaicai's avatar caicaicai

修改

parent 9fcf00bd
......@@ -222,28 +222,29 @@ export default {
distanceDisplayCondition_near: 0
}
},
allowDrillPick:true,
})
//载入图层
graphicLayer4.addGraphic(graphic)
//初始位置
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 500))
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000))
})
//五秒后位置
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 500), 5)
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 5)
})
//定时更新动态位置
setInterval(() => {
httpGet(carRealTimeLocationQuery2,{name:equipmentName}).then((res) => {
if(res.data){
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.lon, res.data.lat, 500), 5)
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.lon, res.data.lat, 1000), 5)
})
}else{
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 500), 5)
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 5)
})
}
});
......@@ -252,8 +253,9 @@ export default {
},
// 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer) {
let that = this;
graphicLayer.bindPopup(function (event) {
console.log('fdfdf')
that.$parent.smallWinFn(that.carNumber);
})
}
......
......@@ -45,10 +45,10 @@ export default {
},
mounted() { },
methods: {
loadData(carnumber,personalName) {
loadData(carnumber) {
this.showDecide = true;
this.carnumber = carnumber;
this.personalName = personalName;
this.personalName = 'personalName';
httpGet(vehicleRealTimeQuery,{number:this.carnumber}).then((res) => {
if(res.code == 200){
if(res.data.totalElements == 0){
......
......@@ -340,7 +340,7 @@ export default {
},
//车辆详情小窗口
smallWinFn(){
smallWinFn(carNumber){
if(this.selectFunction != 7){
this.selectFunction = 7;
this.$refs.voiceApplicationMethod.voiceAppCloseFn();
......@@ -348,7 +348,7 @@ export default {
this.$refs.performanceStatisticsMethod.achievementCloseFn();
this.$refs.carInformationMethod.carInCloseFn();
this.$refs.personalCenterMethod.personalCenCloseFn();
this.$refs.smallWindowMethod.loadData(this.carnumber,this.personalName);
this.$refs.smallWindowMethod.loadData(carNumber);
}else{
this.selectFunction = 0;
this.$refs.voiceApplicationMethod.voiceAppCloseFn();
......
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