未验证 提交 8ebd24a4 编写于 作者: A Amy0104 提交者: GitHub

[Fix][UI Next][V1.0.0-Alpha] Fix the title and alarm group not hidden when the...

[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)
上级 2d444e56
......@@ -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 = [
......
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册