From 71a12701db5c7932e4d220ed7570ca503951dbce Mon Sep 17 00:00:00 2001
From: churf <123456>
Date: Fri, 25 Aug 2023 02:15:06 +0000
Subject: [PATCH] 日报暂存变量temp优化

---
 eladmin-web-master/src/views/task/taskDaliy/index.vue |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/eladmin-web-master/src/views/task/taskDaliy/index.vue b/eladmin-web-master/src/views/task/taskDaliy/index.vue
index e00d6ce..6052808 100644
--- a/eladmin-web-master/src/views/task/taskDaliy/index.vue
+++ b/eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -596,6 +596,7 @@
           if (this.formTaskUserIds[i].id === this.form.taskUserMongo.id) {
             this.form.taskHours = this.formTaskUserIds[i].performanceHours
             this.form.alreadyConsumedHours = this.formTaskUserIds[i].alreadyConsumedHours
+            this.temp = this.formTaskUserIds[i].alreadyConsumedHours
           }
         }
       })
@@ -711,8 +712,6 @@
       }
     },
     formDateChange() {
-      this.form.consumedHours = 0
-      this.tempValue = 0
       crudTaskDaliy.getDailyDetail({ taskUserId: this.form.taskUserMongo.id, fillDate: this.form.fillDate }).then(res => {
         if (res !== '') {
           this.form.alreadyConsumedHours = this.temp - res.consumedHours

--
Gitblit v1.9.3