| | |
| | | getPersonWritings, |
| | | getPersonRelationAtSchool, |
| | | getSpaceTime, |
| | | getDynastyData, |
| | | } from "@/api/index.js"; |
| | | import { getImg, getFile } from "@/static/tool.js"; |
| | | import L from "leaflet"; |
| | |
| | | }).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 { |