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

This commit is contained in:
pinkhello 2022-07-28 15:03:26 +08:00 committed by GitHub
parent cd0c50f3f2
commit 2e81f30298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -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')

View File

@ -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
}