| | |
| | | academicSearch, |
| | | } from "@/api/index.js"; |
| | | import * as echarts from "echarts"; |
| | | import MyForm from "@/components/form/form.vue"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | getData() { |
| | | this.loading = true; |
| | | getPersonData(this.currentId).then((res) => { |
| | | console.log(res,'res') |
| | | this.nodes = []; |
| | | this.relationships = []; |
| | | let kinData = []; |
| | |
| | | this.ownInfo |
| | | ); |
| | | literature = [...newArr]; |
| | | // console.log(literature, "literature"); |
| | | } |
| | | if (obj.socialList?.length) { |
| | | let newArr = []; |
| | |
| | | this.categories.push({ name: "活动地" }); |
| | | let newArr = []; |
| | | const data = this.changeLiterature(obj.placeList, "placeList"); |
| | | console.log(data, "place"); |
| | | this.getPersonInfo(data, "placeList", newArr, 1, 4, this.ownInfo); |
| | | place = [...newArr]; |
| | | } |
| | |
| | | var nodeData = nodes; |
| | | var option; |
| | | option = { |
| | | // backgroundColor: { |
| | | // type: "image", |
| | | // image: "/static/image/characterRelationBg.png", |
| | | // size: "100% 100%", // 背景图片的尺寸,可以是百分比或者像素 |
| | | // position: "center center", // 背景图片的位置,可以是 top, bottom, middle 或者百分比 |
| | | // }, |
| | | // tooltip: {}, |
| | | legend: [ |
| | | { |
| | | left: 20, |