feat(short-drama-agent-front): 新增拆解候选与质量修订
This commit is contained in:
1 parent
49ad08a63e
commit
3414cc8232
32 files changed
+2319
-454
No files matched your search
@@ -10,7 +10,7 @@ import WorkspacePage from '../../components/ui/WorkspacePage.vue'
|
||||
import WorkspaceTools from '../../components/ui/WorkspaceTools.vue'
|
||||
import { NScrollbar, NButton, NCheckbox, NInputNumber, NProgress, NSelect, NCollapse, NCollapseItem } from 'naive-ui'
|
||||
import { computed, inject, ref, watch } from 'vue'
|
||||
import { ArrowLeft, CheckCircle2, CircleAlert, Film, Image, MessageSquareText } from '@lucide/vue'
|
||||
import { CheckCircle2, CircleAlert, Film, Image, MessageSquareText } from '@lucide/vue'
|
||||
import { EmptyState, StatusBadge } from '../../components/ui'
|
||||
import BeatShotDirectory from '../storyboard/components/BeatShotDirectory.vue'
|
||||
import ConfirmAction from '../workflows/ConfirmAction.vue'
|
||||
@@ -312,9 +312,6 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
|
||||
从可生成的提示词和首帧,到异步视频任务与最终成片。
|
||||
</p>
|
||||
</div>
|
||||
<RouterLink :to="`/projects/${id}/storyboard`" class="text-button">
|
||||
<ArrowLeft :size="14" />回到分镜设计
|
||||
</RouterLink>
|
||||
</div>
|
||||
<section class="production-batch-config workspace-panel" aria-label="项目生产配置">
|
||||
<div class="production-section-heading">
|
||||
@@ -369,17 +366,11 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
|
||||
当前有
|
||||
{{ identityBlocked }}
|
||||
项角色身份尚未准备完成。请先确认角色母版并完成身份锁定,再生成镜头首帧。
|
||||
<RouterLink :to="`/projects/${id}/subject-identity`" class="text-button ml-2"
|
||||
>前往主体身份 →</RouterLink
|
||||
></ContextNotice
|
||||
>
|
||||
</ContextNotice>
|
||||
<ContextNotice v-if="invalidGenerationSpecs" type="warning" :show-icon="false">
|
||||
当前有
|
||||
{{ invalidGenerationSpecs }}
|
||||
个镜头的设计信息还不完整。请先补齐镜头设计和即时视觉状态。
|
||||
<RouterLink :to="`/projects/${id}/storyboard`" class="text-button ml-2">
|
||||
前往分镜设计 →
|
||||
</RouterLink>
|
||||
</ContextNotice>
|
||||
<ContextNotice v-if="staleKeyframes" role="status" type="info" :show-icon="false">
|
||||
当前有
|
||||
@@ -893,9 +884,7 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
|
||||
v-else-if="query.data.value"
|
||||
title="本集还没有正式镜头"
|
||||
description="先完成剧本拆解和分镜设计,再进入镜头生产。"
|
||||
>
|
||||
<RouterLink :to="`/projects/${id}/storyboard`" class="button button-secondary">前往分镜设计</RouterLink>
|
||||
</EmptyState>
|
||||
/>
|
||||
<p v-else-if="query.loading.value" class="panel mt-5 p-8 text-sm text-muted" role="status">
|
||||
正在检查全项目生产就绪状态……
|
||||
</p>
|
||||
|
||||
@@ -10,7 +10,34 @@ import { ApiError, errorMessage } from '../../lib/http'
|
||||
import { generationConfigApi } from '../generation-config/api'
|
||||
import { productionApi } from './api'
|
||||
import { getProductionSession } from './model'
|
||||
import type { ProductionStartInput, ProductionStage } from './types'
|
||||
import type { ProductionPlan, ProductionStartInput, ProductionStage } from './types'
|
||||
|
||||
/**
|
||||
* 指定续跑阶段会跳过上游生成,必须使用已有有效资产而非可生成数量。
|
||||
* @param plan 后端当前真实生产计划
|
||||
* @param scope 用户选择的本轮执行范围
|
||||
* @returns 与后端续跑门禁一致的阻断原因
|
||||
*/
|
||||
export function productionResumeIssues(
|
||||
plan: Pick<ProductionPlan, 'characterIdentity' | 'subjectImages' | 'keyframes'>,
|
||||
scope: ProductionStartInput
|
||||
): string[] {
|
||||
if (!scope.startFrom) return []
|
||||
const issues: string[] = []
|
||||
const identity = plan.characterIdentity
|
||||
if (!identity || identity.ready !== identity.total) issues.push('指定阶段续跑前,需要全部角色身份确认并锁定。')
|
||||
if (
|
||||
(scope.startFrom === 'keyframes' || scope.startFrom === 'videoPrompts') &&
|
||||
(!plan.subjectImages.total || plan.subjectImages.skipped !== plan.subjectImages.total)
|
||||
)
|
||||
issues.push('指定阶段续跑前,需要全部主体参考图有效且未过期。')
|
||||
if (
|
||||
scope.startFrom === 'videoPrompts' &&
|
||||
(!plan.keyframes.total || plan.keyframes.skipped !== plan.keyframes.total)
|
||||
)
|
||||
issues.push('从视频提示词续跑前,需要全部有效首帧就绪。')
|
||||
return issues
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用后端计划区分可自动补齐和人工阻塞,保留项目归属及活动任务检查。
|
||||
@@ -45,6 +72,7 @@ export async function checkPipeline(projectId: string, scope: ProductionStartInp
|
||||
const issues: string[] = []
|
||||
if (plan.entryReadiness && !plan.entryReadiness.ready)
|
||||
issues.push(plan.entryReadiness.reason || '项目尚未满足生产入口条件。')
|
||||
issues.push(...productionResumeIssues(plan, scope))
|
||||
if (!profile) issues.push('尚未配置项目画布与生成模型,请先在右上角“项目配置”中保存配置。')
|
||||
const shotIds = new Set(plan.details.keyframes.map(item => item.shotId))
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user