From 4d420294eacc83f3a45c01ef15343b17b5785d09 Mon Sep 17 00:00:00 2001
From: yezhaocheng <296988245@qq.com>
Date: Tue, 17 May 2022 14:27:40 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BB=BB=E5=8A=A1=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=20=E6=8E=92=E5=BA=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/bpm/processInstance/detail.vue | 28 +++++++++----------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/yudao-ui-admin/src/views/bpm/processInstance/detail.vue b/yudao-ui-admin/src/views/bpm/processInstance/detail.vue
index 6311ae0a5..f98ff8ef5 100644
--- a/yudao-ui-admin/src/views/bpm/processInstance/detail.vue
+++ b/yudao-ui-admin/src/views/bpm/processInstance/detail.vue
@@ -60,7 +60,7 @@
审批人:{{ item.assigneeUser.nickname }}
{{ item.assigneeUser.deptName }}
-
+
@@ -234,19 +234,19 @@ export default {
// 审批记录
this.tasks = response.data;
// 排序,将未完成的排在前面,已完成的排在后面;
- this.tasks.sort((a, b) => {
- // 有已完成的情况,按照完成时间倒序
- if (a.endTime && b.endTime) {
- return b.endTime - a.endTime;
- } else if (a.endTime) {
- return 1;
- } else if (b.endTime) {
- return -1;
- // 都是未完成,按照创建时间倒序
- } else {
- return b.createTime - a.createTime;
- }
- });
+ // this.tasks.sort((a, b) => {
+ // // 有已完成的情况,按照完成时间倒序
+ // if (a.endTime && b.endTime) {
+ // return b.endTime - a.endTime;
+ // } else if (a.endTime) {
+ // return 1;
+ // } else if (b.endTime) {
+ // return -1;
+ // // 都是未完成,按照创建时间倒序
+ // } else {
+ // return b.createTime - a.createTime;
+ // }
+ // });
// 需要审核的记录
const userId = store.getters.userId;