Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the title and alarm group not hidden when the sql type is non query in SQL. (#9157)

3.0.0/version-upgrade
Amy0104 3 years ago committed by GitHub
parent
commit
8ebd24a420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sql-type.ts
  2. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/format-data.ts

4
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 = [

2
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
}

Loading…
Cancel
Save