From 47471cd8465925a54020be13761a07815d6a43b5 Mon Sep 17 00:00:00 2001 From: AmriStrong <15770757077@139.com> Date: Wed, 6 Sep 2023 21:27:51 +0800 Subject: [PATCH] [Bug] Dependent components cannot be justified and viewed (dependent components cannot be edited and viewed) #14865 (#14868) Co-authored-by: wanggang --- .../projects/workflow/components/dag/use-node-status.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-node-status.ts b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-node-status.ts index 058fa770d9..985bf9a494 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-node-status.ts +++ b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-node-status.ts @@ -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) } }) }