feat(short-drama-agent-front): 接入草案、首帧证据与审核继续
This commit is contained in:
1 parent
751106985e
commit
d0264c08ce
23 files changed
+990
-170
No files matched your search
@@ -28,7 +28,6 @@ import type {
|
||||
GenerateKeyframeInput,
|
||||
KeyframeReadinessItem,
|
||||
KeyframeSpec,
|
||||
KeyframeGenerationPreview,
|
||||
PromptReadinessItem,
|
||||
VideoGenerationSpec,
|
||||
VideoReadinessItem
|
||||
@@ -48,7 +47,7 @@ import KeyframeValidationHistory from './KeyframeValidationHistory.vue'
|
||||
import { AppDialog } from '../../../components/ui'
|
||||
import ModelCapabilities from './ModelCapabilities.vue'
|
||||
import type { QualityTarget } from '../quality.types'
|
||||
import ImageGenerationPreview from '../../subject-images/components/ImageGenerationPreview.vue'
|
||||
import KeyframeInputDetails from './KeyframeInputDetails.vue'
|
||||
import { visionState } from '../keyframe-vision'
|
||||
import { clearVideoConflict, clearVideoQualification, sessionKeyframePassed, sessionVideoValidation } from '../quality'
|
||||
import { useProjectGenerationRevision } from '../../generation-config/context'
|
||||
@@ -348,19 +347,6 @@ function openShotKeyframeQuality() {
|
||||
}
|
||||
/** 当前查看历史的候选 ID;历史记录在独立弹窗内按候选隔离。 */
|
||||
const historyKeyframeId = ref('')
|
||||
/** 当前会话保留最近一次真实正式预览,只用于相同候选输入的证据展示。 */
|
||||
const latestKeyframePreview = ref<KeyframeGenerationPreview | null>(null)
|
||||
/** 历史候选的实际输入只有指纹完全一致时才能显示。 */
|
||||
const historyInput = computed(() => {
|
||||
const preview = latestKeyframePreview.value
|
||||
const item = keyframes.value.find(candidate => candidate.id === historyKeyframeId.value)
|
||||
return preview &&
|
||||
item &&
|
||||
item.shotId === preview.shotId &&
|
||||
preview.previewFingerprint === item.providerInputFingerprint
|
||||
? preview
|
||||
: null
|
||||
})
|
||||
/** 历史候选画幅或来源失效时保留浏览、禁止人工采用。 */
|
||||
const historyBlocked = computed(() => {
|
||||
const item = keyframes.value.find(candidate => candidate.id === historyKeyframeId.value)
|
||||
@@ -587,7 +573,7 @@ async function setPrimaryKeyframe() {
|
||||
// 晋升前重新读取持久化质量结论,刷新页面后也认可真实历史通过。
|
||||
const [review, history] = await Promise.all([
|
||||
qualityApi.keyframeQualityReview(shotId, keyframeId),
|
||||
qualityApi.keyframeHistory(shotId, keyframeId)
|
||||
qualityApi.keyframeHistory(shotId, keyframeId, undefined, props.projectId)
|
||||
])
|
||||
const vision = visionState(history)
|
||||
if (vision.active || vision.unknown || vision.resumable) throw new Error('审核尚未结算,暂不能设为主首帧。')
|
||||
@@ -760,6 +746,7 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
<!-- 以下是主首帧卡片模块,校验历史通过卡片入口在弹窗内查看 -->
|
||||
<div v-if="currentKeyframe" class="keyframe-grid mt-4">
|
||||
<KeyframeCard
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:review-revision="reviewRevision"
|
||||
:item="currentKeyframe"
|
||||
@@ -1093,6 +1080,7 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
<div v-if="keyframeCandidates.length" class="asset-candidate-grid mt-4">
|
||||
<div v-for="item in keyframeCandidates" :key="item.id" class="min-w-0">
|
||||
<KeyframeCard
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:review-revision="reviewRevision"
|
||||
:item="item"
|
||||
@@ -1170,22 +1158,14 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
description="核对当前候选的生成输入、视觉审核与人工复核。"
|
||||
wide
|
||||
>
|
||||
<!-- 以下是同指纹的实际输入,历史无法取得时如实说明 -->
|
||||
<NCollapse v-if="historyOpen" class="mb-4">
|
||||
<NCollapseItem name="generation" title="当次参考图和画面描述">
|
||||
<ImageGenerationPreview
|
||||
v-if="historyInput"
|
||||
:preview="historyInput"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
<p v-else class="text-xs text-muted">
|
||||
当前无法读取这张图的原始生成输入。可查看候选原图和已有审核记录。
|
||||
</p>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<!-- 以下是按需读取的候选生成证据 -->
|
||||
<KeyframeInputDetails
|
||||
v-if="historyOpen && historyKeyframeId"
|
||||
:key="historyKeyframeId"
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:keyframe-id="historyKeyframeId"
|
||||
/>
|
||||
<KeyframeValidationHistory
|
||||
v-if="historyOpen && historyKeyframeId"
|
||||
:key="historyKeyframeId"
|
||||
@@ -1208,7 +1188,6 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
:disabled="!canGenerateKeyframe"
|
||||
:previous-candidate-ids="keyframes.map(item => item.id)"
|
||||
:submit-generation="generateKeyframe"
|
||||
@previewed="latestKeyframePreview = $event"
|
||||
/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user