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 3 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 { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types' import type { IJsonItem } from '../types'
export function useDeployMode(span = 24): IJsonItem { export function useDeployMode(span = 24, showClient = true): IJsonItem {
const { t } = useI18n() const { t } = useI18n()
return { return {
type: 'radio', type: 'radio',
field: 'deployMode', field: 'deployMode',
name: t('project.node.deploy_mode'), name: t('project.node.deploy_mode'),
options: DEPLOY_MODES, options: DEPLOY_MODES.filter((option) =>
option.value === 'client' ? showClient : true
),
span 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 options: mainJarOptions
}, },
useDeployMode(), useDeployMode(24, false),
{ {
type: 'select', type: 'select',
field: 'flinkVersion', field: 'flinkVersion',

Loading…
Cancel
Save