feat: 候选校验历史改为独立弹窗查看

This commit is contained in:
GouJ committed 2026-10-10 13:59:03 +08:00
1 parent 769299df02
commit c5853b9d4c
1 file changed
+28 -11
@@ -219,6 +219,13 @@ function openShotKeyframeQuality() {
}
qualityOpen.value = true
}
/** 当前查看历史的候选 ID;历史记录在独立弹窗内按候选隔离。 */
const historyKeyframeId = ref('')
const historyOpen = ref(false)
function openKeyframeHistory(keyframeId: string) {
historyKeyframeId.value = keyframeId
historyOpen.value = true
}
const confirmingKeyframe = ref('')
const confirmingVideo = ref('')
const inspecting = ref(false)
@@ -277,6 +284,8 @@ watch(key, () => {
qualityTarget.value = null
specsOpen.value = false
confirmingKeyframe.value = ''
historyOpen.value = false
historyKeyframeId.value = ''
confirmingVideo.value = ''
keyframeSpec.value = null
videoSpec.value = null
@@ -870,24 +879,32 @@ async function inspectSpecs() {
:validation-passed="keyframePassed(item.id)"
:confirming="confirmingKeyframe === item.id"
@quality="openQuality('keyframe', item.id)"
@history="openKeyframeHistory(item.id)"
@select="confirmingKeyframe = item.id"
@confirm="setPrimaryKeyframe"
@cancel="confirmingKeyframe = ''"
>
<template v-if="item.status === 'completed'" #review>
<KeyframeValidationHistory
:project-id="projectId"
:shot-id="shot.shotId"
:keyframe-id="item.id"
:disabled="assetBlocked"
@reviewed="refreshAfterReview"
/>
</template>
</KeyframeCard>
/>
</div>
</div>
<p v-else class="text-xs text-muted">暂无其它首帧候选。</p>
</AppDialog>
<AppDialog
v-model:open="historyOpen"
title="首帧校验历史"
description="查看当前候选的质量证据、历史记录和人工复核操作。"
wide
>
<KeyframeValidationHistory
v-if="historyOpen && historyKeyframeId"
:key="historyKeyframeId"
:project-id="projectId"
:shot-id="shot.shotId"
:keyframe-id="historyKeyframeId"
:disabled="assetBlocked"
initial-open
@reviewed="refreshAfterReview"
/>
</AppDialog>
<KeyframeDialog
v-model:open="keyframeOpen"
:shot-id="shot.shotId"