feat: 首帧候选与人工复核按卡片分组展示

This commit is contained in:
GouJ committed 2026-10-10 13:32:59 +08:00
1 parent 81a8c7af71
commit e032dac0fd
1 file changed
+25 -28
@@ -829,37 +829,34 @@ async function inspectSpecs() {
description="先完成质量检查;只有本会话校验通过的候选才能设为主首帧。" description="先完成质量检查;只有本会话校验通过的候选才能设为主首帧。"
wide wide
> >
<!-- 以下是自适应等宽候选图网格模块,完整行与弹窗正文两侧对齐 --> <!-- 候选图片和对应的人工复核入口按相同候选 ID 分组。 -->
<div <div
v-if="keyframeCandidates.length" v-if="keyframeCandidates.length"
class="mt-4 grid grid-cols-[repeat(auto-fill,minmax(220px,1fr))] gap-3 max-[760px]:grid-cols-2" class="mt-4 grid grid-cols-[repeat(auto-fill,minmax(260px,1fr))] items-start gap-3 max-[760px]:grid-cols-1"
> >
<KeyframeCard <div v-for="item in keyframeCandidates" :key="item.id" class="min-w-0">
v-for="item in keyframeCandidates" <KeyframeCard
:key="item.id" :item="item"
:item="item" :shot-no="shot.shotNo"
:shot-no="shot.shotNo" :stale="false"
:stale="false" :blocked="assetBlocked"
:blocked="assetBlocked" :validation-passed="keyframePassed(item.id)"
:validation-passed="keyframePassed(item.id)" :confirming="confirmingKeyframe === item.id"
:confirming="confirmingKeyframe === item.id" @quality="openQuality('keyframe', item.id)"
@quality="openQuality('keyframe', item.id)" @select="confirmingKeyframe = item.id"
@select="confirmingKeyframe = item.id" @confirm="setPrimaryKeyframe"
@confirm="setPrimaryKeyframe" @cancel="confirmingKeyframe = ''"
@cancel="confirmingKeyframe = ''" />
/> <KeyframeValidationHistory
</div> v-if="item.status === 'completed'"
<!-- 候选复核必须针对候选 ID,不能误用当前 Primary 的校验历史。 --> :project-id="projectId"
<div v-if="keyframeCandidates.length" class="mt-4 space-y-3"> :shot-id="shot.shotId"
<KeyframeValidationHistory :keyframe-id="item.id"
v-for="item in keyframeCandidates.filter(candidate => candidate.status === 'completed')" :disabled="assetBlocked"
:key="`review:${item.id}`" class="mt-2"
:project-id="projectId" @reviewed="refreshAll"
:shot-id="shot.shotId" />
:keyframe-id="item.id" </div>
:disabled="assetBlocked"
@reviewed="refreshAll"
/>
</div> </div>
<p v-else class="text-xs text-muted">暂无其它首帧候选。</p> <p v-else class="text-xs text-muted">暂无其它首帧候选。</p>
</AppDialog> </AppDialog>