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