diff --git a/src/features/production/components/KeyframeValidationHistory.vue b/src/features/production/components/KeyframeValidationHistory.vue index c41df9c..3546307 100644 --- a/src/features/production/components/KeyframeValidationHistory.vue +++ b/src/features/production/components/KeyframeValidationHistory.vue @@ -30,6 +30,20 @@ const query = useQuery(key, (value, signal) => { return qualityApi.keyframeHistory(shotId, keyframeId, signal) }) /** 仅真实结构化结论可以显示通过,调用完成不等于视觉通过。 */ +/** 复核证据仅在展开历史时读取,不触发 Vision 或写入审核结论。 */ +const reviewQuery = useQuery(key, (value, signal) => { + if (!value) return Promise.resolve(null) + const [, shotId, keyframeId] = JSON.parse(value) as [string | undefined, string, string] + return qualityApi.keyframeQualityReview(shotId, keyframeId, signal) +}) +const review = computed(() => reviewQuery.data.value) +const decisionLabel = (value: string) => ({ + passed: 'AI 校验通过', + failed: 'AI 校验未通过', + needs_review: '需要人工复核', + manual_accepted: '人工已接受', + unknown: '未校验' +})[value] ?? value const records = computed(() => (query.data.value ?? []).map(item => ({ ...item, validation: parseKeyframeValidationOutput(item.output) })) ) @@ -43,8 +57,26 @@ const records = computed(() => description="查看记录不收费;设置主首帧前仍需完成本次检查。" :loading="query.loading.value" :error="query.error.value" - @refresh="query.refresh" + @refresh="() => { query.refresh(); reviewQuery.refresh() }" > +
+

当前质量复核

+

原始模型判定:{{ decisionLabel(review.qualityDecision) }}

+

当前有效状态:{{ decisionLabel(review.effectiveQualityStatus) }}

+

+ 人工审核:{{ review.manualReview.decision === 'accepted' ? '已接受' : '已拒绝' }} + · {{ review.manualReview.reason || '未填写理由' }} +

+

+ 已发现可人工复核的证据分歧;当前仅展示信息,不会自动接受候选。 +

+
+

{{ item.subjectRef }} → {{ item.targetDescription }}:{{ decisionLabel(item.decision) }}

+

结构判断:{{ item.physicalAlignment || '未知' }};独立观察:{{ item.observationCertainty || '未知' }}

+

{{ item.reason }}

+
+
+

{{ reviewQuery.error.value }}

暂无校验记录。