From b87174cde67aaa8420ea492af9b79fcc9a692036 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期二, 10 十二月 2024 18:11:05 +0800 Subject: [PATCH] bug --- src/views/projectManage/plan/planRecord.vue | 27 ++++++++++++++++++++------- 1 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/views/projectManage/plan/planRecord.vue b/src/views/projectManage/plan/planRecord.vue index ed81999..ad63175 100644 --- a/src/views/projectManage/plan/planRecord.vue +++ b/src/views/projectManage/plan/planRecord.vue @@ -126,16 +126,22 @@ 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(); }, // 鑾峰彇椤圭洰璁″垝璁板綍鏁版嵁 @@ -207,7 +213,12 @@ 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 } }) @@ -223,14 +234,16 @@ 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> -- Gitblit v1.8.0