jxdnsong
2023-04-05 1dd5dc1cbff7b287b7028fa61fa7422c73921c11
派出所警车,摄像头定位
1 files modified
36 ■■■■■ changed files
src/views/home/index.vue 36 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue
@@ -1,8 +1,8 @@
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-04 17:02:25
 * @LastEditors: song
 * @LastEditTime: 2023-04-05 01:34:19
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 *
@@ -993,7 +993,22 @@
            })
            if (e == true) {
                if(this.userInfo.dept_id == '1123598813738675201'){
                    //分局定位
                initMapPosition()
                }
                else{
                    //其他派出所定位
                    const center = this.getAllRegionCenter(this.areaOptions)
                    this.$EventBus.$emit('toPosition', {
                        siteJd: center[0] + 0.0046,
                        siteWd: center[1] - 0.04,
                        siteGd: 4000,
                        siteHeading: -3,
                        sitePitch: -45
                    })
                }
                this.getEquipmentAll({ type: 0, deptId: this.policeStaionID == '' ? this.userInfo.dept_id : this.policeStaionID })
            }
@@ -1006,7 +1021,24 @@
            })
            if (e == true) {
                if(this.userInfo.dept_id == '1123598813738675201'){
                    //分局定位
                initMapPosition()
                }
                else{
                    //其他派出所定位
                    const center = this.getAllRegionCenter(this.areaOptions)
                    this.$EventBus.$emit('toPosition', {
                        siteJd: center[0] + 0.0046,
                        siteWd: center[1] - 0.04,
                        siteGd: 4000,
                        siteHeading: -3,
                        sitePitch: -45
                    })
                }
                this.getEquipmentAll({ type: 1, deptId: this.policeStaionID == '' ? this.userInfo.dept_id : this.policeStaionID })
            }