增加是否开启 STARTTLS字段,修复outlook邮箱发送报错问题

pull/19/head
zhangjiayu 2023-06-01 12:48:49 +08:00
parent 4c59df63a6
commit c500322123
1 changed files with 25 additions and 0 deletions

View File

@ -35,6 +35,14 @@ export const columns: BasicColumn[] = [
return useRender.renderDict(text, DICT_TYPE.INFRA_BOOLEAN_STRING)
}
},
{
title: '是否开启 STARTTLS',
dataIndex: 'starttlsEnable',
width: 180,
customRender: ({ text }) => {
return useRender.renderDict(text, DICT_TYPE.INFRA_BOOLEAN_STRING)
}
},
{
title: '创建时间',
dataIndex: 'createTime',
@ -71,36 +79,53 @@ export const formSchema: FormSchema[] = [
label: '邮箱',
field: 'mail',
required: true,
labelWidth: 150,
component: 'Input'
},
{
label: '用户名',
field: 'username',
required: true,
labelWidth: 150,
component: 'Input'
},
{
label: '密码',
field: 'password',
required: true,
labelWidth: 150,
component: 'InputPassword'
},
{
label: 'SMTP 服务器域名',
field: 'host',
required: true,
labelWidth: 150,
component: 'Input'
},
{
label: 'SMTP 服务器端口',
field: 'port',
required: true,
labelWidth: 150,
component: 'Input'
},
{
label: '是否开启 SSL',
field: 'sslEnable',
required: true,
labelWidth: 150,
defaultValue: false,
component: 'Switch',
componentProps: {
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean')
}
},
{
label: '是否开启 STARTTLS',
field: 'starttlsEnable',
required: true,
labelWidth: 150,
defaultValue: false,
component: 'Switch',
componentProps: {