From d667fce729c223e885930bb8edb528ab501b8d6a Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期二, 26 十一月 2024 16:57:53 +0800
Subject: [PATCH] 1. 移动socket客户端类、新增socket/index.js文件(初始化) 2. socketMessage枚举类的完善(增加对每个类型的英文描述字段以及对类型筛选和判断是否为心跳消息的工具方法) 3. 在FYBgTaskCard.vue监听并处理如何刷后台任务状态逻辑

---
 src/views/fysp/task/TaskManage.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/views/fysp/task/TaskManage.vue b/src/views/fysp/task/TaskManage.vue
index 8940905..2e01f89 100644
--- a/src/views/fysp/task/TaskManage.vue
+++ b/src/views/fysp/task/TaskManage.vue
@@ -41,6 +41,7 @@
               <el-row>
                 <el-col :span="curSubTaskList ? 16 : 24">
                   <CompMonitorPlan
+                    ref="planRef"
                     :task="curTask.data"
                     @date-change="onDateChange"
                   ></CompMonitorPlan>
@@ -52,6 +53,7 @@
                     :loading="subTaskLoading"
                     height="56vh"
                     @add="subTaskDrawer = true"
+                    @submit="handleSubtaskSubmit"
                   ></CompSubTaskList>
                 </el-col>
               </el-row>
@@ -93,6 +95,7 @@
     <CompDayTask
       :day-task="curDayTask"
       :mObjList="curMonitorObjList"
+      @submit="handleSubtaskSubmit"
     ></CompDayTask>
   </el-drawer>
   <el-dialog
@@ -226,10 +229,10 @@
           type = 0;
           break;
         case '姝e湪鎵ц':
-          type = 1;
+          type = 5;
           break;
         case '宸茬粨鏉�':
-          type = 2;
+          type = 6;
           break;
         default:
           type = 0;
@@ -242,11 +245,11 @@
       this.sideLoading = false;
       this.mainLoading = true;
       this.curSubTaskList = undefined;
+      this.curTask = task;
       taskApi
         .fetchMonitorObjectVersion(task.data.tguid)
         .then((res) => {
           this.curMonitorObjList = res;
-          this.curTask = task;
         })
         .finally(() => {
           this.mainLoading = false;
@@ -293,6 +296,12 @@
           task: encodeURIComponent(JSON.stringify(value))
         }
       });
+    },
+    handleSubtaskSubmit() {
+      this.subTaskLoading = true;
+      this.$refs.planRef
+        .fetchDayTasks()
+        .finally(() => (this.subTaskLoading = false));
     }
   },
   mounted() {

--
Gitblit v1.9.3