| | |
| | | import ReportLocationSection from './ReportLocationSection' |
| | | import ReportLocationSearch from './ReportLocationSearch' |
| | | |
| | | import iconUrl from '../../../../../public/assets/images/map/loc.png' |
| | | |
| | | export default { |
| | | name: 'ReportLocation', |
| | | components: { |
| | |
| | | console.log(e) |
| | | this.LongLatPos.longPos = e.latlng.lng |
| | | this.LongLatPos.latPos = e.latlng.lat |
| | | const as = [e.latlng.lat, e.latlng.lng] |
| | | // console.log(as) |
| | | const marker = window.L.marker(as, { |
| | | icon: window.L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [30, 30], |
| | | iconAnchor: [15, 15] |
| | | }) |
| | | }) |
| | | window.map.addLayer(marker) |
| | | }, |
| | | // 获得焦点 进行定位 |
| | | focusLocation () { |
| | |
| | | <script> |
| | | |
| | | import { reportLocationSearch } from '../../../../api/request' |
| | | // import { pulseEffect } from '../../../../utils/utils' |
| | | import { pulseEffect } from '../../../../utils/utils' |
| | | export default { |
| | | name: 'ReportLocationSearch', |
| | | data () { |
| | |
| | | // console.log(res) |
| | | const as = res.pois[0].lonlat.trim().split(' ') |
| | | window.map.setView([as[1], as[0]], 17) |
| | | pulseEffect([as[1], as[0]]) |
| | | // for (let i = 0; i < res.pois.length; i++) { |
| | | // const as = res.pois[i].lonlat.trim().split(' ') |
| | | // window.map.flyTo([as[0], as[1]], 16) |
| | |
| | | this.wfsHelper = new WfsHelper() |
| | | // 附属设施查询 |
| | | this.tableDataAffFac = [] |
| | | const AffFacSearch = val.properties.mediumtype |
| | | const AffFacSearch = val.properties.pipecode |
| | | console.log(AffFacSearch) |
| | | this.wfsHelper.clearFilter() |
| | | this.wfsHelper.setTypeName(['sewer:view_pipeline']) |
| | | this.wfsHelper.addLike('type', AffFacSearch) |
| | | this.wfsHelper.addLike('code', AffFacSearch) |
| | | // this.wfsHelper.addEquals('type', '\'' + AffFacSearch + '\'') |
| | | const resAffFac = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {}) |
| | | console.log(resAffFac) |