feat(platform): expose quality issue identity

This commit is contained in:
lingniu
2026-07-03 23:28:10 +08:00
parent 54d74178ea
commit c9e94639d1
6 changed files with 26 additions and 18 deletions

View File

@@ -143,6 +143,8 @@ export interface MileageSummary {
export interface QualityIssueRow {
vin: string;
plate: string;
phone: string;
sourceEndpoint: string;
protocol: string;
issueType: string;
severity: string;

View File

@@ -118,7 +118,7 @@ export function Quality({ onHealthLoaded }: { onHealthLoaded?: (health: OpsHealt
loadSummary(nextFilters);
loadIssues(nextFilters, 1, pagination.pageSize);
}} style={{ marginBottom: 12 }}>
<Form.Input field="keyword" label="关键词" placeholder="手机号 / 来源地址 / 车牌" style={{ width: 240 }} />
<Form.Input field="keyword" label="关键词" placeholder="手机号 / 来源地址 / 车牌" style={{ width: 260 }} />
<Form.Select field="protocol" label="协议" placeholder="全部协议" style={{ width: 160 }}>
<Select.Option value="JT808">JT808</Select.Option>
</Form.Select>
@@ -146,6 +146,8 @@ export function Quality({ onHealthLoaded }: { onHealthLoaded?: (health: OpsHealt
columns={[
{ title: 'VIN', dataIndex: 'vin' },
{ title: '车牌', dataIndex: 'plate' },
{ title: '手机号', dataIndex: 'phone' },
{ title: '来源地址', dataIndex: 'sourceEndpoint' },
{ title: '协议', dataIndex: 'protocol' },
{ title: '问题', dataIndex: 'issueType' },
{ title: '级别', render: (_: unknown, row: QualityIssueRow) => <Tag color={row.severity === 'error' ? 'red' : 'orange'}>{row.severity}</Tag> },