派生自 wuyushui/SewerAndRainNetwork

wangqi
2021-03-09 24f7846992bd354a5668979e268710d3154642e9
src/components/panel/RightSearchPanel.vue
@@ -44,7 +44,7 @@
      topicList: TopicList,
      topicCheckedList: [],
      isPanelVisible: false,
      gcComp: 'sewersSearch',
      gcComp: SewersSearch,
      gdVisible: true,
      hbVisible: false,
@@ -56,10 +56,21 @@
      isCollapse: false
    }
  },
  computed: {
    topicMenu () {
      console.log(this.$store.state.map.topic.topicCheckedList)
      return this.$store.state.map.topic.topicCheckedList
  computed: {},
  watch: {
    '$store.state.map.topic.topicCheckedList': function (newVal, oldVal) {
      console.log(oldVal)
      console.log(newVal)
      this.topicCheckedList = newVal
      this.topicMenu = []
      this.topicList.forEach((item) => {
        this.topicCheckedList.forEach((itm) => {
          if (item.name === itm) {
            // item.checked = tr
            this.topicMenu.push(item)
          }
        })
      })
    }
  },
  methods: {
@@ -131,7 +142,6 @@
  .el-card__body {
    padding: 7px;
  }
  .el-form-item__content {
    color: rgb(52, 224, 255);
  }
@@ -148,7 +158,7 @@
  .el-form-item__label {
    color: rgb(52, 224, 255);
    /*<!--color: @color;-->*/
    color: @color;
  }
  .el-input__inner::placeholder {