feat: 交叉验证 AI vs LAMP(#15,一致确认/不一致升级会诊)
This commit is contained in:
@@ -10,6 +10,8 @@ export interface LampTest {
|
||||
sampleInfo?: string;
|
||||
result?: string;
|
||||
resultImageUrl?: string;
|
||||
crossStatus?: string;
|
||||
crossReason?: string;
|
||||
note?: string;
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user