定位弹出框修改

dhy
吕天方 2 years ago
parent f5e3a42158
commit 3fc9db99bc

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 若依管理系统 VUE_APP_TITLE = 城市精细化管理监测主题
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 若依管理系统 VUE_APP_TITLE = 城市精细化管理监测主题
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'

@ -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: 2023-08-16 10:53:31 * @LastEditTime: 2023-08-17 21:03:34
--> -->
<template> <template>
<div class="left-box"> <div class="left-box">
@ -140,7 +140,7 @@ export default {
.left-box { .left-box {
display: grid; display: grid;
grid-column: 1fr; grid-column: 1fr;
grid-row-gap: 15px; grid-row-gap: 19px;
.item { .item {
// background: rgba(222, 225, 230, 0.6); // background: rgba(222, 225, 230, 0.6);
.item-main { .item-main {

@ -4,7 +4,7 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-08-15 11:09:57 * @Date: 2023-08-15 11:09:57
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-08-16 10:49:03 * @LastEditTime: 2023-08-17 21:00:46
--> -->
<template> <template>
<div class="right-box"> <div class="right-box">
@ -100,7 +100,7 @@ export default {
.right-box { .right-box {
display: grid; display: grid;
grid-column: 1fr; grid-column: 1fr;
grid-row-gap: 15px; grid-row-gap: 20px;
.item { .item {
// background: rgba(222, 225, 230, 0.6); // background: rgba(222, 225, 230, 0.6);
// height: 161px; // height: 161px;

@ -4,7 +4,7 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-08-14 15:46:26 * @Date: 2023-08-14 15:46:26
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-08-17 18:16:09 * @LastEditTime: 2023-08-17 21:32:14
--> -->
<!-- <!--
* @Descripttion: * @Descripttion:
@ -41,11 +41,11 @@
<i slot="suffix" class="el-icon-search" @click="search"></i> <i slot="suffix" class="el-icon-search" @click="search"></i>
</el-input> </el-input>
</div> </div>
<div class="laser-positioning" @click="positioning()"> <div class="laser-positioning">
<span>地图扎点</span> <span>地图扎点</span>
<img src="@/assets/images/positioning.png" alt=""> <img src="@/assets/images/positioning.png" alt="">
</div> </div>
<div class="creation-task" @click="createdTask()"> <div class="creation-task">
<span>任务创建</span> <span>任务创建</span>
<img src="@/assets/images/createdTask.png" alt=""> <img src="@/assets/images/createdTask.png" alt="">
</div> </div>
@ -110,10 +110,10 @@
<personage-track ref="personageTrack"></personage-track> <personage-track ref="personageTrack"></personage-track>
<crew-assign ref="crewAssign"></crew-assign> <crew-assign ref="crewAssign"></crew-assign>
<video-wall ref="videoWall"></video-wall> <video-wall ref="videoWall"></video-wall>
<person-popup v-if="personPopup" v-on:personClose="personClose" v-on:getRoute="presoninfo"></person-popup> <person-popup v-if="personPopup" v-on:personClose="personClose" v-on:getRoute="presoninfo" :point="mypoint"></person-popup>
<event-popup v-if="eventPopup" v-on:eventClose="eventClose" v-on:zhipai="personzhipai"></event-popup> <event-popup v-if="eventPopup" v-on:eventClose="eventClose" v-on:zhipai="personzhipai" :point="mypoint"></event-popup>
<car-popup v-if="carPopup" v-on:carClose="carClose" v-on:carinfo="carinfo"></car-popup> <car-popup v-if="carPopup" v-on:carClose="carClose" v-on:carinfo="carinfo" :point="mypoint"></car-popup>
<monitoring-popup v-if="monitoringPopup" v-on:monitoringClose="monitoringClose" v-on:monitoringInfo="monitoringInfo"></monitoring-popup> <monitoring-popup v-if="monitoringPopup" v-on:monitoringClose="monitoringClose" v-on:monitoringInfo="monitoringInfo" :point="mypoint"></monitoring-popup>
</div> </div>
</template> </template>
<script> <script>
@ -180,7 +180,8 @@ export default {
personPopup:false, personPopup:false,
eventPopup:false, eventPopup:false,
carPopup:false, carPopup:false,
monitoringPopup:false monitoringPopup:false,
mypoint:{},
} }
}, },
methods:{ methods:{
@ -276,15 +277,15 @@ export default {
}) })
let ico2 = L.icon({ let ico2 = L.icon({
iconUrl: require('../../../assets/images/icon/icon2.png'), iconUrl: require('../../../assets/images/icon/icon2.png'),
iconSize: [52, 81], iconSize: [44, 91],
}) })
let ico3 = L.icon({ let ico3 = L.icon({
iconUrl: require('../../../assets/images/icon/icon3.png'), iconUrl: require('../../../assets/images/icon/icon3.png'),
iconSize: [52, 81], iconSize: [44, 91],
}) })
let ico4 = L.icon({ let ico4 = L.icon({
iconUrl: require('../../../assets/images/icon/icon4.png'), iconUrl: require('../../../assets/images/icon/icon4.png'),
iconSize: [52, 81], iconSize: [45, 95],
}) })
let ico5 = L.icon({ let ico5 = L.icon({
iconUrl: require('../../../assets/images/icon/icon5.png'), iconUrl: require('../../../assets/images/icon/icon5.png'),
@ -349,6 +350,7 @@ export default {
markerClick(marker){ markerClick(marker){
marker.on('click', e => { marker.on('click', e => {
console.log(e); console.log(e);
this.mypoint = e.containerPoint;
if(this.actionMap == 1) { if(this.actionMap == 1) {
this.personPopup = true; this.personPopup = true;
} else if(this.actionMap == 2) { } else if(this.actionMap == 2) {
@ -468,13 +470,13 @@ export default {
}, },
actionBtn(id){ actionBtn(id){
this.action = id; this.action = id;
console.log(id) // console.log(id)
this.$emit('actionBtn',id); // this.$emit('actionBtn',id);
if(id == 1){ // if(id == 1){
this.$refs.personageTrack.open(); // this.$refs.personageTrack.open();
} else { // } else {
this.$refs.crewAssign.open(); // this.$refs.crewAssign.open();
} // }
}, },
// //
search(){ search(){
@ -486,7 +488,7 @@ export default {
}, },
// //
positioning(){ positioning(){
this.$refs.videoWall.open(); // this.$refs.videoWall.open();
}, },
// //
changeMap(id){ changeMap(id){

@ -1,5 +1,13 @@
<!--
* @Descripttion:
* @version:
* @Author: JC9527
* @Date: 2023-08-17 16:59:51
* @LastEditors: JC9527
* @LastEditTime: 2023-08-17 21:28:32
-->
<template> <template>
<popup-title :type="3" v-on:personClose="carClose" title="车辆信息"> <popup-title :type="3" v-on:personClose="carClose" title="车辆信息" :style="pointLocation">
<div class="car-main"> <div class="car-main">
<div class="car-info"> <div class="car-info">
<div class="dot"></div> <div class="dot"></div>
@ -16,6 +24,10 @@ export default {
components:{popupTitle}, components:{popupTitle},
data() { data() {
return { return {
pointLocation:{
left:'',
right:'',
}
} }
}, },
methods:{ methods:{
@ -26,6 +38,27 @@ export default {
this.$emit('carinfo') this.$emit('carinfo')
} }
}, },
props:{
point:{
type:Object,
default:function(){
return {}
}
}
},
mounted(){
this.pointLocation.left = (this.point.x + 20) + 'px';
this.pointLocation.top = (this.point.y - 40) + 'px'
},
watch:{
point:{
handler(newobj,oldobj) {
this.pointLocation.left = (newobj.x + 20) + 'px';
this.pointLocation.top = (newobj.y - 40) + 'px'
},
deep:true,
}
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

@ -1,5 +1,5 @@
<template> <template>
<popup-title :type="2" v-on:personClose="eventClose" title="事件信息"> <popup-title :type="2" v-on:personClose="eventClose" title="事件信息" :style="pointLocation">
<div class="event-main"> <div class="event-main">
<div class="event-info"> <div class="event-info">
<div class="dot"></div> <div class="dot"></div>
@ -36,6 +36,10 @@ export default {
mypopupTitle:{ mypopupTitle:{
width:'242px', width:'242px',
height:"224px", height:"224px",
},
pointLocation:{
left:'',
right:'',
} }
} }
}, },
@ -47,6 +51,27 @@ export default {
this.$emit('zhipai') this.$emit('zhipai')
} }
}, },
props:{
point:{
type:Object,
default:function(){
return {}
}
}
},
mounted(){
this.pointLocation.left = (this.point.x + 20) + 'px';
this.pointLocation.top = (this.point.y - 40) + 'px'
},
watch:{
point:{
handler(newobj,oldobj) {
this.pointLocation.left = (newobj.x + 20) + 'px';
this.pointLocation.top = (newobj.y - 40) + 'px'
},
deep:true,
}
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

@ -20,7 +20,7 @@
</div> </div>
<div class="route-track"> <div class="route-track">
<img src="@/assets/images/track.png" alt=""> <img src="@/assets/images/track.png" alt="">
<span>形成轨迹</span> <span>行程轨迹</span>
</div> </div>
</div> </div>
</div> </div>

@ -1,5 +1,13 @@
<!--
* @Descripttion:
* @version:
* @Author: JC9527
* @Date: 2023-08-17 17:14:00
* @LastEditors: JC9527
* @LastEditTime: 2023-08-17 21:28:08
-->
<template> <template>
<popup-title :type="4" v-on:personClose="monitoringClose" title="监控视频"> <popup-title :type="4" v-on:personClose="monitoringClose" title="监控视频" :style="pointLocation">
<div class="monitoring"> <div class="monitoring">
<div class="bg"> <div class="bg">
<img src="@/assets/images/popup/screenshot20230817.png" alt=""> <img src="@/assets/images/popup/screenshot20230817.png" alt="">
@ -17,6 +25,10 @@ export default {
components:{popupTitle}, components:{popupTitle},
data() { data() {
return { return {
pointLocation:{
left:'',
right:'',
}
} }
}, },
methods:{ methods:{
@ -27,6 +39,27 @@ export default {
this.$emit('monitoringInfo') this.$emit('monitoringInfo')
} }
}, },
props:{
point:{
type:Object,
default:function(){
return {}
}
}
},
mounted(){
this.pointLocation.left = (this.point.x + 20) + 'px';
this.pointLocation.top = (this.point.y - 40) + 'px'
},
watch:{
point:{
handler(newobj,oldobj) {
this.pointLocation.left = (newobj.x + 20) + 'px';
this.pointLocation.top = (newobj.y - 40) + 'px'
},
deep:true,
}
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

@ -4,10 +4,10 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-08-17 15:43:51 * @Date: 2023-08-17 15:43:51
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-08-17 17:47:57 * @LastEditTime: 2023-08-17 21:27:22
--> -->
<template> <template>
<div class="person-popup"> <div class="person-popup" :style="pointLocation">
<div class="popup-title"> <div class="popup-title">
<div class="title">人员信息</div> <div class="title">人员信息</div>
<div class="mask" @click="close()"></div> <div class="mask" @click="close()"></div>
@ -31,6 +31,10 @@
export default { export default {
data() { data() {
return { return {
pointLocation:{
left:'',
right:'',
}
} }
}, },
methods:{ methods:{
@ -41,6 +45,27 @@ export default {
this.$emit('getRoute') this.$emit('getRoute')
} }
}, },
props:{
point:{
type:Object,
default:function(){
return {}
}
}
},
mounted(){
this.pointLocation.left = (this.point.x + 20) + 'px';
this.pointLocation.top = (this.point.y - 40) + 'px'
},
watch:{
point:{
handler(newobj,oldobj) {
this.pointLocation.left = (newobj.x + 20) + 'px';
this.pointLocation.top = (newobj.y - 40) + 'px'
},
deep:true,
}
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

Loading…
Cancel
Save