| | |
| | | </div> |
| | | <el-scrollbar style="height:380.44px;"> |
| | | <div class="environmental-risk-list" v-for="(item,index) in list" :key="index"> |
| | | <img class="state" :src="getImgSrc()" /> |
| | | <img class="state" :src="getImgSrc()" style="background: none"/> |
| | | <div> |
| | | <h3 @click="handleLocation(item)">{{ item.properties.pipename }}</h3> |
| | | <p>所属企业:<span>{{ item.properties.orgcode }}</span> |
| | |
| | | async handleSearch () { |
| | | var wfsHelper = new WfsHelper() |
| | | // todo 现在管网还没区分开类型,后面改 |
| | | wfsHelper.addTypeName(this.form.dataType.name) |
| | | wfsHelper.addTypeName(this.form.dataType.sname) |
| | | wfsHelper.addLike('name', this.form.keyword) |
| | | // const _this = this |
| | | const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}) |
| | |
| | | } |
| | | }, |
| | | handleLocation (val) { |
| | | const bound = this.L.geoJSON([val], {}).getBounds() |
| | | window.map.flyToBounds(bound) |
| | | window.layerFactory.flyByLayerId(this.form.dataType.code, val.id) |
| | | window.layerFactory.flyByFeature(val, this.form.dataType.code) |
| | | // layer && layer.openPopup() |
| | | } |
| | | } |