feat: 首帧卡片增加查看校验历史入口并移除内嵌区域

This commit is contained in:
GouJ committed 2026-10-10 13:58:48 +08:00
1 parent 43161afaa6
commit fd42d30bfe
1 file changed
+3 -5
@@ -23,7 +23,7 @@ const props = defineProps<{
validationPassed: boolean | null
confirming: boolean
}>()
const emit = defineEmits<{ quality: []; select: []; confirm: []; cancel: [] }>()
const emit = defineEmits<{ quality: []; select: []; confirm: []; cancel: []; history: [] }>()
/** 质量状态以数据库为准;会话内检查仅在历史状态未知时兜底。 */
const reviewKey = computed(() => props.item.status === 'completed'
? JSON.stringify([props.shotId, props.item.id, props.reviewRevision ?? 0]) : '')
@@ -77,6 +77,7 @@ const canSelect = computed(
<NButton text size="small" @click="emit('quality')">
{{ validationPassed === null ? '质量检查' : '重新检查' }}
</NButton>
<NButton v-if="item.status === 'completed'" text size="small" @click="emit('history')">查看首帧校验历史</NButton>
<NButton v-if="canSelect" :disabled="blocked" text size="small" @click="emit('select')">
设为主首帧
</NButton>
@@ -88,10 +89,7 @@ const canSelect = computed(
<NButton text size="small" @click="emit('cancel')">取消</NButton>
</div>
</NAlert>
<!-- 将校验历史嵌入同一张候选卡片,避免形成独立的网格行。 -->
<div v-if="$slots.review" class="mt-3">
<slot name="review" />
</div>
</div>
</div>
</article>
</template>