实时定位点击

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

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

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

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

Loading…
Cancel
Save