File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
dolphinscheduler-ui/src/views/projects/task/definition Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import {
2525} from '@/service/modules/task-definition'
2626import { formatParams as formatData } from '../components/node/format-data'
2727import type { ITaskData , INodeData , ISingleSaveReq , IRecord } from './types'
28+ import { Connect } from '../../workflow/components/dag/types'
2829
2930export function useTask ( projectCode : number ) {
3031 const initalTask = {
@@ -89,7 +90,14 @@ export function useTask(projectCode: number) {
8990
9091 const onEditTask = async ( row : IRecord , readonly : boolean ) => {
9192 const result = await queryTaskDefinitionByCode ( row . taskCode , projectCode )
92- task . taskData = { ...result , processName : row . processDefinitionCode }
93+ task . taskData = {
94+ ...result ,
95+ processName : row . processDefinitionCode ,
96+ preTasks :
97+ result ?. processTaskRelationList ?. map (
98+ ( item : Connect ) => item . preTaskCode
99+ ) || [ ]
100+ }
93101 task . taskShow = true
94102 task . taskReadonly = readonly
95103 }
You can’t perform that action at this time.
0 commit comments