实时定位点击

Lvtianfang
吕天方 1 year ago
parent 84fd95cd5e
commit a75eee649b

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-08-15 09:44:13
* @LastEditors: JC9527
* @LastEditTime: 2024-01-23 14:01:48
* @LastEditTime: 2024-01-28 14:19:23
-->
<template>
<div class="left-box">
@ -82,7 +82,7 @@
<div class="item lfet-list-two" :style="itemOne">
<title-box title="车辆在线情况"></title-box>
<map-number title="在线车辆总数" :onLine="10" :sum="18" type="辆" :numberArray="vehicleArray" :height="oneHeight"
:id="2"></map-number>
:id="3"></map-number>
</div>
</div>
</template>

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2024-01-09 23:08:15
* @LastEditors: JC9527
* @LastEditTime: 2024-01-26 16:41:44
* @LastEditTime: 2024-01-29 09:12:02
-->
<template>
<div class="map-main">
@ -1232,14 +1232,6 @@ export default {
this.shopInfo.visible = false;
}
},
// /
travelPath(){
if(this.actionMap == 1) {
this.$refs.personageTrack.open("person", this.personInfo.info);
} else if(this.actionMap == 3) {
this.$refs.personageTrack.open("car");
}
},
//
taskClick(){
this.$refs.personageTask.open(this.personInfo.info);
@ -1655,12 +1647,24 @@ export default {
})
},
//
realTimeLocationClick(item){
this.personLine.forEach(per=>{
if(item.imei == per.imei) {
this.map.setZoomAndCenter(16,[per.longitude,per.latitude]);
}
})
realTimeLocationClick(item,id){
if(id == this.actionMap) {
this.personLine.forEach(per=>{
if(item.imei == per.imei) {
this.map.setZoomAndCenter(16,[per.longitude,per.latitude]);
}
})
} else if(id == this.actionMap){
}
},
// /
travelPath(){
if(this.actionMap == 1) {
this.$refs.personageTrack.open("person", this.personInfo.info);
} else if(this.actionMap == 3) {
this.$refs.personageTrack.open("car");
}
},
//
divClick(lightedPolygonId){
@ -1716,8 +1720,9 @@ export default {
editable:false,
visible:true,
});
element.text?.setStyle({
'color': '#FFDBB7',
'color': '#00AEFF',
'text-shadow': '0px 1px 0px rgba(0,0,0,0.3)',
});
})

@ -74,7 +74,7 @@ export default {
// TODO:
realTimeLocation(item){
if(this.id == 1) {
this.$emit("realTimeLocationClick", item);
this.$emit("realTimeLocationClick", item,this.id);
}
},
//

Loading…
Cancel
Save