From cd9cefa2c8a6cc6327bc76488181ec63764a533a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 20 Oct 2024 10:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E3=80=91=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=9A=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E6=84=8F=E8=A7=81=E7=9B=B4=E6=8E=A5=E5=B1=95=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E9=80=9A=E8=BF=87=20tooltip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/ProcessInstanceTimeline.vue | 80 +++++-------------- .../bpm/processInstance/detail/index.vue | 4 +- 2 files changed, 24 insertions(+), 60 deletions(-) diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue b/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue index c7152001..f36afd60 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue @@ -17,42 +17,21 @@
- - - - - - {{ task.assigneeUser.nickname.substring(0, 1) }} - - - + + {{ task.assigneeUser.nickname.substring(0, 1) }} + + - - - - - {{ task.ownerUser.nickname.substring(0, 1) }} - - + :src="task.ownerUser.avatar" + /> + + {{ task.ownerUser.nickname.substring(0, 1) }} +
{{ task.ownerUser.nickname }}
-
@@ -131,20 +106,6 @@ > {{ getApprovalNodeTime(activity) }} - - - @@ -219,8 +180,11 @@ const getApprovalNodeColor = (taskStatus: number) => { } const getApprovalNodeTime = (node: ProcessInstanceApi.ApprovalNodeInfo) => { + if (node.nodeType === NodeType.START_USER_NODE && node.startTime) { + return `发起时间:${formatDate(node.startTime)}` + } if (node.endTime) { - return `结束时间:${formatDate(node.endTime)}` + return `审批时间:${formatDate(node.endTime)}` } if (node.startTime) { return `创建时间:${formatDate(node.startTime)}` diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index 204746c3..ab04d4a9 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -42,7 +42,7 @@
- +
- +