| | |
| | | async handleSearch () { |
| | | this.list = [] |
| | | this.wfsHelper.clearFilter() |
| | | this.wfsHelper.setTypeName(['sewer:emergency']) |
| | | this.wfsHelper.setTypeName(['sewer:view_emergency']) |
| | | this.wfsHelper.setMaxFeatures(100) |
| | | // form表单选择搜索 |
| | | if (this.form.dataType) { |
| | |
| | | :class="activeNum===index?'hover':''"> |
| | | <img class="state" :src="getImgSrc()" style="background: none"/> |
| | | <div> |
| | | <h3 @click="handleLocation(item,index)">{{ item.properties.name || item.properties.code }}</h3> |
| | | <h3 @click="handleLocation(item,index)">{{ item.properties.name || item.properties.code |
| | | }}</h3> |
| | | <p>所属企业:<span>{{ item.properties.orgname }}</span> |
| | | <p>设施类型:<span>{{ item.properties.type }}</span> |
| | | <el-button v-if="fuShuSheShiShow" class="rt btn00fff6" size="mini" |
| | |
| | | // tab切换 |
| | | handleClick (tab, event) { |
| | | console.log(tab, event) |
| | | if (tab.label === '分析') { |
| | | // 关闭弹窗 |
| | | window.mapManager.clickDialogSwitch = false |
| | | } else { |
| | | // 打开弹窗 |
| | | window.mapManager.clickDialogSwitch = true |
| | | } |
| | | }, |
| | | // 根据返回数据 确认展示图片 |
| | | getImgSrc () { |
| | |
| | | methods: { |
| | | // 地图上点击 |
| | | selectPipeLine () { |
| | | // window.mapManager.clickDialogSwitch = false |
| | | window.map.on('click', this.selectClick) |
| | | window.mapManager.clickDialogSwitch = false |
| | | // window.mapManager.clickDialogSwitch = true |
| | | }, |
| | | // 地图上点击回调 |
| | | selectClick (e) { |
| | | // console.log(e) |
| | | window.map.off('click', this.selectClick) |
| | | window.mapManager.clickDialogSwitch = true |
| | | const point = [e.latlng.lng, e.latlng.lat] |
| | | this.getPipeLine(point) |
| | | }, |
| | |
| | | }, |
| | | // 连通性 ===> 地图点击起始管段e |
| | | linkClickStart (e) { |
| | | // console.log('地图点击起始管段') |
| | | // window.mapManager.clickDialogSwitch = false |
| | | this.linkType = 1 |
| | | this.selectPipeLine() |
| | | }, |