Browse Source

邮件新增

main
cs 2 months ago
parent
commit
2632f23dc3
  1. 28
      src/pages/message/my/index.tsx

28
src/pages/message/my/index.tsx

@ -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: [
{

Loading…
Cancel
Save