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/progress/progressRecord.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/views/projectManage/progress/progressRecord.vue b/src/views/projectManage/progress/progressRecord.vue
index a7fafb1..fa478ff 100644
--- a/src/views/projectManage/progress/progressRecord.vue
+++ b/src/views/projectManage/progress/progressRecord.vue
@@ -153,6 +153,7 @@
                   v-model="progressReportData.actualStartTime"
                   type="date"
                   placeholder="閫夋嫨鏃ユ湡"
+                  value-format="yyyy-MM-dd HH:mm:ss"
                   size="small"
                   style="width: 130px"
                   :readonly="projectInfoData.managerFlag || dialogFlag !== 0"/>
@@ -161,6 +162,7 @@
                   v-model="progressReportData.actualEndTime"
                   type="date"
                   placeholder="閫夋嫨鏃ユ湡"
+                  value-format="yyyy-MM-dd HH:mm:ss"
                   size="small"
                   style="width: 130px"
                   :readonly="projectInfoData.managerFlag || dialogFlag !== 0"/>
@@ -339,15 +341,19 @@
       accept: ['pdf','jpg','mp4'],
     }
   },
+  created() {
+    this.getProjectInfoData()
+  },
   methods: {
     search() {
       this.getProjectProgressForm(this.projectInfoData.id);
       this.getProgressInfoList(this.projectInfoData.id);
+      this.progressReportData = {};
     },
     // 鑾峰彇浼犻�掕繃鏉ョ殑椤圭洰璁″垝璇︽儏
     getProjectInfoData() {
       // 浠庢煡璇㈠弬鏁颁腑鑾峰彇鏁版嵁
-        this.projectInfoData = this.$route.query.data;
+        this.projectInfoData = JSON.parse(this.$route.query.data);
         this.search();
     },
     getProjectProgressForm(id) {
@@ -391,7 +397,7 @@
     // 鍥炲
     handleReply() {
       reply(this.progressReportData).then(res => {
-        // this.dialogFormVisible = false;
+        this.dialogFormVisible = false;
         this.$message.success('鍥炲鎴愬姛');
         this.search();
       })
@@ -425,6 +431,7 @@
       this.dialogFormVisible = false;
       this.isShowReplyBtn = true;
       this.dialogFlag = 0;
+      this.progressReportData = {};
     },
     // 淇濆瓨
     handleSave() {
@@ -436,9 +443,7 @@
         })
     }
   },
-  created() {
-    this.getProjectInfoData()
-  },
+
 };
 </script>
 

--
Gitblit v1.8.0