未验证 提交 9c33c3e6 编写于 作者: A Amy0104 提交者: GitHub

[Fix][UI Next][V1.0.0-Alpha] Fix the Flink Version and App Name not hidden...

[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)
上级 d3cbb011
...@@ -36,6 +36,8 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] { ...@@ -36,6 +36,8 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
model.deployMode === 'cluster' ? 12 : 0 model.deployMode === 'cluster' ? 12 : 0
) )
const appNameSpan = computed(() => (model.deployMode === 'cluster' ? 24 : 0))
const mainJarOptions = ref([]) const mainJarOptions = ref([])
const resources: { [field: string]: any } = {} const resources: { [field: string]: any } = {}
...@@ -118,10 +120,10 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] { ...@@ -118,10 +120,10 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
{ {
type: 'select', type: 'select',
field: 'flinkVersion', field: 'flinkVersion',
span: 12,
name: t('project.node.flink_version'), name: t('project.node.flink_version'),
options: FLINK_VERSIONS, options: FLINK_VERSIONS,
value: model.flinkVersion value: model.flinkVersion,
span: deployModeSpan
}, },
{ {
type: 'input', type: 'input',
...@@ -129,7 +131,8 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] { ...@@ -129,7 +131,8 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
name: t('project.node.app_name'), name: t('project.node.app_name'),
props: { props: {
placeholder: t('project.node.app_name_tips') placeholder: t('project.node.app_name_tips')
} },
span: appNameSpan
}, },
{ {
type: 'input', type: 'input',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册