From 1b9b94bd65d49581f72a771f1936fb36db98ca5a Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 24 三月 2025 11:40:43 +0800
Subject: [PATCH] 首页展示容缺待办

---
 src/views/projectProcess/detail/index.vue |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue
index 388a05a..43b4034 100644
--- a/src/views/projectProcess/detail/index.vue
+++ b/src/views/projectProcess/detail/index.vue
@@ -268,14 +268,35 @@
       this.queryParams.processInsId = this.$route.query.processInsId
       this.queryParams.deployId = this.$route.query.deployId
       this.queryParams.processName = this.$route.query.processName
+      if (this.$route.query.selectTabId) {
+        this.selectTabId = parseInt(this.$route.query.selectTabId)
+      }
       sessionStorage.setItem("projectProDetail", JSON.stringify(this.queryParams))
     } else {
       this.queryParams = params
     }
     this.loading = true
+    this.changeTab(this.selectTabId, this.transEventType(this.selectTabId))
     this.getProjectProcessInfo()
   },
   methods: {
+    transEventType(selectTabId) {
+      if (selectTabId == 1) {
+        return "all"
+      } else if (selectTabId == 2) {
+        return "todo"
+      } else if (selectTabId == 3) {
+        return "wait"
+      } else if (selectTabId == 4) {
+        return "remaining"
+      } else if (selectTabId == 5) {
+        return "timely"
+      } else if (selectTabId == 6) {
+        return "overtime"
+      } else if (selectTabId == 8) {
+        return "urge"
+      }
+    },
     submitSupervise() {
       this.$refs["superviseForm"].validate(valid => {
         if (valid) {
@@ -483,19 +504,14 @@
       }
       getProjectProcessDetail(param).then(res => {
         this.detailData = res.data
-        this.taskList = res.taskList
-        this.total = res.total
         this.loading = false
       })
     },
     changeTab(id, event) {
-      let beforeId = this.selectTabId
       this.selectTabId = id
       this.queryParams.taskType = event
       this.queryParams.currentPage = 1;
-      if (beforeId !== id) {
-        this.getList()
-      }
+      this.getList()
     }
   }
 }

--
Gitblit v1.8.0