feat: 发起流程页面-左侧分类列表只展示有流程的分类

This commit is contained in:
GoldenZqqq
2024-11-19 15:54:52 +08:00
parent 5f2e23f4da
commit caa31a67fe
2 changed files with 25 additions and 6 deletions

View File

@ -162,8 +162,10 @@ const getApprovalDetail = async (row: any) => {
startUserSelectTasks.value = data.activityNodes?.filter(
(node: ApprovalNodeInfo) => CandidateStrategy.START_USER_SELECT === node.candidateStrategy
)
for (const node of startUserSelectTasks.value) {
startUserSelectAssignees.value[node.id] = []
if (startUserSelectTasks.value?.length > 0) {
for (const node of startUserSelectTasks.value) {
startUserSelectAssignees.value[node.id] = []
}
}
// 获取审批节点,显示 Timeline 的数据