feat: 镜头生产区分制作准备与最终成片完成
This commit is contained in:
1 parent
76dc431449
commit
f7a7bf482a
1 file changed
+26
-3
@@ -193,6 +193,24 @@ const invalidGenerationSpecs = computed(
|
||||
(query.data.value?.keyframes.invalidGenerationSpec ?? 0) +
|
||||
(query.data.value?.prompts.invalidGenerationSpec ?? 0)
|
||||
)
|
||||
const preparationComplete = computed(() => {
|
||||
const data = query.data.value
|
||||
if (!data) return false
|
||||
return (
|
||||
data.keyframes.total > 0 &&
|
||||
data.keyframes.skipped === data.keyframes.total &&
|
||||
data.prompts.total > 0 &&
|
||||
data.prompts.skipped === data.prompts.total &&
|
||||
!identityBlocked.value &&
|
||||
!invalidGenerationSpecs.value &&
|
||||
!staleKeyframes.value
|
||||
)
|
||||
})
|
||||
const finalVideosComplete = computed(() => {
|
||||
const data = query.data.value
|
||||
if (!data?.videos.total) return false
|
||||
return data.videos.skipped === data.videos.total && !staleVideos.value && !videoRunning.value
|
||||
})
|
||||
|
||||
/** 父页查询包含整个项目的就绪统计,单镜头变更后立即刷新。 */
|
||||
function refreshProject() {
|
||||
@@ -406,7 +424,7 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
|
||||
<ProductionReceipt v-if="session.receipt" :receipt="session.receipt" />
|
||||
<WorkflowExecutionPanel
|
||||
v-if="promptExecution.executionId.value"
|
||||
title="视频提示词后台任务"
|
||||
title="视频提示词任务"
|
||||
:execution="promptExecution.query.data.value"
|
||||
:loading="promptExecution.query.loading.value"
|
||||
:error="promptExecution.query.error.value"
|
||||
@@ -415,7 +433,7 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
|
||||
/>
|
||||
<WorkflowExecutionPanel
|
||||
v-if="videoExecution.executionId.value"
|
||||
title="视频质量后台任务"
|
||||
title="视频质量任务"
|
||||
:execution="videoExecution.query.data.value"
|
||||
:loading="videoExecution.query.loading.value"
|
||||
:error="videoExecution.query.error.value"
|
||||
@@ -672,7 +690,7 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
|
||||
!query.data.value.videoStatus.failed
|
||||
"
|
||||
acknowledgement
|
||||
description="仅重新提交后端判定可重试的失败视频;不可重试项会跳过,并在回执中显示数量。"
|
||||
description="只重新提交可以重试的失败视频;其他项目会跳过,并在结果中显示数量。"
|
||||
@confirm="run('retry-videos')"
|
||||
/>
|
||||
</div>
|
||||
@@ -709,6 +727,11 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
|
||||
</WorkspaceTools>
|
||||
</div></div
|
||||
></template>
|
||||
<div v-if="preparationComplete" class="workspace-inline-status">
|
||||
<span v-if="finalVideosComplete">本项目镜头素材和视频成片已经准备完成。</span>
|
||||
<span v-else>镜头制作准备已经完成。视频生成费用较高,可按需要逐批提交视频任务。</span>
|
||||
<NButton v-if="!finalVideosComplete" text size="small" @click="toolsOpen = true">打开批量生产</NButton>
|
||||
</div>
|
||||
<NScrollbar v-if="query.error.value" class="workspace-feedback"
|
||||
><NAlert role="alert" type="error" :show-icon="false"
|
||||
>{{ query.error.value
|
||||
|
||||
Reference in new issue
Block a user