From db603d513b9466cb6768cb702f18cc11df23171b Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期二, 08 四月 2025 10:03:12 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase --- src/views/directory/index.vue | 62 +++++++++++++----------------- 1 files changed, 27 insertions(+), 35 deletions(-) diff --git a/src/views/directory/index.vue b/src/views/directory/index.vue index 3c548c3..2303847 100644 --- a/src/views/directory/index.vue +++ b/src/views/directory/index.vue @@ -8,14 +8,14 @@ @click="changeTab('chart')" :class="[activeTabs == 'chart' ? 'active-tab' : '']" > - <img src="../../assets/images/directory/chartIcon.png" alt="" /> + <img :src="[activeTabs == 'chart' ? chartIcon : noChartIcon]" alt="" /> <span>鍥捐〃鏄剧ず</span> </p> <p @click="changeTab('list')" :class="[activeTabs == 'list' ? 'active-tab' : '']" > - <img src="../../assets/images/directory/listIcon.png" alt="" /> + <img :src="[activeTabs == 'list' ? listIcon : noListIcon]" alt="" /> <span>鍒楄〃鏄剧ず</span> </p> </div> @@ -38,7 +38,7 @@ <p class="table-title-number">{{ item.studentList.length }}浜�</p> </div> <div class="table-title-right" @click="item.isShow = !item.isShow"> - <img src="../../assets/images/directory/topIcon.png" alt="" /> + <img :src="[item.isShow ? topIcon : bottomIcon]" alt="" /> </div> </div> <table @@ -77,6 +77,12 @@ export default { data() { return { + chartIcon: require("@/assets/images/directory/chartIcon.png"), + noChartIcon: require("@/assets/images/directory/noChartIcon.png"), + listIcon: require("@/assets/images/directory/listIcon.png"), + noListIcon: require("@/assets/images/directory/noListIcon.png"), + topIcon: require("@/assets/images/directory/topIcon.png"), + bottomIcon: require("@/assets/images/directory/bottomIcon.png"), activeTabs: "chart", universityList: [ { @@ -252,7 +258,7 @@ name: "Root", children: [ { - name: "Node 1", + name: "鐜嬬帀鏉�", children: [ { name: "Leaf 1-1" }, { name: "Leaf 1-2" }, @@ -306,40 +312,26 @@ return ` <div style=" padding: 10px; - background: #fff; + background: #FDF8F0; border-radius: 5px; - box-shadow: 0 2px 10px rgba(0,0,0,0.1); max-width: 300px; + width: 360px; + text-align: center; "> - <div style=" - border-bottom: 1px solid #eee; - padding-bottom: 5px; - margin-bottom: 5px; - "> - <span style=" - font-size: 16px; - color: #333; - font-weight: bold; - ">${data.name}</span> - ${ - data.customInfo - ? `<span style=" - background: #ffeb3b; - padding: 2px 5px; - border-radius: 3px; - margin-left: 8px; - font-size: 12px; - ">${data.customInfo}</span>` - : "" - } - </div> - <div style="margin-top: 8px;"> - <div>鑺傜偣鍊�: <span style="color: #4f8ff7;">${ - data.value || 0 - }</span></div> - <div>鎻忚堪: ${data.description || "鏆傛棤鎻忚堪"}</div> - - </div> + <div style="width: 80px;height: 80px;position: relative; margin: 0 auto; margin-bottom: 10px;background: #D8D8D8;"> + <img class="autoImg" src="${require("@/assets/images/directory/touxiang.png")}" alt=""> + </div> + <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;">${ + data.name + }</div> + <div> <span> 鐢� </span> <span> 纭曞+ </span> <span> 鍖椾含涓尰鑽ぇ瀛� </span></div> + <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;text-align: left;margin-top: 10px;"> + <p style="margin-bottom: 5px;">瀛︿範鏃堕棿锛�1985.09 -1988.07</p> + <p style="margin-bottom: 5px;">鐜板伐浣滃崟浣嶏細鍖椾含涓尰鑽ぇ瀛︿笢鏂瑰尰闄�</p> + <p style="margin-bottom: 5px;">鑱屽姟锛氬師闄㈤暱</p> + <p style="margin-bottom: 5px;">鑱岀О锛氫富浠诲尰甯堛�佹暀鎺�</p> + </div> + </div> `; }, -- Gitblit v1.9.1