| | |
| | | import {addRecord, getPlanRecordList, deletePlanRecord} from "@/api/projectPlan/index"; |
| | | |
| | | export default { |
| | | name: "PlanRecord", |
| | | // name: "PlanRecord", |
| | | data() { |
| | | return { |
| | | // 接收传递过来的项目计划数据 |
| | |
| | | yearRecords: [], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getProjectInfoData(); |
| | | }, |
| | | methods: { |
| | | // 页面加载 |
| | | search() { |
| | | this.getPlanRecordData(this.projectInfoData.id); |
| | | console.log(this.projectInfoData); |
| | | }, |
| | | // 获取传递过来的项目计划详情 |
| | | getProjectInfoData() { |
| | | // 从查询参数中获取数据 |
| | | this.projectInfoData = this.$route.query.data |
| | | this.projectInfoData = JSON.parse(this.$route.query.data); |
| | | // 获取项目计划记录数据 |
| | | this.search(); |
| | | }, |
| | | // 获取项目计划记录数据 |
| | |
| | | }, |
| | | /** 修改项目计划项 */ |
| | | handlePlanInfo(row) { |
| | | row.managerFlag = this.projectInfoData.managerFlag; |
| | | this.$router.push({ |
| | | path: '/projectManage/planInfo', |
| | | query: { |
| | | data: row, |
| | | projectInfoData: this.projectInfoData |
| | | data: JSON.stringify(row), |
| | | projectInfoData: JSON.stringify(this.projectInfoData) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | // 查看项目计划项 |
| | | handleCheckPlanInfo(row) { |
| | | row.managerFlag = this.projectInfoData.managerFlag; |
| | | this.$router.push({ |
| | | path: '/projectManage/planInfoCheck', |
| | | query: { |
| | | data: row, |
| | | projectInfoData: this.projectInfoData |
| | | data: JSON.stringify(row), |
| | | projectInfoData: JSON.stringify(this.projectInfoData) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | created() { |
| | | this.getProjectInfoData(); |
| | | }, |
| | | }; |
| | | </script> |