| | |
| | | // this.aaa(); |
| | | // }); |
| | | this.$route; |
| | | console.log(this.$route, "this.$route"); |
| | | this.getPersonInfoFun(); |
| | | this.getBasicInfo(); |
| | | }, |
| | |
| | | id: this.$route.query.id, |
| | | type: "PERSON_SPACE_TIME" |
| | | }).then((res) => { |
| | | console.log(res, "res"); |
| | | this.initMap(res.object.personSpaceTimeList); |
| | | }); |
| | | }, |
| | |
| | | id: this.$route.query.id, |
| | | type: "PERSON_BASIC" |
| | | }).then((res) => { |
| | | console.log(res, "res"); |
| | | this.basicInfo.name = res.object.personFieldList.find( |
| | | (f) => f.fieldName == "WEAK_NAME" |
| | | ).content1; |
| | |
| | | }, |
| | | |
| | | creatMX(len) { |
| | | console.log(len); |
| | | let width = len * 50 + 10; |
| | | // this.MX.style.width = `${width}px` |
| | | // this.scales.style.width = `${width}px` |
| | | // console.log(this.box.style.width); |
| | | }, |
| | | creatScale() { |
| | | // for (let i = 0; i < this.yearArr.length; i++) { |
| | |
| | | // scale.addEventListener("click", this.scaleClick) |
| | | // scales.appendChild(scale) |
| | | // } |
| | | // console.log(arr[0]); |
| | | }, |
| | | |
| | | handleSliderChange(value) { |
| | |
| | | }, |
| | | scaleClick(i) { |
| | | // let i = Number(this.getAttribute("data-index")) |
| | | console.log(i, this.cursorML); |
| | | |
| | | if (i > this.yearIndex) { |
| | | this.cursorML += (i - this.yearIndex + +("0.0" + this.yearIndex)) / 1.9; |
| | | // this.spanML += 50 * (i - this.yearIndex) |
| | | console.log(i - this.yearIndex + 0.2, "aaaa"); |
| | | } else { |
| | | this.cursorML -= (this.yearIndex - i) / 2 + 0.04; |
| | | // this.spanML -= 50 * (this.yearIndex - i) |
| | | console.log(this.yearIndex, i, "bbbb"); |
| | | } |
| | | this.yearIndex = i; |
| | | }, |
| | |
| | | // 设置点击事件监听 |
| | | myChart.on("click", (params) => { |
| | | // menuNav2 = !menuNav1 |
| | | // console.log(menuNav); |
| | | if (params.componentType === "series") { |
| | | var dataName = params.data.name; // 获取点击的数据名称 |
| | | var dataValue = params.data.value; // 获取点击的数据值 |
| | | // 在这里可以根据需要处理点击事件,比如弹出对应数据的详细信息等操作 |
| | | // console.log('点击了', dataName, '数据,数值为', dataValue); |
| | | // 这里可以编写触发时间获取对应数据信息的逻辑 |
| | | this.spaceTimeArr(params); |
| | | } |
| | |
| | | // 修改 Vue 组件的数据,例如显示菜单导航 |
| | | this.menuNav = !this.menuNav; |
| | | // 时空地图的数据 |
| | | console.log(Arr); |
| | | } |
| | | } |
| | | }; |