派生自 wuyushui/SewerAndRainNetwork

ChenZeping02609
2021-05-13 eec84c09617c519754324dbd4e98b558574d0dac
src/components/panel/topicSearch/SewersSelect/EnterpriseEmergency/EventQuery.vue
@@ -43,7 +43,7 @@
                <!--                <i class="state"></i>-->
                <img class="state" :src="getImgSrc()" style="background: none"/>
                <div>
                    <h3 @click="handleLocation()">事件名称:XXX事件</h3>
                    <h3 @click="handleLocation(item,index)">事件名称:XXX事件</h3>
                    <h5>
                        事件事件:2021年3月21日
                        <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">删除</el-button>
@@ -52,8 +52,7 @@
                        事件状态:<span>审批阶段</span>
                    </p>
                    <p>事件类型:<span>{{ item.properties.pipecode }}</span>
                        <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;"
                                   @click="btnAffiliatedFacilities()">事件管理
                        <el-button class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;">事件管理
                        </el-button>
                    </p>
                </div>
@@ -132,16 +131,16 @@
        this.wfsHelper.addLike('name', this.form.keyword)
      }
      const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {})
      this.list = res.features
      console.log(res)
      if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) {
        this.list = res.features
      }
    },
    handleLocation (val, index) {
      console.log(val)
      this.activeNum = index
      // layer && layer.openPopup()
      window.layerFactory.flyByFeature(val, this.form.dataType.code)
      // window.layerFactory.flyByFeature(val, this.form.dataType.code)
      window.map.flyTo([val.properties.y, val.properties.x], 15)
    },
    btnAffiliatedFacilities () {
      console.log('item')