Browse Source

[Fix-16783][Datasource] Fix switching multiple data sources, displaying field errors (#16784)

* Switching multiple data sources, displaying field errors

* fix

---------

Co-authored-by: xiangzihao <460888207@qq.com>
dev
小可耐 2 weeks ago committed by GitHub
parent
commit
5e2abd7442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 18
      dolphinscheduler-ui/src/views/datasource/list/use-form.ts

18
dolphinscheduler-ui/src/views/datasource/list/use-form.ts

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

Loading…
Cancel
Save