Pre Merge pull request !19 from ZJY/master

pull/19/MERGE
ZJY 2023-06-13 07:08:44 +00:00 committed by Gitee
commit 837176dc29
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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: {