From 2e81f3029832f5db76df47b07802fbf5b181e8e2 Mon Sep 17 00:00:00 2001 From: pinkhello Date: Thu, 28 Jul 2022 15:03:26 +0800 Subject: [PATCH] [Fix] Parameter values disappear when editing Zeppelin task (#11115) --- .../projects/task/components/node/fields/use-zeppelin.ts | 8 ++++---- .../views/projects/task/components/node/format-data.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-zeppelin.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-zeppelin.ts index db16b9bbe..540b2a093 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-zeppelin.ts +++ b/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 [ { type: 'input', - field: 'zeppelinNoteId', + field: 'noteId', name: t('project.node.zeppelin_note_id'), props: { placeholder: t('project.node.zeppelin_note_id_tips') @@ -41,7 +41,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] { }, { type: 'input', - field: 'zeppelinParagraphId', + field: 'paragraphId', name: t('project.node.zeppelin_paragraph_id'), props: { placeholder: t('project.node.zeppelin_paragraph_id_tips') @@ -49,7 +49,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] { }, { type: 'input', - field: 'zeppelinRestEndpoint', + field: 'restEndpoint', name: t('project.node.zeppelin_rest_endpoint'), props: { placeholder: t('project.node.zeppelin_rest_endpoint_tips') @@ -66,7 +66,7 @@ export function useZeppelin(model: { [field: string]: any }): IJsonItem[] { }, { type: 'input', - field: 'zeppelinProductionNoteDirectory', + field: 'productionNoteDirectory', name: t('project.node.zeppelin_production_note_directory'), props: { placeholder: t('project.node.zeppelin_production_note_directory_tips') diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts index 7feda203f..b6f24d404 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts +++ b/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts @@ -328,10 +328,10 @@ export function formatParams(data: INodeData): { } if (data.taskType === 'ZEPPELIN') { - taskParams.noteId = data.zeppelinNoteId - taskParams.paragraphId = data.zeppelinParagraphId - taskParams.restEndpoint = data.zeppelinRestEndpoint - taskParams.productionNoteDirectory = data.zeppelinProductionNoteDirectory + taskParams.noteId = data.noteId + taskParams.paragraphId = data.paragraphId + taskParams.restEndpoint = data.restEndpoint + taskParams.productionNoteDirectory = data.productionNoteDirectory taskParams.parameters = data.parameters } -- GitLab