Skip to content

Commit dca54d0

Browse files
committed
【功能完善】工作流:审批详情界面,增加 end 图标
1 parent d477b35 commit dca54d0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/assets/svgs/bpm/end.svg

Lines changed: 1 addition & 0 deletions
Loading

src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ import auditorSvg from '@/assets/svgs/bpm/auditor.svg'
131131
import copySvg from '@/assets/svgs/bpm/copy.svg'
132132
import conditionSvg from '@/assets/svgs/bpm/condition.svg'
133133
import parallelSvg from '@/assets/svgs/bpm/parallel.svg'
134+
import endSvg from '@/assets/svgs/bpm/end.svg'
134135
135136
defineOptions({ name: 'BpmProcessInstanceTimeline' })
136137
defineProps<{
@@ -189,7 +190,9 @@ const nodeTypeSvgMap = {
189190
// 条件分支节点
190191
[NodeType.CONDITION_NODE]: { color: '#14bb83', svg: conditionSvg },
191192
// 并行分支节点
192-
[NodeType.PARALLEL_BRANCH_NODE]: { color: '#14bb83', svg: parallelSvg }
193+
[NodeType.PARALLEL_BRANCH_NODE]: { color: '#14bb83', svg: parallelSvg },
194+
// 结束节点
195+
[NodeType.END_EVENT_NODE]: { color: '#ffffff', svg: endSvg }
193196
}
194197
195198
// 只有只有状态是 -1、0、1 才展示头像右小角状态小icon
@@ -205,7 +208,11 @@ const getApprovalNodeIcon = (taskStatus: number, nodeType: NodeType) => {
205208
return statusIconMap[taskStatus]?.icon
206209
}
207210
208-
if (nodeType === NodeType.START_USER_NODE || nodeType === NodeType.USER_TASK_NODE) {
211+
if (
212+
nodeType === NodeType.START_USER_NODE ||
213+
nodeType === NodeType.USER_TASK_NODE ||
214+
nodeType === NodeType.END_EVENT_NODE
215+
) {
209216
return statusIconMap[taskStatus]?.icon
210217
}
211218
}

0 commit comments

Comments
 (0)