派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-15 43338db5959f96740b5bc0d81a0a13011f9584c8
src/components/panel/topicSearch/GasWasteSearch.vue
@@ -67,8 +67,8 @@
      <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>
@@ -104,7 +104,10 @@
  name: 'GasWasteSearch',
  data () {
    return {
      layer: window.map,
      L: window.L,
      gdVisible: true,
      instance: null,
      list: [],
      total: 0,
      inareaTypeOptions: [],
@@ -161,12 +164,13 @@
      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
@@ -175,7 +179,6 @@
      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],
@@ -188,7 +191,7 @@
          StoragePlaceId: val.StoragePlaceId
        }
        // 弹框标题
        const title = val.Name
        const title = val
        console.log(title)
        // 基本信息 tabs
        const result = await mapApi.getWasteGas(dataValue)
@@ -215,19 +218,20 @@
        // 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 {