| | |
| | | getPersonWritings, |
| | | getPersonRelationAtSchool, |
| | | getSpaceTime, |
| | | getDynastyData, |
| | | } from "@/api/index.js"; |
| | | import { getImg, getFile } from "@/static/tool.js"; |
| | | import L from "leaflet"; |
| | |
| | | }, |
| | | methods: { |
| | | copyText() { |
| | | const textToCopy = this.biogData[0].content + "\n来源:中医医学人物知识库"; |
| | | const textToCopy = |
| | | this.biogData[0].content + "\n来源:中医医学人物知识库"; |
| | | const textarea = document.createElement("textarea"); |
| | | textarea.value = textToCopy; |
| | | document.body.appendChild(textarea); |
| | |
| | | }).then((res) => { |
| | | this.tableData4; |
| | | console.log(res, "PERSON_RELATIONS"); |
| | | if (res.object.personRelationMap.kin.length) { |
| | | this.tableData2 = res.object.personRelationMap.kin.map((f) => { |
| | | return { |
| | | a: f.nodeName, |
| | | b: f.relationTypeName, |
| | | }; |
| | | }); |
| | | } |
| | | if (res.object.personRelationMap.teacherStudent.length) { |
| | | this.tableData3 = res.object.personRelationMap.teacherStudent.map((f) => { |
| | | return { |
| | | a: f.nodeName, |
| | | b: f.relationTypeName, |
| | | }; |
| | | }); |
| | | } |
| | | if (res.object.personRelationMap.social.length) { |
| | | this.tableData4 = res.object.personRelationMap.social.map((f) => { |
| | | return { |
| | | a: f.nodeName, |
| | | b: f.relationTypeName, |
| | | }; |
| | | }); |
| | | } |
| | | }); |
| | | // 社会关系 |
| | | getPersonRelationAtSchool({ |
| | |
| | | personId: this.detailId, |
| | | relationSearchTypeEO: "KINSHIP", |
| | | }).then((res) => { |
| | | console.log(res, "123123"); |
| | | if (res.list && res.list.length) { |
| | | this.tableData2 = res.list.map((f) => { |
| | | return { |
| | |
| | | minZoom: 3, |
| | | }) |
| | | .addTo(map); |
| | | L.tileLayer |
| | | .chinaProvider("TianDiTu.Normal.Annotion", { |
| | | key: "76bc34ead7e30e663a4eded8aeaf5860", |
| | | maxZoom: 18, |
| | | minZoom: 3, |
| | | }) |
| | | .addTo(map); |
| | | let icon = L.divIcon({ |
| | | html: "<div class='map-circle-name ripple'></div>", |
| | | iconSize: [80, 80], |