From 7a5765adf7e8c7f0e27c0f6b86474ce0db976b3a Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 10 八月 2025 13:55:52 +0800
Subject: [PATCH] 高师退回人获取

---
 src/api/flow/todolist.js    |   10 +++++++++-
 src/views/flow/todolist.vue |   11 +++++++++--
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/api/flow/todolist.js b/src/api/flow/todolist.js
index 5da2964..9f59320 100644
--- a/src/api/flow/todolist.js
+++ b/src/api/flow/todolist.js
@@ -1,7 +1,7 @@
 /*
  * @Date: 2025-06-12 22:38:05
  * @LastEditors: gaoshp
- * @LastEditTime: 2025-08-10 00:26:43
+ * @LastEditTime: 2025-08-10 13:52:14
  * @FilePath: /mdmweb/src/api/flow/todolist.js
  */
 import request from '@/axios';
@@ -94,4 +94,12 @@
     params: data,
     data: {}
   })
+}
+export const getPrevius = data => {
+  return request({
+    url: '/blade-mdm/flow/previus-approve-user',
+    method: 'get',
+    params: data,
+    data: {}
+  })
 }
\ No newline at end of file
diff --git a/src/views/flow/todolist.vue b/src/views/flow/todolist.vue
index 7a8ff98..d00d514 100644
--- a/src/views/flow/todolist.vue
+++ b/src/views/flow/todolist.vue
@@ -34,7 +34,7 @@
 </template>
 
 <script>
-import { getList, approve, getAssignee,reassgin,manualDispatch,autoDispatch } from '@/api/flow/todolist';
+import { getList, approve, getAssignee,reassgin,manualDispatch,autoDispatch,getPrevius } from '@/api/flow/todolist';
 import { mapGetters } from 'vuex';
 import dayjs from 'dayjs';
 import TodolistLeft from './components/TodolistLeft.vue';
@@ -373,7 +373,14 @@
                 this.formApprove.assignee = ''
                 if (["approveTask", 'seniorApproveTask','replaceApprove'].includes(row.taskDefinitionKey)) {// 楂樺笀瀹℃牳
                     this.optionApprove.column[1].disabled = true;
-                    this.formApprove.assignee = row.varables.assignee; // 濡傛灉鏄�氳繃锛屽垯榛樿鎸囨淳缁欒嚜宸�
+                    getPrevius({processInstanceId: row.processInstanceId}).then(res => {
+                        console.log(res)
+                        if(res.data.code === 200) {
+                            
+                            this.formApprove.assignee = res.data.data // 濡傛灉鏄�氳繃锛屽垯榛樿鎸囨淳缁欒嚜宸�
+                        }
+                    })
+                    
                 }
             }
             

--
Gitblit v1.9.3