Browse Source

[Bug] Dependent components cannot be justified and viewed (dependent components cannot be edited and viewed) #14865 (#14868)

Co-authored-by: wanggang <wanggang1@baseus.com>
3.1.7-release
AmriStrong 1 year ago committed by GitHub
parent
commit
47471cd846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-node-status.ts

7
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')) window.$message.success(t('project.workflow.refresh_status_succeeded'))
taskList.value = res.taskList taskList.value = res.taskList
if (taskList.value) { if (taskList.value) {
const allDependentResult = {}
taskList.value.forEach((taskInstance: any) => { taskList.value.forEach((taskInstance: any) => {
setNodeStatus(taskInstance.taskCode, taskInstance.state, taskInstance) setNodeStatus(taskInstance.taskCode, taskInstance.state, taskInstance)
if (taskInstance.dependentResult) { if (taskInstance.dependentResult) {
nodeStore.updateDependentResult( Object.assign(allDependentResult, JSON.parse(taskInstance.dependentResult))
JSON.parse(taskInstance.dependentResult)
)
} }
}) })
nodeStore.updateDependentResult(allDependentResult)
} }
}) })
} }

Loading…
Cancel
Save