Browse Source

[Fix] Parameter values disappear when editing Zeppelin task (#11115)

3.1.0-release
pinkhello 2 years ago committed by GitHub
parent
commit
2e81f30298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-zeppelin.ts
  2. 8
      dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts

8
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-zeppelin.ts

@ -24,7 +24,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] {
return [ return [
{ {
type: 'input', type: 'input',
field: 'zeppelinNoteId', field: 'noteId',
name: t('project.node.zeppelin_note_id'), name: t('project.node.zeppelin_note_id'),
props: { props: {
placeholder: t('project.node.zeppelin_note_id_tips') placeholder: t('project.node.zeppelin_note_id_tips')
@ -41,7 +41,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] {
}, },
{ {
type: 'input', type: 'input',
field: 'zeppelinParagraphId', field: 'paragraphId',
name: t('project.node.zeppelin_paragraph_id'), name: t('project.node.zeppelin_paragraph_id'),
props: { props: {
placeholder: t('project.node.zeppelin_paragraph_id_tips') placeholder: t('project.node.zeppelin_paragraph_id_tips')
@ -49,7 +49,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] {
}, },
{ {
type: 'input', type: 'input',
field: 'zeppelinRestEndpoint', field: 'restEndpoint',
name: t('project.node.zeppelin_rest_endpoint'), name: t('project.node.zeppelin_rest_endpoint'),
props: { props: {
placeholder: t('project.node.zeppelin_rest_endpoint_tips') placeholder: t('project.node.zeppelin_rest_endpoint_tips')
@ -66,7 +66,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] {
}, },
{ {
type: 'input', type: 'input',
field: 'zeppelinProductionNoteDirectory', field: 'productionNoteDirectory',
name: t('project.node.zeppelin_production_note_directory'), name: t('project.node.zeppelin_production_note_directory'),
props: { props: {
placeholder: t('project.node.zeppelin_production_note_directory_tips') placeholder: t('project.node.zeppelin_production_note_directory_tips')

8
dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts

@ -328,10 +328,10 @@ export function formatParams(data: INodeData): {
} }
if (data.taskType === 'ZEPPELIN') { if (data.taskType === 'ZEPPELIN') {
taskParams.noteId = data.zeppelinNoteId taskParams.noteId = data.noteId
taskParams.paragraphId = data.zeppelinParagraphId taskParams.paragraphId = data.paragraphId
taskParams.restEndpoint = data.zeppelinRestEndpoint taskParams.restEndpoint = data.restEndpoint
taskParams.productionNoteDirectory = data.zeppelinProductionNoteDirectory taskParams.productionNoteDirectory = data.productionNoteDirectory
taskParams.parameters = data.parameters taskParams.parameters = data.parameters
} }

Loading…
Cancel
Save