| | |
| | | yearRecords: [], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getProjectInfoData(); |
| | | }, |
| | | methods: { |
| | | // 页面加载 |
| | | search() { |
| | | this.getPlanRecordData(this.projectInfoData.id); |
| | | console.log(this.projectInfoData); |
| | | }, |
| | | // 获取传递过来的项目计划详情 |
| | | getProjectInfoData() { |
| | | // 从查询参数中获取数据 |
| | | this.projectInfoData = this.$route.query.data |
| | | this.projectInfoData.id = this.$route.query.id; |
| | | this.projectInfoData.projectName = this.$route.query.projectName; |
| | | this.projectInfoData.projectCode = this.$route.query.projectCode; |
| | | this.projectInfoData.managerFlag = this.$route.query.managerFlag; |
| | | // 获取项目计划记录数据 |
| | | this.search(); |
| | | }, |
| | | // 获取项目计划记录数据 |
| | |
| | | this.$router.push({ |
| | | path: '/projectManage/planInfo', |
| | | query: { |
| | | data: row, |
| | | id: row.id, |
| | | projectName: row.projectName, |
| | | projectCode: row.projectCode, |
| | | planTime: row.planTime, |
| | | planTimeFlag: row.planTimeFlag, |
| | | managerFlag: row.managerFlag, |
| | | projectInfoData: this.projectInfoData |
| | | } |
| | | }) |
| | |
| | | this.$router.push({ |
| | | path: '/projectManage/planInfoCheck', |
| | | query: { |
| | | data: row, |
| | | id: row.id, |
| | | projectName: row.projectName, |
| | | projectCode: row.projectCode, |
| | | planTime: row.planTime, |
| | | planTimeFlag: row.planTimeFlag, |
| | | managerFlag: row.managerFlag, |
| | | projectInfoData: this.projectInfoData |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | created() { |
| | | this.getProjectInfoData(); |
| | | }, |
| | | }; |
| | | </script> |