Pārlūkot izejas kodu

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

Amy0104 3 gadi atpakaļ
vecāks
revīzija
08ea1aa701

+ 4 - 2
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
   }
 }

+ 1 - 1
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',