From cb9cd5f77b5d6ace463f46ab2f0e8aafa82f9dcb Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 15 四月 2025 09:44:54 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase --- src/views/chronology/index.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/views/chronology/index.vue b/src/views/chronology/index.vue index 1161cbc..b2f7689 100644 --- a/src/views/chronology/index.vue +++ b/src/views/chronology/index.vue @@ -44,6 +44,7 @@ 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"> @@ -71,7 +72,6 @@ </template> <script> -import echarts from "@/assets/js/echarts.min.js"; import floatingWindow from "./floatingWindow.vue"; export default { components: { @@ -817,6 +817,18 @@ 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]; @@ -825,7 +837,8 @@ 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; @@ -904,14 +917,14 @@ } } .page-header { - height: 102px; + height: 9.4%; width: 100%; text-align: left; margin-bottom: 8px; border-bottom: 2px solid #937950; p { - padding: 35px 0 34px 0; + padding: 1.6% 0 1.55% 0; font-family: Alimama DongFangDaKai; font-size: 30px; text-indent: 1em; -- Gitblit v1.9.1