派生自 wuyushui/SewerAndRainNetwork

ChenZeping02609
2021-05-13 a6a919d953e47ac0ef9181bd29c4b8526fe1ea9e
src/components/panel/RightSearchPanel.vue
@@ -217,11 +217,15 @@
  mounted () {
    const that = this
    bus.$on('changeSearchBar', function (obj) {
      // console.log(obj.checked, obj.name)
      that.gcComp = ''
      that.topicList.forEach((item) => {
        if (item.name === obj.name) {
          item.isShow = obj.checked
          if (obj.type > 0) {
            item.isShow = true
          } else {
            item.isShow = false
          }
          // item.isShow = obj.checked
          if (item.isShow) {
            that.selected(item)
          } else {
@@ -230,6 +234,7 @@
        }
      })
    })
  //  console.log(that.topicList)
  }
}
</script>