From ce20e86b57be436a42b65befe8e1da2283922030 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期三, 11 十二月 2024 10:17:05 +0800 Subject: [PATCH] 优化 --- src/views/projectManage/plan/planRecord.vue | 27 ++++++++------------------- 1 files changed, 8 insertions(+), 19 deletions(-) diff --git a/src/views/projectManage/plan/planRecord.vue b/src/views/projectManage/plan/planRecord.vue index ad63175..ab0b9ba 100644 --- a/src/views/projectManage/plan/planRecord.vue +++ b/src/views/projectManage/plan/planRecord.vue @@ -113,7 +113,7 @@ import {addRecord, getPlanRecordList, deletePlanRecord} from "@/api/projectPlan/index"; export default { - name: "PlanRecord", + // name: "PlanRecord", data() { return { // 鎺ユ敹浼犻�掕繃鏉ョ殑椤圭洰璁″垝鏁版嵁 @@ -137,10 +137,7 @@ // 鑾峰彇浼犻�掕繃鏉ョ殑椤圭洰璁″垝璇︽儏 getProjectInfoData() { // 浠庢煡璇㈠弬鏁颁腑鑾峰彇鏁版嵁 - 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.projectInfoData = JSON.parse(this.$route.query.data); // 鑾峰彇椤圭洰璁″垝璁板綍鏁版嵁 this.search(); }, @@ -210,16 +207,12 @@ }, /** 淇敼椤圭洰璁″垝椤� */ handlePlanInfo(row) { + row.managerFlag = this.projectInfoData.managerFlag; this.$router.push({ path: '/projectManage/planInfo', query: { - id: row.id, - projectName: row.projectName, - projectCode: row.projectCode, - planTime: row.planTime, - planTimeFlag: row.planTimeFlag, - managerFlag: row.managerFlag, - projectInfoData: this.projectInfoData + data: JSON.stringify(row), + projectInfoData: JSON.stringify(this.projectInfoData) } }) }, @@ -231,16 +224,12 @@ }, // 鏌ョ湅椤圭洰璁″垝椤� handleCheckPlanInfo(row) { + row.managerFlag = this.projectInfoData.managerFlag; this.$router.push({ path: '/projectManage/planInfoCheck', query: { - id: row.id, - projectName: row.projectName, - projectCode: row.projectCode, - planTime: row.planTime, - planTimeFlag: row.planTimeFlag, - managerFlag: row.managerFlag, - projectInfoData: this.projectInfoData + data: JSON.stringify(row), + projectInfoData: JSON.stringify(this.projectInfoData) } }) } -- Gitblit v1.8.0