Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the deploy mode with an extra client option in FLINK. (#9131)

3.0.0/version-upgrade
Amy0104 2 years ago committed by GitHub
parent
commit
08ea1aa701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-deploy-mode.ts
  2. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts

6
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-deploy-mode.ts

@ -17,14 +17,16 @@
import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types'
export function useDeployMode(span = 24): IJsonItem {
export function useDeployMode(span = 24, showClient = true): IJsonItem {
const { t } = useI18n()
return {
type: 'radio',
field: 'deployMode',
name: t('project.node.deploy_mode'),
options: DEPLOY_MODES,
options: DEPLOY_MODES.filter((option) =>
option.value === 'client' ? showClient : true
),
span
}
}

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts

@ -114,7 +114,7 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
},
options: mainJarOptions
},
useDeployMode(),
useDeployMode(24, false),
{
type: 'select',
field: 'flinkVersion',

Loading…
Cancel
Save