From 7a4a21d0b1832fe173bfa371af9bf7baeddbb036 Mon Sep 17 00:00:00 2001 From: rockfang <657297417@qq.com> Date: Wed, 18 May 2022 18:28:24 +0800 Subject: [PATCH] [Fix][UI] fulfill missing fields in DataQuality (#10098) --- .../projects/task/components/node/format-data.ts | 14 ++++++++++++++ .../views/projects/task/components/node/types.ts | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts index a487d3802e..b7dddd5913 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts +++ b/dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts @@ -279,6 +279,13 @@ export function formatParams(data: INodeData): { operator: data.operator, src_connector_type: data.src_connector_type, src_datasource_id: data.src_datasource_id, + field_length: data.field_length, + begin_time: data.begin_time, + deadline: data.deadline, + datetime_format: data.datetime_format, + enum_list: data.enum_list, + regexp_pattern: data.regexp_pattern, + target_filter: data.target_filter, src_filter: data.src_filter, src_field: data.src_field, src_table: data.src_table, @@ -518,6 +525,13 @@ export function formatModel(data: ITaskData) { params.src_datasource_id = data.taskParams.ruleInputParameter.src_datasource_id params.src_table = data.taskParams.ruleInputParameter.src_table + params.field_length = data.taskParams.ruleInputParameter.field_length + params.begin_time = data.taskParams.ruleInputParameter.begin_time + params.deadline = data.taskParams.ruleInputParameter.deadline + params.datetime_format = data.taskParams.ruleInputParameter.datetime_format + params.target_filter = data.taskParams.ruleInputParameter.target_filter + params.regexp_pattern = data.taskParams.ruleInputParameter.regexp_pattern + params.enum_list = data.taskParams.ruleInputParameter.enum_list params.src_filter = data.taskParams.ruleInputParameter.src_filter params.src_field = data.taskParams.ruleInputParameter.src_field params.statistics_execute_sql = diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/types.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/types.ts index c98ae48a9a..3a9ed284a3 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/types.ts +++ b/dolphinscheduler-ui/src/views/projects/task/components/node/types.ts @@ -198,6 +198,13 @@ interface IRuleParameters { src_connector_type?: number src_datasource_id?: number src_table?: string + field_length?: number + begin_time?: string + deadline?: string + datetime_format?: string + target_filter?: string + regexp_pattern?: string + enum_list?: string src_filter?: string src_field?: string statistics_execute_sql?: string