From 5a98e5f9ce50bb5de56a54cae14e5ea49fbe2c07 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 17 三月 2025 16:19:29 +0800
Subject: [PATCH] 更新流程实现

---
 src/views/flowable/task/myProcess/detail/index.vue |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/views/flowable/task/myProcess/detail/index.vue b/src/views/flowable/task/myProcess/detail/index.vue
index ca06721..b8e9952 100644
--- a/src/views/flowable/task/myProcess/detail/index.vue
+++ b/src/views/flowable/task/myProcess/detail/index.vue
@@ -30,6 +30,19 @@
                   >
                   </el-alert>
                 </div>
+                <div style="position: absolute;top: 10px; right: 20px" v-if="formDataObj.events.length > 0">
+                  <el-popover
+                    placement="right-start"
+                    title="浠诲姟鏃ュ織"
+                    width="800"
+                    trigger="hover"
+                    >
+                    <div v-if="formDataObj.events.length > 0">
+                      <log-view :log-list="formDataObj.events"/>
+                    </div>
+                    <el-button slot="reference">浠诲姟鏃ュ織</el-button>
+                  </el-popover>
+                </div>
                 <div v-if="formDataList.length <= 1">
                   <div class="before_none">鍓嶇疆闃舵锛�<span>涓嶅瓨鍦ㄥ墠缃樁娈�</span></div>
                   <el-alert
@@ -109,12 +122,13 @@
 import {getProcessVariables, flowXmlAndNode} from "@/api/flowable/definition";
 import {flowTaskForm, flowTaskFormDetail} from "@/api/flowable/todo";
 import BpmnViewer from '@/components/Process/viewer';
+import LogView from "@/views/projectProcess/components/LogView";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 
 export default {
   name: "Record",
   components: {
-    BpmnViewer
+    BpmnViewer, LogView
   },
   props: {},
   data() {
@@ -152,7 +166,7 @@
     this.projectName = this.$route.query && this.$route.query.projectName;
     this.flowName = this.$route.query && this.$route.query.flowName;
     // 娴佺▼浠诲姟閲嶈幏鍙栧彉閲忚〃鍗�
-    this.processVariables( this.taskForm.taskId)
+    this.processVariables( this.taskForm.taskId, this.taskForm.procInsId)
     this.getFlowRecordList(this.taskForm.procInsId);
   },
   methods: {
@@ -190,11 +204,11 @@
       })
     },
     /** 鑾峰彇娴佺▼鍙橀噺鍐呭 */
-    processVariables(taskId) {
+    processVariables(taskId, processInsId) {
       if (taskId) {
         this.formLoading = true
         // 鎻愪氦娴佺▼鐢宠鏃跺~鍐欑殑琛ㄥ崟瀛樺叆浜嗘祦绋嬪彉閲忎腑鍚庣画浠诲姟澶勭悊鏃堕渶瑕佸睍绀�
-        flowTaskFormDetail(taskId).then(res => {
+        flowTaskFormDetail(processInsId, taskId).then(res => {
           this.formDataList = res.data
           if (this.formDataList && this.formDataList.length > 0) {
             this.$nextTick(() => {

--
Gitblit v1.8.0