|
|
@ -110,8 +110,14 @@ export function useDependencies() { |
|
|
|
if (workflowCode && projectCode) { |
|
|
|
if (workflowCode && projectCode) { |
|
|
|
await queryDependentTasks(projectCode, dependentTaskReq).then( |
|
|
|
await queryDependentTasks(projectCode, dependentTaskReq).then( |
|
|
|
(res: any) => { |
|
|
|
(res: any) => { |
|
|
|
res |
|
|
|
res.data |
|
|
|
.filter((item: any) => item.processDefinitionCode !== workflowCode) |
|
|
|
.filter((item: any) => { |
|
|
|
|
|
|
|
if (item.processDefinitionCode) { |
|
|
|
|
|
|
|
return item.processDefinitionCode !== workflowCode |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
.forEach((item: any) => { |
|
|
|
.forEach((item: any) => { |
|
|
|
dependentTaskLinks.push({ |
|
|
|
dependentTaskLinks.push({ |
|
|
|
text: |
|
|
|
text: |
|
|
|