| | |
| | | @click="toggle()"> |
| | | <div id="menu-special-context" class="menu-special-context"> |
| | | <el-checkbox-button v-show="isShow" class="menu-special-item" v-model="topicSelectAll.check" :checked="topicSelectAll.checked" @change="checkedSpecialChangeAll(topicSelectAll)"> |
| | | <div style="height: 1rem;width: 1rem;display: inline-flex;"> <img :src="topicSelectAll.icon" ></div> |
| | | <div style="height: 16px;width: 17px;display: inline-flex;"><img style="width : 100%" :src="topicSelectAll.icon" ></div> |
| | | {{ topicSelectAll.name }}</el-checkbox-button> |
| | | |
| | | <el-checkbox-group :indeterminate="isIndeterminate" v-show="isShow" v-model="topicCheckedList" size="medium" @change="checkedGroupSpecialChange"> |
| | | <el-checkbox-button class="menu-special-item" v-for="item in topicList" :label="item.name" :key="item.id" :checked="item.checked" @change="checkedSpecialChange(item)"> |
| | | <div style="height: 1rem;width: 1rem;display: inline-flex;"> <img :src="item.icon" ></div> |
| | | <el-checkbox-button class="menu-special-item" v-for="item in topicList" :label="item" :key="item.id" :checked="item.checked" @change="checkedSpecialChange(item)"> |
| | | <div style="height: 16px;width: 17px;display: inline-flex;"><img style="width : 100%" :src="item.icon" ></div> |
| | | {{item.name}}</el-checkbox-button> |
| | | </el-checkbox-group> |
| | | <!-- <ul class="menu-special-item" v-for="item in SpecialList" :key="item.id">--> |
| | | <!-- <li style="display: inline-flex;vertical-align: middle">--> |
| | | <!-- <div style="height: 1rem;width: 1rem;"> <img :src="item.icon" ></div>--> |
| | | |
| | | <!-- <a>{{ item.name }}</a>--> |
| | | <!-- </li>--> |
| | | <!-- </ul>--> |
| | |
| | | this.$store.commit('setTopic', this.topicCheckedList) |
| | | }, |
| | | checkedSpecialChangeAll (val) { |
| | | this.topicCheckedList = val.check ? this.topicList.map(item => item.name) : [] |
| | | this.topicCheckedList = val.check ? this.topicList.map(item => item) : [] |
| | | this.isIndeterminate = false |
| | | this.$store.commit('setTopic', this.topicCheckedList) |
| | | }, |
| | |
| | | </script> |
| | | |
| | | <style lang="less" > |
| | | @import '@assets/css/map/_map-variable'; |
| | | .menu-special { |
| | | position: absolute; |
| | | left: 1rem; |