diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-dependent.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-dependent.ts index fc9911800b..10a6fcedfd 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-dependent.ts +++ b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-dependent.ts @@ -258,8 +258,8 @@ export function useDependent(model: { [field: string]: any }): IJsonItem[] { return null const key = `${item.definitionCode}-${item.depTaskCode}-${item.cycle}-${item.dateValue}` const state: ITaskState = dependentResult[key] - return h(NIcon, { size: 24, color: TasksStateConfig[state].color }, () => - h(TasksStateConfig[state].icon) + return h(NIcon, { size: 24, color: TasksStateConfig[state]?.color }, () => + h(TasksStateConfig[state]?.icon) ) } 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) } }) }