From c482628d3daf21dafba7e2b9eaba6e46ffda0fdb Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 27 二月 2025 20:11:14 +0800
Subject: [PATCH] 首页跳转bug

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

diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue
index 8a62dfd..545c0f1 100644
--- a/src/views/projectProcess/detail/index.vue
+++ b/src/views/projectProcess/detail/index.vue
@@ -388,22 +388,23 @@
       })
     },
     unitFormatter(row) {
-      if (row.handlerType === 'USER') {
-        return null;
-      } 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.handlerUnitName.join("銆�")
     },
     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 +415,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 +449,7 @@
             projectName: this.detailData.projectName,
             taskId: row.taskId,
             showAuditing: res.data,
+            projectId: this.queryParams.projectId,
             goBackParams: this.queryParams
           }
         })
@@ -461,6 +463,7 @@
           procInsId: row.processInsId,
           deployId: row.deployId,
           taskId: row.taskId,
+          projectId: this.queryParams.projectId,
           goBackParams: this.queryParams
         }})
     },

--
Gitblit v1.8.0