| | |
| | | </el-form> |
| | | </div> |
| | | <el-scrollbar style="height:264px"> |
| | | <div class="environmental-risk-list" ><!-- v-for="(item,index) in list" :key="index" --> |
| | | <i class="state"></i> |
| | | <div class="environmental-risk-list" v-for="(item,index) in list" :key="index" @click="handleLocation(item)"><!-- --> |
| | | <img src="../../../../public/assets/images/map/exhaust/fq_green2.png" alt="" class="state"/> |
| | | <div> |
| | | <h3>###炼化部</h3> |
| | | <p>所属部门:<span>炼化部</span></p> |
| | | <h3>{{ item.Name }}</h3> |
| | | <p>所属部门:<span>{{ item.porltName }}</span></p> |
| | | <p>风险级别:<span>三级</span></p> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import mapApi from '@/api/mapApi' |
| | | import WasteWaterIndex from '../../BaseNav/WasteWater/WasteWaterIndex' |
| | | import { pulseEffect, setPanTo } from '../../../utils/utils' |
| | | |
| | | // import WfsHelper from '@components/helpers/WfsHelper' |
| | | export default { |
| | | name: 'GasWasteSearch', |
| | | props: ['title'], |
| | | data () { |
| | | return { |
| | | gdVisible: true, |
| | | list: [], |
| | | // labelList: PipelineTypeOptions[0].labelList, |
| | | total: 0, |
| | | inareaTypeOptions: [], |
| | | enterpriseTypeOptions: [], |
| | |
| | | }, |
| | | // pageSize: 10, |
| | | // current: 1, |
| | | isWaybillHover: true, |
| | | isRouteHover: false, |
| | | levelOfRisk: [ |
| | | { name: '全部', value: '1' }, |
| | | { name: '正常', value: '2' }, |
| | |
| | | ] |
| | | } |
| | | }, |
| | | props: ['title'], |
| | | methods: { |
| | | // 区域筛选 |
| | | areaType (val) { |
| | |
| | | pipelineType: this.form.pipelineType, |
| | | dataType: this.form.dataType |
| | | } |
| | | console.log(param) |
| | | // var wfsHelper = new WfsHelper() |
| | | // wfsHelper.addTypeName(this.form.query.layerName) |
| | | // wfsHelper.addLike(this.form.query.key, this.form.keyword) |
| | | // const _this = this |
| | | // const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}) |
| | | const res = await mapApi.getWasteGas() |
| | | console.log(res) |
| | | if (res.data instanceof Object && Object.prototype.hasOwnProperty.call(res.data, 'features')) { |
| | | this.list = res.data.features |
| | | } |
| | | // console.log(param) |
| | | const res = await mapApi.getWasteGas(param) |
| | | // console.log(res) |
| | | this.list = res.Result.DataInfo |
| | | console.log(this.list) |
| | | }, |
| | | handleLocation (val) { |
| | | // 弹窗展示 |
| | | async handleLocation (val) { |
| | | console.log(val) |
| | | const bound = this.L.geoJSON([val], {}).getBounds() |
| | | var layer = window.serviceLayerHelper.getByLayerId(val.id) |
| | | layer && layer.openPopup() |
| | | this.$store.state.map.map.flyToBounds(bound) |
| | | const pos = [val.Latitude, val.Longitude] |
| | | window.map.setView(pos, 15) |
| | | window.$layer.open({ |
| | | content: { |
| | | content: WasteWaterIndex, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | storagePlaceId: val |
| | | } |
| | | }, |
| | | title: '天津石化 ' + val.Name |
| | | }) |
| | | pulseEffect([val.Latitude, val.Longitude]) |
| | | setPanTo(pos, 250) |
| | | } |
| | | } |
| | | } |