派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-19 6d45b149ba4164dd87152180ff8e4c365484a5b3
src/components/panel/topicSearch/SewersSearch.vue
@@ -135,6 +135,13 @@
    // tab切换
    handleClick (tab, event) {
      console.log(tab, event)
      if (tab.label === '分析') {
        // 关闭弹窗
        window.layerFactory.clickSwitch = false
      } else {
        // 打开弹窗
        window.layerFactory.clickSwitch = true
      }
    },
    // 根据返回数据 确认展示图片
    getImgSrc () {
@@ -171,9 +178,12 @@
      if (this.form.keyword) {
        this.wfsHelper.addLike('name', this.form.keyword)
      }
      const filter = this.form.dataType.filter
      if (filter) {
        this.wfsHelper.setFilter(filter)
      }
      // const _this = this
      const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {})
      console.log(res)
      if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) {
        this.total = res.totalFeatures
        this.list = res.features