From 16f122cfcec09e65e4790ecee46bae1f1b7b8fff Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期日, 02 三月 2025 10:17:38 +0800
Subject: [PATCH] Merge branch 'master' into dev

---
 src/views/projectProcess/detail/index.vue |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue
index 8a62dfd..412ab09 100644
--- a/src/views/projectProcess/detail/index.vue
+++ b/src/views/projectProcess/detail/index.vue
@@ -23,7 +23,7 @@
         <div @click="changeTab(4, 'remaining')" :class="{'item-warm': true, 'remaining-color': true, 'active': 4 === selectTabId}">鍓╀綑浜嬮」<span v-if="detailData && detailData.statistics">锛坽{detailData.statistics.remainingTaskNum}}锛�</span></div>
         <div @click="changeTab(5, 'timely')" :class="{'item-warm': true, 'timely-color': true, 'active': 5 === selectTabId}">鎸夋椂瀹屾垚<span v-if="detailData && detailData.statistics">锛坽{detailData.statistics.timelyFinishedTaskNum}}锛�</span></div>
         <div @click="changeTab(6, 'overtime')" :class="{'item-warm': true, 'overtime-color': true, 'active': 6 === selectTabId}">瓒呮椂浜嬮」锛�0锛�</div>
-        <div @click="changeTab(7, 'willOvertime')" :class="{'item-warm': true, 'willOvertime-color': true, 'active': 7 === selectTabId}">涓存湡浜嬮」锛�0锛�</div>
+<!--        <div @click="changeTab(7, 'willOvertime')" :class="{'item-warm': true, 'willOvertime-color': true, 'active': 7 === selectTabId}">涓存湡浜嬮」锛�0锛�</div>-->
         <div @click="changeTab(8, 'urge')" :class="{'item-warm': true, 'urge-color': true, 'active': 8 === selectTabId}">鐫e姙浜嬮」锛�0锛�</div>
       </div>
       <div style="display: flex;justify-content: center;align-items: center;margin-top: 20px; position: relative">
@@ -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