From c4b8209d92daa8c6e8ec20bdd56fecf4a95d0990 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 05 六月 2024 16:41:33 +0800 Subject: [PATCH] 1 --- src/pages/character/detail.vue | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/pages/character/detail.vue b/src/pages/character/detail.vue index 70367fd..10fcf40 100644 --- a/src/pages/character/detail.vue +++ b/src/pages/character/detail.vue @@ -320,6 +320,7 @@ </div> <ul class="font-family" style="font-size: 0.13rem; line-height: 2"> <li + style="cursor: pointer" v-for="(item, index) in personResearchList" :key="index" @click="toLink(item)" @@ -339,7 +340,15 @@ </div> <!-- 杩斿洖椤堕儴 --> - <el-col style="position: absolute; bottom: 1rem; left: 1.2rem"> + <el-col + style=" + position: absolute; + bottom: 1rem; + left: 1.2rem; + width: 0.6rem; + height: 0.6rem; + " + > <el-button style="font-size: 0.3rem" icon="el-icon-top" @@ -401,7 +410,7 @@ getPersonRelationAtSchool, getSpaceTime } from "@/api/index.js"; -import { getImg } from "@/static/tool.js"; +import { getImg, getFile } from "@/static/tool.js"; import L from "leaflet"; import "leaflet.chinatmsproviders"; @@ -539,7 +548,13 @@ }); }, toLink(item) { - window.open(item.url); + console.log(item); + if (item.url) { + window.open(item.url); + } + if (item.filePath) { + window.open(getFile(item.filePath)); + } }, getData() { // 鍩烘湰淇℃伅 @@ -560,6 +575,7 @@ : fieldItem.content1; } } + console.log(obj); this.detailInfo = obj; // 鍏崇郴鍥捐氨 this.getMappingData(this.detailInfo.NAME); @@ -773,13 +789,13 @@ (node) => node.id === item.identifier2 && node.name === item.name2 ); // 璇佹槑涓嶅瓨鍦� - if (exists1 !== true) { + if (item.name1 && exists1 !== true) { this.nodes.push({ name: item.name1, id: item.identifier1 }); } - if (exists2 !== true) { + if (item.name2 && exists2 !== true) { this.nodes.push({ name: item.name2, id: item.identifier2 @@ -1295,10 +1311,6 @@ ::v-deep .el-dialog__body { padding: 0; -} - -::v-deep .el-dialog__wrapper { - z-index: 999999999999999 !important; } .ProfileNav { -- Gitblit v1.9.1