Browse Source

[Fix][UI] Remove unsupported datasource types in the datax task. (#11527)

3.1.0-release
Amy0104 2 years ago committed by GitHub
parent
commit
c322367846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datax.ts

18
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datax.ts

@ -16,7 +16,7 @@
*/
import { ref, onMounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import {useCustomParams, useDatasource, useResources} from '.'
import { useCustomParams, useDatasource, useResources } from '.'
import type { IJsonItem } from '../types'
export function useDataX(model: { [field: string]: any }): IJsonItem[] {
@ -124,10 +124,16 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
jobSpeedSpan.value = 12
customParameterSpan.value = 0
useResourcesSpan.value = 0
}
}
const supportedDatasourceType = [
'MYSQL',
'POSTGRESQL',
'ORACLE',
'SQLSERVER',
'CLICKHOUSE',
'HIVE'
]
onMounted(() => {
initConstants()
})
@ -147,7 +153,8 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
...useDatasource(model, {
typeField: 'dsType',
sourceField: 'dataSource',
span: datasourceSpan
span: datasourceSpan,
supportedDatasourceType
}),
{
type: 'editor',
@ -175,7 +182,8 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
...useDatasource(model, {
typeField: 'dtType',
sourceField: 'dataTarget',
span: destinationDatasourceSpan
span: destinationDatasourceSpan,
supportedDatasourceType
}),
{
type: 'input',

Loading…
Cancel
Save