From a85a740cd5c037de8d62b85edbe204a80c006836 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 10 Oct 2026 13:04:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E5=B8=A7=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=B1=95=E7=A4=BA=E8=A7=86=E7=BA=BF=E8=AF=81?= =?UTF-8?q?=E6=8D=AE=E5=88=86=E6=AD=A7=E4=B8=8E=E4=BA=BA=E5=B7=A5=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/KeyframeValidationHistory.vue | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) 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 }}

暂无校验记录。