| | |
| | | :class="activeNum===index?'hover':''" @click="handleLocation(item,index)"> |
| | | <img class="state" :src="getImgSrc(item.properties.type)" style="background: none"/> |
| | | <h3>{{changeAmount}}类型:{{item.properties.type}}</h3> |
| | | <h5>{{changeAmount}}名称:{{item.properties.name}}</h5> |
| | | <h5>{{changeAmount}}名称:{{item.properties.companyname}}</h5> |
| | | <p>负责人:<span>{{item.properties.resperson}}</span></p> |
| | | <p>电话:<span>{{item.properties.telephone}}</span></p> |
| | | </div> |
| | |
| | | import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings' |
| | | // 引入的方法 |
| | | import { pulseEffect } from '../../../../utils/utils' |
| | | // import { locate } from '../../../helpers/LocateHelper' |
| | | // import { fitBounds, highlight, locate, openPropsPopup } from '../../../helpers/LocateHelper' |
| | | import { loadPointWfs, pointZoom } from '../../../helpers/LocateHelper' |
| | | |
| | | export default { |
| | | name: 'ResourcesQuery', |
| | |
| | | this.wfsHelper.addLike('name', this.form.keyword) |
| | | } |
| | | const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {}) |
| | | // console.log(res) |
| | | console.log(res) |
| | | if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { |
| | | this.list = res.features |
| | | } |
| | |
| | | this.activeNum = index |
| | | const positionArea = [val.properties.y, val.properties.x] |
| | | window.map.setView(positionArea, 17) |
| | | pointZoom(positionArea, this.form.dataType.icon) |
| | | // 图片 |
| | | loadPointWfs(positionArea) |
| | | // 弹窗 |
| | | pulseEffect(positionArea) |
| | | // const config = this.form.dataType |
| | | // locate(val, config) |
| | | // fitBounds(val, this.form.dataType.code) |
| | | // highlight(val, this.form.dataType) |
| | | } |
| | | } |
| | | } |