| | |
| | | this.dateTxt = ""; |
| | | } |
| | | this.getScreenData(); |
| | | let params = { |
| | | startDate: "", |
| | | endDate: "", |
| | | clientId: localStorage.getItem("clientId"), |
| | | }; |
| | | if (newVal.length > 0) { |
| | | params.startDate = moment(this.dateRange[0]).format("YYYY-MM-DD"); |
| | | params.endDate = moment(this.dateRange[1]).format("YYYY-MM-DD"); |
| | | } |
| | | getProjectSelect(params).then((res) => { |
| | | this.projectList = res; |
| | | }); |
| | | }, |
| | | immediate: true, |
| | | }, |
| | |
| | | params.startDate = moment(this.dateRange[0]).format("YYYY-MM-DD"); |
| | | params.endDate = moment(this.dateRange[1]).format("YYYY-MM-DD"); |
| | | } |
| | | getProjectSelect(params).then((res) => { |
| | | this.projectList = res; |
| | | }); |
| | | getStatistics(params).then((res) => { |
| | | this.screenData = res.ongoingProject || res.fixedAsset; |
| | | this.setMapload(); |
| | |
| | | (item) => item.projectId === this.projectId |
| | | ); |
| | | |
| | | if (Object.keys(target).length == 0) { |
| | | if (!target || Object.keys(target).length == 0) { |
| | | this.$message.warning("无此项目地图点位"); |
| | | return; |
| | | } |
| | |
| | | ]); |
| | | |
| | | // 显示悬浮窗 |
| | | this.showTooltip(null, { |
| | | projectId: target.projectId, |
| | | position: [Number(target.longitude), Number(target.latitude)], |
| | | }); |
| | | setTimeout(() => { |
| | | this.showTooltip(null, { |
| | | projectId: target.projectId, |
| | | position: [Number(target.longitude), Number(target.latitude)], |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | this.$message.warning("该项目暂无位置信息"); |
| | | } |