派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-20 ee629193f59c538ce816c25d673f7c4320a74f17
src/components/panel/topicSearch/SewersSearch.vue
@@ -137,10 +137,10 @@
      console.log(tab, event)
      if (tab.label === '分析') {
        // 关闭弹窗
        window.layerFactory.clickSwitch = false
        window.mapManager.clickDialogSwitch = false
      } else {
        // 打开弹窗
        window.layerFactory.clickSwitch = true
        window.mapManager.clickDialogSwitch = true
      }
    },
    // 根据返回数据 确认展示图片
@@ -177,10 +177,14 @@
      this.wfsHelper.setTypeName([this.form.dataType.typeName])
      if (this.form.keyword) {
        this.wfsHelper.addLike('name', this.form.keyword)
        this.wfsHelper.setFilter(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