From 0417817fd8c7b5b79efd721da77f70217cda0201 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 28 十一月 2024 01:33:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/projectManage/plan/planInfoCheck.vue |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/views/projectManage/plan/planInfoCheck.vue b/src/views/projectManage/plan/planInfoCheck.vue
index 30c2174..ae85cde 100644
--- a/src/views/projectManage/plan/planInfoCheck.vue
+++ b/src/views/projectManage/plan/planInfoCheck.vue
@@ -7,6 +7,7 @@
         <el-card shadow="hover">
           <el-row :gutter="20">
             <el-col :span="24" class="mb-4">
+              <el-button type="primary" size="small" @click="handlePlanRecord" style="float: right; margin-bottom: 10px;">杩斿洖</el-button>
               <!--椤圭洰璁″垝椤�-->
               <el-table :data="tableData" border stripe style="width: 100%; margin-bottom: 20px">
                 <el-table-column prop="index" label="搴忓彿" width="50" align="center">
@@ -176,9 +177,7 @@
     // 鑾峰彇浼犻�掕繃鏉ョ殑椤圭洰璁″垝璇︽儏
     getPlanRecordData() {
       // 浠庢煡璇㈠弬鏁颁腑鑾峰彇鏁版嵁
-      if (this.$route.query.data) {
-        this.planRecordData = JSON.parse(this.$route.query.data)
-      }
+      this.planRecordData = this.$route.query.data
       this.planInfoData = this.$route.query.planInfoData
       this.search();
     },
@@ -226,15 +225,15 @@
       this.tableData[index].startTime = '';
       this.tableData[index].endTime = '';
     },
-    /** 杩斿洖椤圭洰璁″垝璁板綍椤甸潰 */
-    handlePlanRecord(planInfoData) {
+    /** 杩斿洖椤圭洰璁″垝璁板綍 */
+    handlePlanRecord() {
       this.$router.push({
-        name: '/projectManage/planRecord',
+        path: '/projectManage/planRecord',
         query: {
-          data: JSON.stringify(planInfoData)
+          data: this.planRecordData
         }
       })
-    },
+    }
   },
   created() {
     this.getPlanRecordData();

--
Gitblit v1.8.0