feat: 交叉验证 AI vs LAMP(#15,一致确认/不一致升级会诊)

This commit is contained in:
weijuesen
2026-08-12 18:00:02 +08:00
parent 6f367d19ae
commit 1798b2909e
9 changed files with 199 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ export interface LampTest {
sampleInfo?: string;
result?: string;
resultImageUrl?: string;
crossStatus?: string;
crossReason?: string;
note?: string;
createdAt?: string;
}
+14
View File
@@ -108,6 +108,20 @@
margin-top: $spacing-xs;
}
.crossOk {
display: block;
font-size: $font-size-xs;
color: $color-success;
margin-top: $spacing-xs;
}
.crossWarn {
display: block;
font-size: $font-size-xs;
color: $color-warning;
margin-top: $spacing-xs;
}
.emptyText {
display: block;
text-align: center;
+7
View File
@@ -156,6 +156,13 @@ const LampPage: React.FC = () => {
</View>
</RadioGroup>
{t.result ? <Text className={styles.resultHint}>{RESULT_LABELS[t.result]}</Text> : null}
{t.crossStatus && t.crossStatus !== 'pending' ? (
<Text className={t.crossStatus === 'consistent' ? styles.crossOk : styles.crossWarn}>
{t.crossStatus === 'consistent'
? '交叉验证:一致(确认诊断)✓'
: `交叉验证:不一致 ⚠ ${t.crossReason || '建议专家会诊'}`}
</Text>
) : null}
<Button className={`${styles.btn} ${styles.btnPrimary}`} onClick={() => handleSaveResult(t)}>
</Button>