From cf2faab021222e1e345e8098da38f2c24ea8b504 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 28 十一月 2024 06:07:40 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/projectManage/plan/planRecord.vue | 29 ++++++++++++++--------------- 1 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/views/projectManage/plan/planRecord.vue b/src/views/projectManage/plan/planRecord.vue index 19f0123..f2022b1 100644 --- a/src/views/projectManage/plan/planRecord.vue +++ b/src/views/projectManage/plan/planRecord.vue @@ -1,8 +1,8 @@ <template> <div class="app-container"> <el-container> - <el-header v-show="planInfoData && planInfoData.projectName" class="header-title">椤圭洰鍚嶇О锛歿{ planInfoData.projectName }}</el-header> - <h4 v-show="planInfoData && planInfoData.projectCode" style="text-align: center">椤圭洰浠g爜锛歿{ planInfoData.projectCode }}</h4> + <el-header v-show="planRecordData && planRecordData.projectName" class="header-title">椤圭洰鍚嶇О锛歿{ planRecordData.projectName }}</el-header> + <h4 v-show="planRecordData && planRecordData.projectCode" style="text-align: center">椤圭洰浠g爜锛歿{ planRecordData.projectCode }}</h4> <el-main> <el-card shadow="hover"> <el-row :gutter="20"> @@ -102,7 +102,7 @@ data() { return { // 鎺ユ敹浼犻�掕繃鏉ョ殑椤圭洰璁″垝鏁版嵁 - planInfoData: {}, + planRecordData: {}, // 鏈堝害璁″垝鏁版嵁 monthRecords: [], // 瀛e害璁″垝鏁版嵁 @@ -114,15 +114,13 @@ methods: { // 椤甸潰鍔犺浇 search() { - this.getPlanRecordData(this.planInfoData.id); + this.getPlanRecordData(this.planRecordData.id); }, // 鑾峰彇浼犻�掕繃鏉ョ殑椤圭洰璁″垝璇︽儏 getPlanInfoData() { // 浠庢煡璇㈠弬鏁颁腑鑾峰彇鏁版嵁 - if (this.$route.query.data) { - this.planInfoData = JSON.parse(this.$route.query.data); - this.getPlanRecordData(this.planInfoData.id); - } + this.planRecordData = this.$route.query.data + this.getPlanRecordData(this.planRecordData.id); }, // 鑾峰彇椤圭洰璁″垝璁板綍鏁版嵁 getPlanRecordData(id) { @@ -138,7 +136,7 @@ handleAddMonthPlan() { let planRecordData = { id: undefined, - projectInfoId: this.planInfoData.id, + projectInfoId: this.planRecordData.id, planTimeFlag: 0 } // 鍒ゆ柇鏈堝害璁″垝鏄惁涓虹┖ @@ -156,7 +154,7 @@ handleAddSeasonPlan() { let planRecordData = { id: undefined, - projectInfoId: this.planInfoData.id, + projectInfoId: this.planRecordData.id, planTimeFlag: 1 } // 鍒ゆ柇瀛e害璁″垝鏄惁涓虹┖ @@ -174,7 +172,7 @@ handleAddYearPlan() { let planRecordData = { id: undefined, - projectInfoId: this.planInfoData.id, + projectInfoId: this.planRecordData.id, planTimeFlag: 2 } // 鍒ゆ柇骞村害璁″垝鏄惁涓虹┖ @@ -191,10 +189,10 @@ /** 淇敼椤圭洰璁″垝椤� */ handlePlanInfo(row) { this.$router.push({ - name: 'PlanInfo', + path: '/projectManage/planInfo', query: { - data: JSON.stringify(row), - planInfoData: this.planInfoData + data: row, + planRecordData: this.planRecordData } }) }, @@ -209,7 +207,8 @@ this.$router.push({ path: '/projectManage/planInfoCheck', query: { - data: JSON.stringify(row), + data: row, + planRecordData: this.planRecordData } }) } -- Gitblit v1.8.0