diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sql-type.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sql-type.ts index 225f6449be..1e93c9e208 100644 --- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sql-type.ts +++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sql-type.ts @@ -24,7 +24,9 @@ import type { IJsonItem } from '../types' export function useSqlType(model: { [field: string]: any }): IJsonItem[] { const { t } = useI18n() const querySpan = computed(() => (model.sqlType === '0' ? 6 : 0)) - const emailSpan = computed(() => (model.sendEmail ? 24 : 0)) + const emailSpan = computed(() => + model.sqlType === '0' && model.sendEmail ? 24 : 0 + ) const groups = ref([]) const groupsLoading = ref(false) const SQL_TYPES = [ diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/format-data.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/format-data.ts index 0a0888eb57..5eaa113558 100644 --- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/format-data.ts +++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/format-data.ts @@ -181,7 +181,7 @@ export function formatParams(data: INodeData): { taskParams.postStatements = data.postStatements taskParams.sendEmail = data.sendEmail taskParams.displayRows = data.displayRows - if (data.sendEmail) { + if (data.sqlType === '0' && data.sendEmail) { taskParams.title = data.title taskParams.groupId = data.groupId }