feat: 腾讯云邮件告警人员入侵,html模板

This commit is contained in:
2026-08-11 12:40:16 +08:00
parent 3035eccf39
commit bb68185898
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>人员入侵告警</title>
</head>
<body style="margin:0;padding:0;background-color:#f3f6fa;font-family:Arial,'Microsoft YaHei','PingFang SC',sans-serif;color:#1f2937;">
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color:#f3f6fa;">
<tr>
<td align="center" style="padding:32px 16px;">
<table role="presentation" width="640" cellspacing="0" cellpadding="0" border="0" style="width:100%;max-width:640px;background-color:#ffffff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;">
<tr>
<td style="padding:24px 32px;background-color:#173b73;">
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="font-size:20px;line-height:28px;font-weight:bold;color:#ffffff;">铁路无人机智能巡检平台</td>
<td align="right" style="font-size:13px;line-height:20px;color:#dbeafe;">安全告警通知</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:32px 32px 20px;">
<div style="font-size:24px;line-height:34px;font-weight:bold;color:#b42318;">人员入侵告警</div>
<div style="padding-top:10px;font-size:14px;line-height:22px;color:#667085;">检测到巡检区域存在未经授权人员,请及时核查并采取安全措施。</div>
</td>
</tr>
<tr>
<td style="padding:0 32px 24px;">
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="border:1px solid #fecdca;background-color:#fff8f7;border-radius:6px;">
<tr>
<td style="padding:16px 20px;font-size:14px;line-height:22px;color:#7a271a;">
<strong>告警级别:</strong>{{alertLevel}}<br>
<strong>告警时间:</strong>{{alertTime}}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:0 32px 8px;font-size:16px;line-height:24px;font-weight:bold;color:#344054;">告警详情</td>
</tr>
<tr>
<td style="padding:0 32px 24px;">
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="font-size:14px;line-height:22px;border-top:1px solid #eaecf0;border-left:1px solid #eaecf0;">
<tr><td width="34%" style="padding:11px 14px;background:#f9fafb;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#667085;">巡检区域</td><td style="padding:11px 14px;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#344054;">{{location}}</td></tr>
<tr><td style="padding:11px 14px;background:#f9fafb;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#667085;">设备名称</td><td style="padding:11px 14px;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#344054;">{{deviceName}}</td></tr>
<tr><td style="padding:11px 14px;background:#f9fafb;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#667085;">目标数量</td><td style="padding:11px 14px;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#344054;">{{targetCount}}</td></tr>
<tr><td style="padding:11px 14px;background:#f9fafb;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#667085;">告警编号</td><td style="padding:11px 14px;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0;color:#344054;">{{alertId}}</td></tr>
</table>
</td>
</tr>
<tr>
<td style="padding:0 32px 28px;">
<div style="padding:16px 18px;background:#f8fafc;border-radius:6px;font-size:14px;line-height:24px;color:#475467;"><strong style="color:#344054;">处置建议:</strong>请立即确认现场情况,通知相关人员撤离或核验权限,并在平台完成告警处置记录。</div>
</td>
</tr>
<tr>
<td style="padding:20px 32px;background:#f8fafc;border-top:1px solid #eaecf0;font-size:12px;line-height:20px;color:#98a2b3;">
本邮件由铁路无人机智能巡检平台自动发送,请勿直接回复。<br>
{{organizationName}} · {{contactPhone}}
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>