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/08/18 04:34:33 UTC
[dolphinscheduler] branch dev updated: [Fix][UI] Remove unsupported datasource types in the datax task. (#11527)
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 c322367846 [Fix][UI] Remove unsupported datasource types in the datax task. (#11527)
c322367846 is described below
commit c32236784664172426072c49e55def78f9716159
Author: Amy0104 <am...@163.com>
AuthorDate: Thu Aug 18 12:34:21 2022 +0800
[Fix][UI] Remove unsupported datasource types in the datax task. (#11527)
---
.../projects/task/components/node/fields/use-datax.ts | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datax.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datax.ts
index 6c56e5d85b..718e49f952 100644
--- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datax.ts
+++ b/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',