派生自 wuyushui/SewerAndRainNetwork

seatonwan9
2021-05-28 593f6ccd3aec8045a26b4b330f2b034df05bfd9f
src/components/panel/RightSearchPanel.vue
@@ -60,7 +60,7 @@
import SoilGroundWaterSearch from '@components/panel/topicSearch/SoilGroundWaterSearch.vue'
import PipeChangesSearch from '@components/panel/topicSearch/pipeChangesSearch.vue'
import PipeInformationSearch from '@components/panel/topicSearch/pipeInformationSearch.vue'
import ReportSearch from './topicSearch/ReportSearch'
import EnterpriseEmergencySearch from './topicSearch/EnterpriseEmergencySearch'
import bus from '@/eventBus'
@@ -72,7 +72,7 @@
    SolidWasteSearch,
    EnvRiskSearch,
    DischargeSearch,
    ReportSearch
    EnterpriseEmergencySearch
  },
  data () {
    return {
@@ -155,7 +155,7 @@
          this.gcComp = PipeInformationSearch
          break
        case '企业应急':
          this.gcComp = ReportSearch
          this.gcComp = EnterpriseEmergencySearch
          break
      }
    },
@@ -217,11 +217,9 @@
  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) {
          // console.log(obj)
          if (obj.type > 0) {
            item.isShow = true
          } else {
@@ -236,6 +234,7 @@
        }
      })
    })
  //  console.log(that.topicList)
  }
}
</script>
@@ -329,7 +328,7 @@
    color: @color-tool;
    position: absolute;
    top: 24px;
    right: 0.02rem;
    left: 0.02rem;
    border: none; //1px solid @color-tool;
    width: 0.2rem;
    height: 0.2rem;