Commit c6382307 authored by caicaicai's avatar caicaicai

修改

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