Browse Source

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

(cherry picked from commit 2e81f30298)
3.0.0/version-upgrade
pinkhello 2 years ago committed by Jiajie Zhong
parent
commit
f7ed6ef850
  1. 4
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-zeppelin.ts
  2. 4
      dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts

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

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

@ -314,8 +314,8 @@ export function formatParams(data: INodeData): {
}
if (data.taskType === 'ZEPPELIN') {
taskParams.noteId = data.zeppelinNoteId
taskParams.paragraphId = data.zeppelinParagraphId
taskParams.noteId = data.noteId
taskParams.paragraphId = data.paragraphId
}
if (data.taskType === 'PIGEON') {

Loading…
Cancel
Save