From 7e2445e59ae0f5aaa39b9b8c1fbdf32ed080f5c7 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 03 一月 2025 10:09:21 +0800
Subject: [PATCH] 流程推进页面设置前端缓存,实际处理人展示逻辑调整

---
 src/views/flowable/task/myProcess/detail/index.vue |   60 +++++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 49 insertions(+), 11 deletions(-)

diff --git a/src/views/flowable/task/myProcess/detail/index.vue b/src/views/flowable/task/myProcess/detail/index.vue
index 2d186fb..bcfd691 100644
--- a/src/views/flowable/task/myProcess/detail/index.vue
+++ b/src/views/flowable/task/myProcess/detail/index.vue
@@ -2,17 +2,44 @@
   <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">
         <!--琛ㄥ崟淇℃伅-->
         <el-tab-pane label="琛ㄥ崟淇℃伅" name="1">
-          <el-col :span="16" :offset="4" v-if="formDataList && formDataList.length > 0">
-            <div v-for="(formDataObj, index) in formDataList" :key="index" class="form-warp">
-              <div v-if="formDataObj.current" style="margin-bottom: 15px;color: #409eff">褰撳墠闃舵锛�<span style="color: red">{{formDataObj.beforeNodeName}}</span></div>
-              <div v-else style="margin-bottom: 15px;color: #409eff">鍓嶇疆闃舵锛�<span style="color: #d5904b">{{formDataObj.beforeNodeName}}</span></div>
-              <v-form-render  :form-data="formDataObj.formJson" :ref="'form' + index"/>
+          <el-col :span="16" :offset="4">
+            <div v-if="formDataList && formDataList.length > 0">
+              <div v-for="(formDataObj, index) in formDataList" :key="index" class="form-warp">
+                <div v-if="formDataObj.current" style="margin-bottom: 15px;color: #409eff">褰撳墠闃舵锛�<span style="color: red">{{formDataObj.beforeNodeName}}</span></div>
+                <div v-else style="margin-bottom: 15px;color: #409eff">鍓嶇疆闃舵锛�<span style="color: #d5904b">{{formDataObj.beforeNodeName}}</span></div>
+                <div v-if="formDataObj.formJson !== null && formDataObj.formJson !== ''">
+                  <v-form-render  :form-data="formDataObj.formJson" :ref="'form' + index"/>
+                </div>
+                <div v-else>
+                  <el-alert
+                    title="鑺傜偣鏃犺〃鍗曟暟鎹�"
+                    type="info"
+                    :closable="false"
+                  >
+                  </el-alert>
+                </div>
+              </div>
+            </div>
+            <div v-else>
+              <el-alert
+                title="褰撳墠鑺傜偣鏃犺〃鍗曟暟鎹�"
+                type="info"
+                :closable="false"
+              >
+              </el-alert>
+              <el-alert
+                style="margin-top: 20px"
+                title="鍓嶇疆鑺傜偣鏃犺〃鍗曟暟鎹�"
+                type="info"
+                :closable="false"
+              >
+              </el-alert>
             </div>
          </el-col>
         </el-tab-pane>
@@ -27,7 +54,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 +125,7 @@
       // 閬僵灞�
       loading: true,
       flowRecordList: [], // 娴佺▼娴佽浆鏁版嵁
+      goBackParams: {},
       taskForm:{
         multiple: false,
         comment:"", // 鎰忚鍐呭
@@ -110,6 +141,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 +219,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