|
|
@ -81,7 +81,14 @@ const MdwMessage = () => { |
|
|
|
)) |
|
|
|
} |
|
|
|
</Select> |
|
|
|
}, |
|
|
|
formItemProps: { |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: t(`${i18nPrefix}.columns.type`, '通道类型'), |
|
|
@ -121,6 +128,24 @@ const MdwMessage = () => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: t(`${i18nPrefix}.columns.email_from`, '发件人邮箱'), |
|
|
|
dataIndex: 'email_from', |
|
|
|
valueType: 'text', |
|
|
|
fieldProps: { |
|
|
|
maxLength: 100, |
|
|
|
showCount: true, |
|
|
|
}, |
|
|
|
formItemProps: { |
|
|
|
hidden: templateType != 'EMAIL', |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
required: templateType == 'EMAIL', |
|
|
|
message: t('message.required', '模板内容必填') |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: t(`${i18nPrefix}.columns.title`, '标题'), |
|
|
|
dataIndex: 'title', |
|
|
|
valueType: 'text', |
|
|
@ -130,7 +155,6 @@ const MdwMessage = () => { |
|
|
|
disabled: true, |
|
|
|
}, |
|
|
|
formItemProps: { |
|
|
|
tooltip: '支持邮件类型', |
|
|
|
hidden: templateType != 'EMAIL', |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|