diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue b/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue index 6f1e454b..44f289e1 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceTimeline.vue @@ -11,27 +11,31 @@ >
{{ activity.name }}
-
+
- - - {{ task.assigneeUser.nickname.substring(0, 1) }} - - - - {{ task.ownerUser.nickname.substring(0, 1) }} - + + + + + + {{ task.assigneeUser.nickname.substring(0, 1) }} + + + + + + + + {{ task.ownerUser.nickname.substring(0, 1) }} + +
{{ task.ownerUser.nickname }}
+
@@ -134,25 +140,6 @@ import { TaskStatusEnum } from '@/api/bpm/task' import { NodeType } from '@/components/SimpleProcessDesignerV2/src/consts' import { Check, Close, Loading, Clock, Minus, Delete } from '@element-plus/icons-vue' defineOptions({ name: 'BpmProcessInstanceTimeline' }) -// const props = defineProps({ -// // 流程实例编号 -// processInstanceId: { -// type: String, -// required: false, -// default: '' -// }, -// // 流程定义编号 -// processDefinitionId: { -// type: String, -// required: false, -// default: '' -// }, -// approveNodes : { -// type: ProcessInstanceApi.ApprovalNodeInfo[], -// required: false, -// default: '' -// } -// }) defineProps<{ approveNodes: ProcessInstanceApi.ApprovalNodeInfo[] // 审批节点信息 }>() @@ -201,15 +188,6 @@ const statusIconMap = { '7': { color: '#00b32a', icon: Check } } -/** 获得审批详情 */ -// const getApprovalDetail = async () => { -// const data = await ProcessInstanceApi.getApprovalDetail( -// props.processInstanceId, -// props.processDefinitionId -// ) -// approveNodes.value = data.approveNodes -// } - const getApprovalNodeIcon = (taskStatus: number, nodeType: NodeType) => { if (taskStatus == TaskStatusEnum.NOT_START) { return statusIconMap[taskStatus]?.icon @@ -232,15 +210,4 @@ const getApprovalNodeTime = (node: ProcessInstanceApi.ApprovalNodeInfo) => { return `创建时间:${formatDate(node.startTime)}` } } - -/** 重新刷新审批详情 */ -// const refresh = () => { -// getApprovalDetail() -// } - -// defineExpose({ refresh }) - -// onMounted(async () => { -// await getApprovalDetail() -// })