| | |
| | | v-for="(citem, cindex) in item.list" |
| | | :style="{ background: citem.color }" |
| | | @mouseover="showDetail(index, cindex, 1)" |
| | | @mouseout="closeDetail(index, cindex, 0)" |
| | | :key="cindex" |
| | | > |
| | | <div class="detailDialog" v-if="citem.showDetail"> |
| | |
| | | |
| | | methods: { |
| | | gotoDetail(item) {}, |
| | | |
| | | closeDetail(index, cindex, type) { |
| | | // console.log(cindex, "cindex"); |
| | | // for (let i = 0; i < this.contentList.length; i++) { |
| | | // const item = this.contentList[i]; |
| | | // for (let j = 0; j < item.list.length; j++) { |
| | | // const citem = item.list[j]; |
| | | // this.$set(citem, "showDetail", false); |
| | | // } |
| | | // } |
| | | |
| | | }, |
| | | showDetail(index, cindex, type) { |
| | | for (let i = 0; i < this.contentList.length; i++) { |
| | | const item = this.contentList[i]; |
| | |
| | | this.$set(citem, "showDetail", false); |
| | | } |
| | | } |
| | | if (type == 1) { |
| | | |
| | | if (this.contentList[index].list[cindex].type) { |
| | | this.contentList[index].list[cindex].showDetail = true; |
| | | } else { |
| | | this.contentList[index].list[cindex].showDetail = false; |