fix: 修复监控纳管保存并移除运行概况最近记录
CSS quality / css-quality (push) Has been cancelled

This commit is contained in:
hectorzhao
2026-09-06 20:22:48 +08:00
parent f059674852
commit 4c210723cd
9 changed files with 194 additions and 64 deletions
-23
View File
@@ -115,29 +115,6 @@ export function MonitorRuntimeOverview() {
<div className="surface">
<Table columns={columns} data={channels} rowKey="id" />
</div>
{[
['recentMessages', '最近短信', '/admin/sms-records'],
['recentReceipts', '最近状态报告', '/admin/sms-records'],
['recentUplinks', '最近上行', '/admin/sms-uplink-records'],
].map(([key, label, to]) => (
<div className="surface" key={key}>
<h2>{label}</h2>
<Link to={to}></Link>
<Table
rowKey="id"
data={Array.isArray(monitor[key]) ? (monitor[key] as Record<string, unknown>[]) : []}
columns={[
{ key: 'messageId', title: '消息编号', render: (r) => String(r.messageId ?? r.gatewayMessageId ?? r.id) },
{ key: 'status', title: '状态', render: (r) => String(r.status ?? r.receiptStatus ?? '—') },
{
key: 'time',
title: '时间',
render: (r) => new Date(String(r.queuedAt ?? r.deliveredAt ?? r.createdAt)).toLocaleString('zh-CN'),
},
]}
/>
</div>
))}
</section>
);
}