【功能完善】工作流:审批详情 approve-nodes => activity-nodes 字段
parent
dca54d0760
commit
d599134de6
|
@ -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[] // 审批节点信息
|
||||
}>()
|
||||
|
||||
// 审批节点
|
||||
|
|
|
@ -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[]>([])
|
||||
/**
|
||||
* 设置表单权限
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue