You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/23 14:07:39 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix the Flink Version and App Name not hidden when the deploy mode is local in FLINK. (#9135)

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 9c33c3e  [Fix][UI Next][V1.0.0-Alpha] Fix the Flink Version and App Name not hidden when the deploy mode is local in FLINK. (#9135)
9c33c3e is described below

commit 9c33c3e692922a416d839d8234029df55eb1c20f
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Wed Mar 23 22:07:34 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha] Fix the Flink Version and App Name not hidden when the deploy mode is local in FLINK. (#9135)
---
 .../src/views/projects/task/components/node/fields/use-flink.ts  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts
index 0286b2d..23bb68b 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts
@@ -36,6 +36,8 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
     model.deployMode === 'cluster' ? 12 : 0
   )
 
+  const appNameSpan = computed(() => (model.deployMode === 'cluster' ? 24 : 0))
+
   const mainJarOptions = ref([])
   const resources: { [field: string]: any } = {}
 
@@ -118,10 +120,10 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
     {
       type: 'select',
       field: 'flinkVersion',
-      span: 12,
       name: t('project.node.flink_version'),
       options: FLINK_VERSIONS,
-      value: model.flinkVersion
+      value: model.flinkVersion,
+      span: deployModeSpan
     },
     {
       type: 'input',
@@ -129,7 +131,8 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
       name: t('project.node.app_name'),
       props: {
         placeholder: t('project.node.app_name_tips')
-      }
+      },
+      span: appNameSpan
     },
     {
       type: 'input',