From c5003221239a527e95f654e8888c3188ad725778 Mon Sep 17 00:00:00 2001 From: zhangjiayu Date: Thu, 1 Jun 2023 12:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E5=BC=80?= =?UTF-8?q?=E5=90=AF=20STARTTLS=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Doutlook=E9=82=AE=E7=AE=B1=E5=8F=91=E9=80=81=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/mail/account/account.data.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) 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: {