| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-09-29 17:01:32 |
| | | * @LastEditTime: 2022-10-24 09:52:38 |
| | | * @FilePath: \srs-police-affairs\src\views\home\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="region-select"> |
| | | <div ref="RegionSelect" style="left: 0;" class="region-select"> |
| | | <map-select |
| | | class="map-select" |
| | | @selectCheck="policeStationSelect" |
| | |
| | | peopletype: 0, |
| | | } |
| | | }, |
| | | |
| | | created () { |
| | | this.carList = carList |
| | | this.phoneList = phoneList |
| | |
| | | this.policeStationOptions = policeStationOptions |
| | | this.housingDate = housingDate |
| | | }, |
| | | |
| | | mounted () { |
| | | this.initEquipmentEcharts() |
| | | this.initEventChangeEcharts() |
| | |
| | | // }) |
| | | |
| | | this.clickChart() |
| | | |
| | | this.setDomLeft() |
| | | window.addEventListener('resize', this.setDomLeft) |
| | | }, |
| | | updated () { |
| | | |
| | |
| | | timeTabClick (type) { |
| | | this.timetype = type |
| | | }, |
| | | |
| | | peopleTabClick (type) { |
| | | this.peopletype = type |
| | | } |
| | | }, |
| | | |
| | | // 修改下拉容器的left |
| | | setDomLeft () { |
| | | const bodyWidth = document.body.clientWidth |
| | | const domWidth = this.$refs.RegionSelect.offsetWidth |
| | | this.$refs.RegionSelect.style.left = (bodyWidth - domWidth) / 2 + 'px' |
| | | } |
| | | }, |
| | | watch: {}, |
| | | |
| | |
| | | cylinderLayer.remove() |
| | | cylinderLayer = null |
| | | |
| | | window.removeEventListener('resize', this.setDomLeft) |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | display: flex; |
| | | position: absolute; |
| | | top: 20px; |
| | | left: 420px; |
| | | width: 640px; |
| | | height: 36px; |
| | | |