This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user