| | |
| | | }) |
| | | } else { |
| | | this.housingOptions = res.data.data |
| | | this.initHousingLayer () |
| | | this.initHousingLayer() |
| | | this.housingOptions.unshift({ |
| | | name: '全部', |
| | | id: 1 |
| | |
| | | this.housingCheckValue = '请选择小区' |
| | | this.getPoliceStationTree(3, item.id) |
| | | this.areaChecked = item |
| | | |
| | | |
| | | |
| | | } |
| | | }, |
| | |
| | | this.$EventBus.$emit('toPosition', { |
| | | siteJd: centerPosition[0], |
| | | siteWd: centerPosition[1], |
| | | siteGd: 3000, |
| | | siteGd: 10000, |
| | | siteHeading: -3, |
| | | sitePitch: -90 |
| | | }) |
| | |
| | | }) |
| | | |
| | | this.housingOptions.length > 0 && this.housingOptions.forEach(item => { |
| | | if(item.name == '全部') return |
| | | const positions = JSON.parse(item.position[0]).coordinates |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'polygonLayer', |
| | | type: 'billboard', |
| | | params: { |
| | | lng: Number(positions[0]), |
| | | lat: Number(positions[1]), |
| | | alt: 1, |
| | | url: '/img/icon/house.png', |
| | | id: item.id |
| | | }, |
| | | incident: this.houseSiteClick, |
| | | distanceDisplayCondition: { "near": 0, "far": 200000 } |
| | | }) |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | if (item.name == '全部') return |
| | | const positions = JSON.parse(item.position[0]).coordinates |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'polygonLayer', |
| | | type: 'billboard', |
| | | params: { |
| | | lng: Number(positions[0]), |
| | | lat: Number(positions[1]), |
| | | alt: 1, |
| | | url: '/img/icon/house.png', |
| | | id: item.id |
| | | }, |
| | | incident: this.houseSiteClick, |
| | | distanceDisplayCondition: { "near": 0, "far": 200000 } |
| | | }) |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'polygonLayer', |
| | | type: 'label', |
| | | params: { |
| | |
| | | alt: 1, |
| | | text: item.name |
| | | } |
| | | }) |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | // 修改下拉容器的left |
| | | |
| | | |
| | | setDomStyle () { |
| | | const bodyWidth = document.body.clientWidth |
| | | const domWidth = this.$refs.RegionSelect.offsetWidth |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-09-07 09:37:07 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-03-21 08:37:10 |
| | | * @LastEditTime: 2023-03-22 09:51:32 |
| | | * @FilePath: \srs-police-affairs\vue.config.js |
| | | * @Description: |
| | | * |
| | |
| | | proxy: { |
| | | "/api": { |
| | | // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址 |
| | | // target: "http://localhost:82", |
| | | target: "http://192.168.0.200:82", |
| | | target: "http://localhost:82", |
| | | // target: "http://192.168.0.200:82", |
| | | // target: "http://17.20.10.3:82", |
| | | // target: "http://10.141.11.11:8081/api", |
| | | // ws: true, //启用webSocket6566 |