feat:【system 系统功能】邮箱增加抄送、密送,支持多个

This commit is contained in:
YunaiV
2025-08-05 22:23:29 +08:00
parent 55061b73de
commit d48b78a462
7 changed files with 90 additions and 17 deletions

View File

@@ -91,9 +91,28 @@ export function useGridColumns<T = SystemMailLogApi.MailLog>(
formatter: 'formatDateTime',
},
{
field: 'toMail',
title: '收件邮箱',
minWidth: 160,
field: 'userType',
title: '接收用户',
minWidth: 150,
slots: { default: 'userInfo' },
},
{
field: 'toMails',
title: '接收信息',
minWidth: 300,
formatter: ({ row }) => {
const lines: string[] = [];
if (row.toMails && row.toMails.length > 0) {
lines.push(`收件:${row.toMails.join('、')}`);
}
if (row.ccMails && row.ccMails.length > 0) {
lines.push(`抄送:${row.ccMails.join('、')}`);
}
if (row.bccMails && row.bccMails.length > 0) {
lines.push(`密送:${row.bccMails.join('、')}`);
}
return lines.join('\n');
},
},
{
field: 'templateTitle',