| | |
| | | <el-scrollbar style="height:286.22px"> |
| | | <div class="environmental-risk-list" v-for="(item,index) in list" :key="index" |
| | | :class="activeNum===index?'hover':''" @click="handleLocation(item,index)"> |
| | | <img class="state" :src="getImgSrc()" style="background: none"/> |
| | | <img class="state" :src="getImgSrc(item.properties.type)" style="background: none"/> |
| | | <h3>资源类型:{{item.properties.adminzonename}}</h3> |
| | | <h5>资源名称:{{item.properties.type}}</h5> |
| | | <p>负责人:<span>{{item.properties.resperson}}</span></p> |
| | |
| | | this.wfsHelper = new WfsHelper() |
| | | }, |
| | | methods: { |
| | | getImgSrc () { |
| | | const icon = this.form.dataType.icon |
| | | // console.log(this.form.dataType) |
| | | return icon ? 'assets/images/map/' + icon : '' |
| | | getImgSrc (type) { |
| | | // const icon = this.form.dataType.icon |
| | | return 'assets/images/map/sewers/' + type + '.png' |
| | | }, |
| | | handlePipelineType (val) { |
| | | // console.log(val) |
| | |
| | | this.list = [] |
| | | this.wfsHelper.clearFilter() |
| | | // todo 现在企业应急还没区分开类型,后面改 |
| | | // console.log(this.form.dataType) |
| | | // this.wfsHelper.setTypeName([this.form.dataType.typeName]) |
| | | this.wfsHelper.setTypeName(['sewer:emergency']) |
| | | if (this.form.dataType) { |