Browse Source

[Fix][UI Next] Fix the corresponding incorrect field.

3.0.0/version-upgrade
labbomb 3 years ago committed by GitHub
parent
commit
209aa0a0bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts
  2. 3
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-pigeon.ts
  3. 3
      dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sub-process.ts

3
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts

@ -28,14 +28,12 @@ import { number } from 'echarts'
export function useChildNode({ export function useChildNode({
model, model,
projectCode, projectCode,
isCreate,
from, from,
processName, processName,
code code
}: { }: {
model: { [field: string]: any } model: { [field: string]: any }
projectCode: number projectCode: number
isCreate: boolean
from?: number from?: number
processName?: number processName?: number
code?: number code?: number
@ -134,7 +132,6 @@ export function useChildNode({
name: t('project.node.child_node'), name: t('project.node.child_node'),
props: { props: {
loading: loading, loading: loading,
disabled: !isCreate,
'on-update:value': onChange 'on-update:value': onChange
}, },
options: options options: options

3
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-pigeon.ts

@ -35,14 +35,13 @@ export function usePigeon({
flag: 'YES', flag: 'YES',
description: '', description: '',
timeoutFlag: false, timeoutFlag: false,
localParams: [],
environmentCode: null, environmentCode: null,
failRetryInterval: 1, failRetryInterval: 1,
failRetryTimes: 0, failRetryTimes: 0,
workerGroup: 'default', workerGroup: 'default',
delayTime: 0, delayTime: 0,
timeout: 30, timeout: 30,
rawScript: '' targetJobName: ''
} as INodeData) } as INodeData)
let extra: IJsonItem[] = [] let extra: IJsonItem[] = []

3
dolphinscheduler-ui-next/src/views/projects/task/components/node/tasks/use-sub-process.ts

@ -42,7 +42,7 @@ export function useSubProcess({
workerGroup: 'default', workerGroup: 'default',
delayTime: 0, delayTime: 0,
timeout: 30, timeout: 30,
rawScript: '' processDefinitionCode: ''
} as INodeData) } as INodeData)
let extra: IJsonItem[] = [] let extra: IJsonItem[] = []
@ -74,7 +74,6 @@ export function useSubProcess({
Fields.useChildNode({ Fields.useChildNode({
model, model,
projectCode, projectCode,
isCreate: !data?.id,
from, from,
processName: data?.processName, processName: data?.processName,
code: data?.code code: data?.code

Loading…
Cancel
Save