| | |
| | | topicList: TopicList, |
| | | topicCheckedList: [], |
| | | isPanelVisible: false, |
| | | gcComp: SewersSearch, |
| | | gcComp: 'sewersSearch', |
| | | |
| | | gdVisible: true, |
| | | hbVisible: false, |
| | |
| | | isCollapse: false |
| | | } |
| | | }, |
| | | 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) |
| | | } |
| | | }) |
| | | }) |
| | | computed: { |
| | | topicMenu () { |
| | | console.log(this.$store.state.map.topic.topicCheckedList) |
| | | return this.$store.state.map.topic.topicCheckedList |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | toggleMonitorPanel () { |
| | | this.isCollapse = !this.isCollapse |
| | | console.log(11) |
| | | // const el = $('.btn-stretch') |
| | | // const el2 = $('.panel-fold-btn') |
| | | // const el = document.getElementsByClassName('.btn-stretch') |