From 46e29a50eccda9f92fb2feeb18fa8a0ea4092587 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期四, 28 十一月 2024 22:31:38 +0800
Subject: [PATCH] 页面传参bug

---
 src/views/projectManage/progress/progressRecord.vue |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/views/projectManage/progress/progressRecord.vue b/src/views/projectManage/progress/progressRecord.vue
index bd35447..693cb58 100644
--- a/src/views/projectManage/progress/progressRecord.vue
+++ b/src/views/projectManage/progress/progressRecord.vue
@@ -1,8 +1,8 @@
 <template>
   <div class="app-container">
     <el-container>
-      <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-header v-show="projectInfoData && projectInfoData.projectName" class="header-title">椤圭洰鍚嶇О锛歿{ projectInfoData.projectName }}</el-header>
+      <h4 v-show="projectInfoData && projectInfoData.projectCode" style="text-align: center">椤圭洰浠g爜锛歿{ projectInfoData.projectCode }}</h4>
       <el-main>
         <el-card shadow="hover">
           <el-row :gutter="20">
@@ -189,7 +189,7 @@
   data() {
     return {
       // 鎺ユ敹浼犻�掕繃鏉ョ殑椤圭洰璁″垝鏁版嵁
-      planRecordData: {},
+      projectInfoData: {},
       monthProgress: [],
       seasonProgress: [],
       yearProgress: [],
@@ -215,15 +215,15 @@
   },
   methods: {
     search() {
-      this.getPlanRecordData()
-      this.getProjectProgressForm(this.planRecordData.id);
+      this.getProjectInfoData()
+      this.getProjectProgressForm(this.projectInfoData.id);
     },
     // 鑾峰彇浼犻�掕繃鏉ョ殑椤圭洰璁″垝璇︽儏
-    getPlanRecordData() {
+    getProjectInfoData() {
       // 浠庢煡璇㈠弬鏁颁腑鑾峰彇鏁版嵁
       if (this.$route.query.data) {
-        this.planRecordData = JSON.parse(this.$route.query.data);
-        this.getProgressInfoList(this.planRecordData.id);
+        this.projectInfoData = JSON.parse(this.$route.query.data);
+        this.getProgressInfoList(this.projectInfoData.id);
       }
     },
     getProjectProgressForm(id) {
@@ -269,7 +269,7 @@
     },
     // 淇濆瓨
     handleSave() {
-      this.projectProgressForm.projectReportId = this.planRecordData.id;
+      this.projectProgressForm.projectReportId = this.projectInfoData.id;
       // 鍒ゆ柇鏂囦欢涓嶄负绌�
         saveProjectProgressFileLists(this.projectProgressForm).then(res => {
           this.$message.success('淇濆瓨鎴愬姛');

--
Gitblit v1.8.0