From 24f7846992bd354a5668979e268710d3154642e9 Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期二, 09 三月 2021 14:57:29 +0800 Subject: [PATCH] 文件引入未使用 --- src/components/panel/RightSearchPanel.vue | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/components/panel/RightSearchPanel.vue b/src/components/panel/RightSearchPanel.vue index 587073a..650c599 100644 --- a/src/components/panel/RightSearchPanel.vue +++ b/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 { -- Gitblit v1.8.0