From df6ddc66370dacf3201c53af4344e35021f1f1c6 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 08 四月 2025 11:10:22 +0800 Subject: [PATCH] 视频地址添加 --- src/views/directory/index.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/directory/index.vue b/src/views/directory/index.vue index 2303847..a3561dd 100644 --- a/src/views/directory/index.vue +++ b/src/views/directory/index.vue @@ -28,10 +28,7 @@ <!-- 鍒楄〃鏄剧ず --> <div class="page-main" v-if="activeTabs == 'list'"> <div v-for="(item, index) in universityList" :key="index"> - <div - class="table-title" - v-if="item.studentList && item.studentList.length > 0" - > + <div class="table-title" v-if="item.studentList && item.studentList.length > 0"> <div class="table-title-left"> <p class="table-title-name">{{ item.name }}</p> <p class="table-title-degree">{{ item.degree }}</p> @@ -41,10 +38,7 @@ <img :src="[item.isShow ? topIcon : bottomIcon]" alt="" /> </div> </div> - <table - cellpadding="100" - v-if="item.studentList && item.studentList.length > 0 && item.isShow" - > + <table cellpadding="100" v-if="item.studentList && item.studentList.length > 0 && item.isShow"> <tr class="table-heading"> <th>濮撳悕</th> <th>鎬у埆</th> @@ -286,7 +280,6 @@ mounted() { this.initChart(); - window.addEventListener("resize", this.handleResize); }, beforeDestroy() { @@ -299,10 +292,15 @@ changeTab(key) { this.activeTabs = key; console.log(this.activeTabs, "activeTabs"); + if (key == "chart") { + this.$nextTick(() => { + this.initChart(); + window.addEventListener("resize", this.handleResize); + }); + } }, initChart() { this.chart = echarts.init(this.$refs.chart); - const option = { tooltip: { trigger: "item", @@ -484,9 +482,11 @@ /* 绉婚櫎鏈�鍚庝竴琛岀殑涓嬭竟妗� */ } } + .charts-main { // background-color: #000; } + .table-title { display: flex; align-items: center; -- Gitblit v1.9.1