diff --git a/src/views/system/mail/account/account.data.ts b/src/views/system/mail/account/account.data.ts index 69364b510..ae0181068 100644 --- a/src/views/system/mail/account/account.data.ts +++ b/src/views/system/mail/account/account.data.ts @@ -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: {