| | |
| | | </template> |
| | | |
| | | <script> |
| | | // import { LayerEntEmer } from '../../../../../conf/layers/LayerEntEmer' |
| | | // import { LayerEvent } from '../../../../../conf/layers/LayerEvent' |
| | | // import { LayerResources } from '../../../../../conf/layers/LayerResources' |
| | | |
| | | import ReportPopup from './ReportPopup' |
| | | |
| | | import WfsHelper from '@components/helpers/WfsHelper' |
| | | import AjaxUtils from '@utils/AjaxUtils' |
| | | // import AjaxUtils from '@utils/AjaxUtils' |
| | | |
| | | export default { |
| | | name: 'EventQuery', |
| | |
| | | // ç¹å»äºä»¶ç®¡ç |
| | | accordPopup () { |
| | | console.log('item') |
| | | window.$layer.open({ |
| | | content: { |
| | | comp: ReportPopup, // ç»ä»¶ |
| | | parent: this, // ç¶ç»ä»¶ |
| | | data: { // ä¼ éçåæ° |
| | | // storagePlaceId: e.layer.options.totransferData.StoragePlaceId |
| | | } |
| | | } |
| | | // title: 'title' // æ é¢ |
| | | }) |
| | | }, |
| | | // radioæ°æ®éæ© |
| | | redioChange (item) { |
| | |
| | | }, |
| | | // æ°æ®æç´¢äºä»¶ |
| | | async handleSearch () { |
| | | this.list = [] |
| | | this.wfsHelper.clearFilter() |
| | | // todo ç°å¨ä¼ä¸åºæ¥è¿æ²¡åºåå¼ç±»åï¼å颿¹ |
| | | // this.wfsHelper.setTypeName([this.form.dataType.typeName]) |
| | | this.wfsHelper.setTypeName(['sewer:emergency']) |
| | | if (this.form.keyword) { |
| | | this.wfsHelper.addLike('name', this.form.keyword) |
| | | } |
| | | const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {}) |
| | | if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { |
| | | this.list = res.features |
| | | } |
| | | |
| | | }, |
| | | // æç´¢çæ°æ®ç¹å»äºä»¶ |
| | | handleLocation (val, index) { |
| | | console.log(val) |
| | | this.activeNum = index |
| | | // layer && layer.openPopup() |
| | | // window.layerFactory.flyByFeature(val, this.form.dataType.code) |
| | | window.map.flyTo([val.properties.y, val.properties.x], 15) |
| | | handleLocation () { |
| | | console.log('val') |
| | | } |
| | | } |
| | | } |
| | |
| | | import AjaxUtils from '@utils/AjaxUtils' |
| | | import { LayerEmergencySource } from '../../../../conf/layers/LayerEmergencySource' |
| | | import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings' |
| | | import { pulseEffect } from '../../../../utils/utils' |
| | | import { openPopup } from '../../../helpers/LocateHelper' |
| | | // import { fitBounds, highlight } from '../../../helpers/LocateHelper' |
| | | // import { pulseEffect } from '../../../../utils/utils' |
| | | // import { locate, openPropsPopup } from '../../../helpers/LocateHelper' |
| | | import { locate } from '../../../helpers/LocateHelper' |
| | | // import { fitBounds, highlight, locate } from '../../../helpers/LocateHelper' |
| | | |
| | | export default { |
| | | name: 'ResourcesQuery', |
| | |
| | | }, |
| | | // æ¥è¯¢å®ä½åè½ |
| | | handleLocation (val, index) { |
| | | // console.log(val) |
| | | console.log(val) |
| | | this.activeNum = index |
| | | const positionArea = [val.properties.y, val.properties.x] |
| | | window.map.setView(positionArea, 17) |
| | | pulseEffect(positionArea) |
| | | openPopup(positionArea, val.id) |
| | | const config = this.form.dataType |
| | | locate(val, config) |
| | | // const positionArea = [val.properties.y, val.properties.x] |
| | | // window.map.setView(positionArea, 17) |
| | | // pulseEffect(positionArea) |
| | | // fitBounds(val, this.form.dataType.code) |
| | | // highlight(val, this.form.dataType) |
| | | } |
| | |
| | | <div> |
| | | <h3 @click="handleLocation(item,index)">{{ item.properties.pipename }}</h3> |
| | | <p>æå±ä¼ä¸ï¼<span>{{ item.properties.orgname }}</span> |
| | | <p>设æ½ç±»åï¼<span>{{ item.properties.linenumtype }}</span> |
| | | <p>设æ½ç±»åï¼<span>{{ item.properties.linenumtype }}{{ item.properties.fourtype }}{{ item.properties.teetype }}</span> |
| | | <el-button v-if="fuShuSheShiShow" class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;" |
| | | @click="btnAffiliatedFacilities(item,index)" > |
| | | éå±è®¾æ½ |
| | |
| | | sname: 'å
¬å¸', // 表å |
| | | checked: true, // é»è®¤éä¸ç¶æ |
| | | type: 0, |
| | | icon: 'sewers/å
¬å¸.png', |
| | | icon: 'sewers/.png', |
| | | legendImage: '../.././assets/images/map/company_refining.png' |
| | | }, |
| | | { |
| | |
| | | minZoom: 16, |
| | | type: SERVICE_TYPE.WMS, |
| | | typeName: 'ewer:overflowweir', |
| | | icon: 'sewers/溢æµå °.png', |
| | | icon: 'sewers/.png', |
| | | checked: false |
| | | }, |
| | | { |