From e055f23263d9510b9a46b7f89d5f6c65f6f1ad89 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 26 二月 2025 21:58:08 +0800
Subject: [PATCH] 工程管理

---
 src/views/projectProcess/detail/index.vue |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue
index 8a62dfd..d7d4f59 100644
--- a/src/views/projectProcess/detail/index.vue
+++ b/src/views/projectProcess/detail/index.vue
@@ -388,6 +388,9 @@
       })
     },
     unitFormatter(row) {
+      if (row.taskStatus != '宸插畬鎴�') {
+        return null
+      }
       if (row.handlerType === 'USER') {
         return null;
       } else if (row.handlerType === 'DEPT') {
@@ -397,13 +400,17 @@
       }
     },
     candidateFormatter(row) {
-      if (row.handlerType === 'USER') {
-        return row.handlerName.join('銆�')
-      } else if (row.handlerType === 'DEPT') {
-        return row.handlerUnitName.join('銆�')
-      } else if (row.handlerType === 'ROLE') {
-        return row.handlerUnitName.join('銆�')
+      if (row.taskStatus != '宸插畬鎴�') {
+        return null
       }
+      return row.handlerName.join('銆�')
+      // if (row.handlerType === 'USER') {
+      //   return row.handlerName.join('銆�')
+      // } else if (row.handlerType === 'DEPT') {
+      //   return row.handlerUnitName.join('銆�')
+      // } else if (row.handlerType === 'ROLE') {
+      //   return row.handlerUnitName.join('銆�')
+      // }
     },
     finalFinishedFormatter(row) {
       // 涓嶆槸宸插畬鎴愮殑鐘舵�佹病鏈夊疄闄呭鐞嗕汉锛屽凡瀹屾垚鐨勭姸鎬佸彧鏈変竴涓汉
@@ -414,7 +421,7 @@
       }
     },
     showHandle(row) {
-      if (row.taskStatus === '寰呭姙') {
+      if (row.taskStatus === '寰呭姙' || row.taskStatus === '鎸傝捣') {
         if (row.handlerType === "USER") {
           console.log(row.handlerId.indexOf(this.$store.state.user.id) !== -1, "鎴戞槸涓嶆槸")
           return row.handlerId.indexOf(this.$store.state.user.id) !== -1
@@ -448,6 +455,7 @@
             projectName: this.detailData.projectName,
             taskId: row.taskId,
             showAuditing: res.data,
+            projectId: this.queryParams.projectId,
             goBackParams: this.queryParams
           }
         })
@@ -461,6 +469,7 @@
           procInsId: row.processInsId,
           deployId: row.deployId,
           taskId: row.taskId,
+          projectId: this.queryParams.projectId,
           goBackParams: this.queryParams
         }})
     },

--
Gitblit v1.8.0