|
|
|
@ -77,15 +77,14 @@ export function useNodeStatus(options: Options) {
|
|
|
|
|
window.$message.success(t('project.workflow.refresh_status_succeeded')) |
|
|
|
|
taskList.value = res.taskList |
|
|
|
|
if (taskList.value) { |
|
|
|
|
const allDependentResult = {} |
|
|
|
|
taskList.value.forEach((taskInstance: any) => { |
|
|
|
|
setNodeStatus(taskInstance.taskCode, taskInstance.state, taskInstance) |
|
|
|
|
|
|
|
|
|
if (taskInstance.dependentResult) { |
|
|
|
|
nodeStore.updateDependentResult( |
|
|
|
|
JSON.parse(taskInstance.dependentResult) |
|
|
|
|
) |
|
|
|
|
Object.assign(allDependentResult, JSON.parse(taskInstance.dependentResult)) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
nodeStore.updateDependentResult(allDependentResult) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|