From dba034239c4ac9df17ae1be069808dbb85ddbc42 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 02 一月 2025 18:27:33 +0800
Subject: [PATCH] 流程推进详情页传递流程名称参数、表格数据项处理,TODO:实际处理人使用额外字段存储

---
 src/views/flowable/task/myProcess/detail/index.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/views/flowable/task/myProcess/detail/index.vue b/src/views/flowable/task/myProcess/detail/index.vue
index 2d186fb..1d29b92 100644
--- a/src/views/flowable/task/myProcess/detail/index.vue
+++ b/src/views/flowable/task/myProcess/detail/index.vue
@@ -2,7 +2,7 @@
   <div class="app-container">
     <el-card class="box-card" >
       <div slot="header" class="clearfix">
-        <span class="el-icon-document">宸插畬鎴愪换鍔�</span>
+        <span class="el-icon-document">浠诲姟璇︽儏</span>
         <el-button style="float: right;" size="mini" type="danger" @click="goBack">鍏抽棴</el-button>
       </div>
       <el-tabs  tab-position="top" v-model="activeName" @tab-click="handleClick">
@@ -27,7 +27,10 @@
                   :icon="setIcon(item.finishTime)"
                   :color="setColor(item.finishTime)"
                 >
-                  <p style="font-weight: 700">{{item.taskName}}</p>
+                  <p style="font-weight: 700">{{item.taskName}}
+                    <span v-if="item.comment && item.comment.type === '3'" style="color: red">(鎵ц浜嗛┏鍥�)</span>
+                    <span v-if="item.overtime" style="color: red">(宸茶秴鏃�)</span>
+                  </p>
                   <el-card :body-style="{ padding: '10px' }">
                     <el-descriptions class="margin-top" :column="1" size="small" border>
                       <el-descriptions-item v-if="item.assigneeName" label-class-name="my-label">
@@ -95,6 +98,7 @@
       // 閬僵灞�
       loading: true,
       flowRecordList: [], // 娴佺▼娴佽浆鏁版嵁
+      goBackParams: {},
       taskForm:{
         multiple: false,
         comment:"", // 鎰忚鍐呭
@@ -110,6 +114,7 @@
     this.taskForm.deployId = this.$route.query && this.$route.query.deployId;
     this.taskForm.taskId  = this.$route.query && this.$route.query.taskId;
     this.taskForm.procInsId = this.$route.query && this.$route.query.procInsId;
+    this.goBackParams = this.$route.query && this.$route.query.goBackParams;
     // 娴佺▼浠诲姟閲嶈幏鍙栧彉閲忚〃鍗�
     this.processVariables( this.taskForm.taskId)
     this.getFlowRecordList(this.taskForm.procInsId, this.taskForm.deployId);
@@ -187,10 +192,16 @@
     },
     /** 杩斿洖椤甸潰 */
     goBack() {
-      // // 鍏抽棴褰撳墠鏍囩椤靛苟杩斿洖涓婁釜椤甸潰
-      // const obj = { path: "/task/process", query: { t: Date.now()} };
-      // this.$tab.closeOpenPage(obj);
-      this.$tab.closePage()
+      // 鍏抽棴褰撳墠鏍囩椤�
+      this.$store.dispatch("tagsView/delView", this.$route);
+      this.$router.push({
+        path: '/projectFlow/detail',
+        query: {
+          projectId: this.goBackParams.projectId,
+          processDefId: this.goBackParams.processDefId,
+          processName: this.goBackParams.processName
+        }
+      })
     },
   }
 };

--
Gitblit v1.8.0