| | |
| | | <span>相关附表/图像</span> |
| | | </div> |
| | | <view> |
| | | <div class="flex"> |
| | | <div style="overflow: auto"> |
| | | <el-image |
| | | v-for="item in imageList" |
| | | :key="item" |
| | | style="width: 2.05rem; height: 2.4rem" |
| | | style=" |
| | | width: 2.05rem; |
| | | height: 2.4rem; |
| | | margin-right: 0.2rem; |
| | | margin-bottom: 0.1rem; |
| | | " |
| | | :src="item" |
| | | fit="fill" |
| | | ></el-image> |
| | |
| | | > |
| | | <span>现代研究</span> |
| | | </div> |
| | | <ul class="font-family" style="font-size: 0.13rem; line-height: 2"> |
| | | <ul class="fileul" style="font-size: 0.13rem; line-height: 2"> |
| | | <li |
| | | style="cursor: pointer" |
| | | v-for="(item, index) in personResearchList" |
| | |
| | | import { |
| | | getFuzzySearch, |
| | | getPersonInfo, |
| | | getRelationTypeTreeList, |
| | | getWebBasic, |
| | | getIntroduction, |
| | | getSource, |
| | |
| | | getPersonRelationAtSchool, |
| | | getSpaceTime |
| | | } from "@/api/index.js"; |
| | | import { getImg, getFile } from "@/static/tool.js"; |
| | | import { getImg } from "@/static/tool.js"; |
| | | import L from "leaflet"; |
| | | import "leaflet.chinatmsproviders"; |
| | | |
| | |
| | | }, |
| | | methods: { |
| | | copyText() { |
| | | const textToCopy = this.biogData[0].content + " 来源:中医医学人物知识库"; |
| | | const textToCopy = |
| | | this.biogData[0].content + "\n来源:中医医学人物知识库"; |
| | | const textarea = document.createElement("textarea"); |
| | | textarea.value = textToCopy; |
| | | document.body.appendChild(textarea); |
| | |
| | | window.open(item.url); |
| | | } |
| | | if (item.filePath) { |
| | | window.open(getFile(item.filePath)); |
| | | window.open(getImg(item.filePath)); |
| | | } |
| | | }, |
| | | getData() { |
| | |
| | | }, |
| | | { |
| | | name: "所处时期", |
| | | value: obj.dynastyDesc || "-" |
| | | value: obj.dynastyDesc || "-", |
| | | valueClick: () => { |
| | | uni.navigateTo({ |
| | | url: |
| | | "/pages/knowledgeBase/knowledgeBase?dynasty=" + |
| | | obj.dynastyId |
| | | }); |
| | | } |
| | | }, |
| | | { |
| | | name: "民族", |
| | |
| | | }, |
| | | { |
| | | name: "职官", |
| | | value: obj.official || "-" |
| | | value: obj.official || "-", |
| | | valueClick: () => { |
| | | uni.navigateTo({ |
| | | url: |
| | | "/pages/knowledgeBase/knowledgeBase?isAdvancedSearch=1&official=" + |
| | | obj.official |
| | | }); |
| | | } |
| | | }, |
| | | { |
| | | name: "流派", |
| | |
| | | this.biogData = res.list.map((item) => { |
| | | return { |
| | | content: item.content1, |
| | | bookName: "《" + item.bookName + "》 " + "P " + item.pageNo // 这里只有bookid无法匹配到书名 |
| | | bookName: |
| | | "《" + |
| | | item.bookName + |
| | | "》 " + |
| | | (item.pageNo ? "P " + item.pageNo : "") // 这里只有bookid无法匹配到书名 |
| | | }; |
| | | }); |
| | | }); |
| | |
| | | }); |
| | | }, |
| | | getRelationship() { |
| | | getRelationTypeTreeList().then((res) => { |
| | | console.log(res, "getRelationTypeTreeList"); |
| | | console.log(res); |
| | | }); |
| | | // getPersonRelationAtSchool({ |
| | | // personId: this.detailId, |
| | | // }).then((res) => { |
| | |
| | | // }); |
| | | // } |
| | | // }); |
| | | getPersonInfo({ |
| | | id: this.detailId, |
| | | type: "PERSON_RELATIONS" |
| | | }).then((res) => { |
| | | this.tableData4; |
| | | console.log(res, "PERSON_RELATIONS"); |
| | | }); |
| | | // 社会关系 |
| | | getPersonRelationAtSchool({ |
| | | personId: this.detailId, |
| | |
| | | personId: this.detailId |
| | | }).then((res) => { |
| | | if (res.list && res.list.length) { |
| | | const data = res.list.map((item) => { |
| | | return { |
| | | name: item.activityName, |
| | | value: [item.xcoord, item.ycoord] |
| | | }; |
| | | }); |
| | | const data = []; |
| | | for (let i = 0; i < res.list.length; i++) { |
| | | const item = res.list[i]; |
| | | if (item.xcoord && item.ycoord) { |
| | | const obj = { |
| | | name: item.activityName, |
| | | value: [item.xcoord, item.ycoord] |
| | | }; |
| | | data.push(obj); |
| | | } |
| | | } |
| | | this.markerList = data; |
| | | // 时空地图 |
| | | this.initMap(data[0]); |
| | | // 这里只取了第一条,需要全部数据 |
| | | if (data && data.length) { |
| | | this.initMap(data); |
| | | } |
| | | } |
| | | |
| | | // loadBMap("1NJdwrI1CfT6lrykVhDkmWgsO6O2bjQK").then(() => { |
| | |
| | | var map = L.map("spaceTime", { |
| | | preferCanvas: true, |
| | | attributionControl: false |
| | | }).setView([markerList.value[1], markerList.value[0]], 13); |
| | | }).setView([markerList[0].value[1], markerList[0].value[0]], 13); |
| | | L.tileLayer |
| | | .chinaProvider("TianDiTu.Normal.Map", { |
| | | key: "76bc34ead7e30e663a4eded8aeaf5860", |
| | | maxZoom: 18, |
| | | minZoom: 3 |
| | | }) |
| | | .addTo(map); |
| | | L.tileLayer |
| | | .chinaProvider("TianDiTu.Normal.Annotion", { |
| | | key: "76bc34ead7e30e663a4eded8aeaf5860", |
| | | maxZoom: 18, |
| | | minZoom: 3 |
| | |
| | | const temp_mark = L.marker([markerList.value[1], markerList.value[0]], { |
| | | icon: icon |
| | | }).addTo(map); |
| | | if (markerList.length) { |
| | | for (let i = 0; i < markerList.length; i++) { |
| | | const item = markerList[i]; |
| | | const temp_mark = L.marker([item.value[1], item.value[0]], { |
| | | icon: icon |
| | | }).addTo(map); |
| | | } |
| | | } |
| | | }, |
| | | // 放大地图跳转 |
| | | fangdaClick(index) { |
| | |
| | | opacity: 0; |
| | | } |
| | | } |
| | | |
| | | .fileul li:hover { |
| | | color: #597aa5; |
| | | } |
| | | </style> |