| | |
| | | </div> |
| | | </div> |
| | | </el-scrollbar> |
| | | <!-- <reportPopup></reportPopup>--> |
| | | </div> |
| | | </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 WfsHelper from '@components/helpers/WfsHelper' |
| | | // import AjaxUtils from '@utils/AjaxUtils' |
| | | import reportPopup from './ReportPopup' |
| | | |
| | | export default { |
| | | name: 'EventQuery', |
| | | components: { |
| | | // reportPopup |
| | | }, |
| | | data () { |
| | | return { |
| | | reportIncident: false, |
| | | list: [], |
| | | activeNum: -1, |
| | | LayerEvent: {}, |
| | |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.wfsHelper = new WfsHelper() |
| | | // this.wfsHelper = new WfsHelper() |
| | | }, |
| | | methods: { |
| | | // 点击事件管理 |
| | | accordPopup () { |
| | | console.log('item') |
| | | window.$layer.open({ |
| | | content: { |
| | | content: ReportPopup, // 组件 |
| | | comp: reportPopup, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | // storagePlaceId: e.layer.options.totransferData.StoragePlaceId |
| | | // info: this.info |
| | | } |
| | | } |
| | | // title: 'title' // 标题 |
| | | }, |
| | | title: '事件分析' |
| | | }) |
| | | }, |
| | | // radio数据选择 |
| | |
| | | }, |
| | | // 数据搜索事件 |
| | | 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 |
| | | } |
| | | console.log('item') |
| | | }, |
| | | // 搜索的数据点击事件 |
| | | 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) |
| | | // 搜索的数据 de 点击事件 |
| | | handleLocation () { |
| | | console.log('val') |
| | | } |
| | | } |
| | | } |