|
|
@ -269,6 +269,7 @@ export function useForm(id?: number) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
state.showPrincipal = false |
|
|
|
state.showPrincipal = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
type === 'SSH' || |
|
|
|
type === 'SSH' || |
|
|
|
type === 'ZEPPELIN' || |
|
|
|
type === 'ZEPPELIN' || |
|
|
@ -287,6 +288,8 @@ export function useForm(id?: number) { |
|
|
|
state.showHost = false |
|
|
|
state.showHost = false |
|
|
|
state.showPort = false |
|
|
|
state.showPort = false |
|
|
|
state.showRestEndpoint = true |
|
|
|
state.showRestEndpoint = true |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
state.showRestEndpoint = false |
|
|
|
} |
|
|
|
} |
|
|
|
if ( |
|
|
|
if ( |
|
|
|
type === 'SAGEMAKER' || |
|
|
|
type === 'SAGEMAKER' || |
|
|
@ -299,18 +302,33 @@ export function useForm(id?: number) { |
|
|
|
if (type === 'K8S') { |
|
|
|
if (type === 'K8S') { |
|
|
|
state.showNamespace = true |
|
|
|
state.showNamespace = true |
|
|
|
state.showKubeConfig = true |
|
|
|
state.showKubeConfig = true |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
state.showNamespace = false |
|
|
|
|
|
|
|
state.showKubeConfig = false |
|
|
|
} |
|
|
|
} |
|
|
|
if (type === 'ALIYUN_SERVERLESS_SPARK') { |
|
|
|
if (type === 'ALIYUN_SERVERLESS_SPARK') { |
|
|
|
state.showAccessKeyId = true |
|
|
|
state.showAccessKeyId = true |
|
|
|
state.showAccessKeySecret = true |
|
|
|
state.showAccessKeySecret = true |
|
|
|
state.showRegionId = true |
|
|
|
state.showRegionId = true |
|
|
|
state.showEndpoint = true |
|
|
|
state.showEndpoint = true |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
state.showAccessKeyId = false |
|
|
|
|
|
|
|
state.showAccessKeySecret = false |
|
|
|
|
|
|
|
state.showRegionId = false |
|
|
|
|
|
|
|
state.showEndpoint = false |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
state.showDataBaseName = true |
|
|
|
state.showDataBaseName = true |
|
|
|
state.requiredDataBase = true |
|
|
|
state.requiredDataBase = true |
|
|
|
state.showJDBCConnectParameters = true |
|
|
|
state.showJDBCConnectParameters = true |
|
|
|
state.showPublicKey = false |
|
|
|
state.showPublicKey = false |
|
|
|
|
|
|
|
state.showRestEndpoint = false |
|
|
|
|
|
|
|
state.showNamespace = false |
|
|
|
|
|
|
|
state.showKubeConfig = false |
|
|
|
|
|
|
|
state.showAccessKeyId = false |
|
|
|
|
|
|
|
state.showAccessKeySecret = false |
|
|
|
|
|
|
|
state.showRegionId = false |
|
|
|
|
|
|
|
state.showEndpoint = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|