| | |
| | | <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> |
| | |
| | | name: 'GasWasteSearch', |
| | | data () { |
| | | return { |
| | | layer: window.map, |
| | | L: window.L, |
| | | gdVisible: true, |
| | | instance: null, |
| | | list: [], |
| | | total: 0, |
| | | inareaTypeOptions: [], |
| | |
| | | const res = await mapApi.getWasteGas(param) |
| | | // console.log(res) |
| | | this.list = res.Result.DataInfo |
| | | console.log(this.list) |
| | | }, |
| | | // 弹窗展示 |
| | | async handleLocation (val) { |
| | | console.log(val) |
| | | const pos = [val.Latitude, val.Longitude] |
| | | window.map.flyTo(pos, 13) |
| | | window.map.flyTo(pos, 15) |
| | | const positionX = val.Latitude |
| | | const positionY = val.Longitude |
| | | |
| | |
| | | var iconUrl = this.differentTypes(ContrLevel) |
| | | |
| | | const marker = this.L.marker([positionX, positionY], { |
| | | // totransferData: this.searchDataDisplay[i], |
| | | icon: this.L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [30, 30], |
| | |
| | | StoragePlaceId: val.StoragePlaceId |
| | | } |
| | | // 弹框标题 |
| | | const title = val.Name |
| | | const title = val |
| | | console.log(title) |
| | | // 基本信息 tabs |
| | | const result = await mapApi.getWasteGas(dataValue) |
| | |
| | | // document.body.removeChild(instance.$el) |
| | | // 通过方法 向绑定弹框传递数据 |
| | | this.instance.setGasData(title, result.Result.DataInfo, Mondata.Result.DataInfo, ManualData.Result.DataInfo, 'feiqi') |
| | | // console.log(title, result.Result.DataInfo, Mondata.Result.DataInfo, ManualData.Result.DataInfo) |
| | | // this.setPanTo(pos, 250) |
| | | }, 1000) |
| | | }, 100) |
| | | console.log(t1) |
| | | }, |
| | | // 不同类型图片加载 |
| | | differentTypes (ContrLevel) { |
| | | var effectOfChange |
| | | // effectOfChange |
| | | /* |
| | | if (ContrLevel === 1) { |
| | | effectOfChange = ImgBlue |
| | | } else if (ContrLevel === 2) { |
| | | */ |
| | | effectOfChange = ImagGreen |
| | | const effectOfChange = ImagGreen |
| | | // } else if (ContrLevel === 3) { |
| | | // effectOfChange = ImagBright |
| | | // } else { |