feat: 交叉验证 AI vs LAMP(#15,一致确认/不一致升级会诊)
This commit is contained in:
@@ -11,6 +11,8 @@ export interface LampTest {
|
||||
resultImageUrl?: string;
|
||||
operatorId?: string;
|
||||
resultedAt?: string;
|
||||
crossStatus?: string;
|
||||
crossReason?: string;
|
||||
note?: string;
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,19 @@ function LampTab() {
|
||||
render: (_, r) => <Tag color={r.status === 'resulted' ? 'green' : 'default'}>{STATUS_LABELS[r.status] || r.status}</Tag>,
|
||||
},
|
||||
{ title: '结果', dataIndex: 'result', search: false, render: (_, r) => (r.result ? RESULT_LABELS[r.result] || r.result : '-') },
|
||||
{
|
||||
title: '交叉验证',
|
||||
dataIndex: 'crossStatus',
|
||||
search: false,
|
||||
render: (_, r) =>
|
||||
r.crossStatus === 'consistent' ? (
|
||||
<Tag color="green">一致</Tag>
|
||||
) : r.crossStatus === 'inconsistent' ? (
|
||||
<Tag color="red">不一致</Tag>
|
||||
) : (
|
||||
'-'
|
||||
),
|
||||
},
|
||||
{ title: '创建时间', dataIndex: 'createdAt', search: false, render: (_, r) => (r.createdAt ? dayjs(r.createdAt).format('YYYY-MM-DD HH:mm') : '-') },
|
||||
{
|
||||
title: '操作',
|
||||
@@ -211,6 +224,16 @@ function LampTab() {
|
||||
]}
|
||||
/>
|
||||
</Form.Item>
|
||||
{resultTarget?.crossStatus && resultTarget.crossStatus !== 'pending' ? (
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<Tag color={resultTarget.crossStatus === 'consistent' ? 'green' : 'red'}>
|
||||
{resultTarget.crossStatus === 'consistent' ? '交叉验证:一致' : '交叉验证:不一致'}
|
||||
</Tag>
|
||||
{resultTarget.crossReason ? (
|
||||
<span style={{ marginLeft: 8, color: '#666' }}>{resultTarget.crossReason}</span>
|
||||
) : null}
|
||||
</div>
|
||||
) : null}
|
||||
<Form.Item label="结果照片">
|
||||
<Upload
|
||||
listType="picture-card"
|
||||
|
||||
Reference in New Issue
Block a user