【功能完善】工作流:审批详情 approve-nodes => activity-nodes 字段

pull/582/head
YunaiV 2024-10-26 22:55:28 +08:00
parent dca54d0760
commit d599134de6
2 changed files with 9 additions and 6 deletions

View File

@ -3,7 +3,7 @@
<el-timeline class="pt-20px">
<!-- 遍历每个审批节点 -->
<el-timeline-item
v-for="(activity, index) in approveNodes"
v-for="(activity, index) in activityNodes"
:key="index"
size="large"
:icon="getApprovalNodeIcon(activity.status, activity.nodeType)"
@ -107,7 +107,10 @@
</div>
</div>
<div
v-if="task.reason && activity.nodeType === NodeType.USER_TASK_NODE"
v-if="
task.reason &&
[NodeType.USER_TASK_NODE, NodeType.END_EVENT_NODE].includes(activity.nodeType)
"
class="text-#a5a5a5 text-13px mt-1 w-full bg-#f8f8fa p2 rounded-md"
>
审批意见{{ task.reason }}
@ -135,7 +138,7 @@ import endSvg from '@/assets/svgs/bpm/end.svg'
defineOptions({ name: 'BpmProcessInstanceTimeline' })
defineProps<{
approveNodes: ProcessInstanceApi.ApprovalNodeInfo[] //
activityNodes: ProcessInstanceApi.ApprovalNodeInfo[] //
}>()
//

View File

@ -65,7 +65,7 @@
</el-col>
<el-col :span="7">
<!-- 审批记录时间线 -->
<ProcessInstanceTimeline ref="timelineRef" :approve-nodes="approveNodes" />
<ProcessInstanceTimeline ref="timelineRef" :activity-nodes="activityNodes" />
</el-col>
</el-row>
</el-scrollbar>
@ -229,7 +229,7 @@ const getApprovalDetail = async () => {
}
// Timeline
approveNodes.value = data.approveNodes
activityNodes.value = data.activityNodes
//
operationButtonRef.value?.loadTodoTask(data.todoTask)
@ -239,7 +239,7 @@ const getApprovalDetail = async () => {
}
//
const approveNodes = ref<ProcessInstanceApi.ApprovalNodeInfo[]>([])
const activityNodes = ref<ProcessInstanceApi.ApprovalNodeInfo[]>([])
/**
* 设置表单权限
*/