shuishen
2023-03-22 9ce4fe05b2441472dd2ce3c35219f9d452ac9938
首页高度调整
2 files modified
48 ■■■■ changed files
src/views/home/index.vue 42 ●●●● patch | view | raw | blame | history
vue.config.js 6 ●●●● patch | view | raw | blame | history
src/views/home/index.vue
@@ -707,7 +707,7 @@
                    })
                } else {
                    this.housingOptions = res.data.data
                    this.initHousingLayer ()
                    this.initHousingLayer()
                    this.housingOptions.unshift({
                        name: '全部',
                        id: 1
@@ -915,7 +915,7 @@
                this.housingCheckValue = '请选择小区'
                this.getPoliceStationTree(3, item.id)
                this.areaChecked = item
            }
        },
@@ -1482,7 +1482,7 @@
            this.$EventBus.$emit('toPosition', {
                siteJd: centerPosition[0],
                siteWd: centerPosition[1],
                siteGd: 3000,
                siteGd: 10000,
                siteHeading: -3,
                sitePitch: -90
            })
@@ -1507,22 +1507,22 @@
            })
            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: {
@@ -1531,7 +1531,7 @@
                        alt: 1,
                        text: item.name
                    }
                  })
                })
            })
        },
@@ -1598,7 +1598,7 @@
        },
        // 修改下拉容器的left
        setDomStyle () {
            const bodyWidth = document.body.clientWidth
            const domWidth = this.$refs.RegionSelect.offsetWidth
vue.config.js
@@ -2,7 +2,7 @@
 * @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:
 *
@@ -157,8 +157,8 @@
        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