File was renamed from src/components/panel/topicSearch/SewersSelect/EnterpriseEmergency/ResourcesQuery.vue |
| | |
| | | <script> |
| | | import WfsHelper from '@components/helpers/WfsHelper' |
| | | import AjaxUtils from '@utils/AjaxUtils' |
| | | |
| | | // import { LayerEmergency } from '../../../../../conf/LayerEmergency' |
| | | import { LayerEmergencySource } from '../../../../../conf/layers/LayerEmergencySource' |
| | | import { LayerSurroundings } from '../../../../../conf/layers/LayerSurroundings' |
| | | import { LayerEmergencySource } from '../../../../conf/layers/LayerEmergencySource' |
| | | import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings' |
| | | import { pulseEffect } from '../../../../utils/utils' |
| | | |
| | | export default { |
| | | name: 'ResourcesQuery', |
| | |
| | | return { |
| | | form: { |
| | | eventName: '', |
| | | pipelineType: '应急资源', |
| | | pipelineType: LayerEmergencySource.name, |
| | | dataType: '', |
| | | keyword: '', |
| | | eventNameList: [ |
| | |
| | | } |
| | | }, |
| | | handleDataType (val) { |
| | | console.log(val) |
| | | // console.log(val) |
| | | this.list = [] |
| | | }, |
| | | async handleSearch () { |
| | |
| | | this.list = res.features |
| | | } |
| | | }, |
| | | // 查询定位功能 |
| | | handleLocation (val, index) { |
| | | this.activeNum = index |
| | | window.map.flyTo([val.properties.y, val.properties.x], 15) |
| | | window.map.setView([val.properties.y, val.properties.x], 16) |
| | | pulseEffect([val.properties.y, val.properties.x]) |
| | | } |
| | | } |
| | | } |