diff --git a/AGENTS.md b/AGENTS.md
index 5347439..3d8e19f 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -39,6 +39,9 @@
- 英文技术术语优先改成易懂的中文,例如 `Checkpoint` 用“保存记录”、`Storyboard` 用“分镜”、`Prompt` 用“画面描述”或“提示词”、`Thinking` 用“深度思考”。不要把内部字段名、错误码、任务标识直接作为主要说明。
- 接口返回的系统提示也需要在展示层转换为可读中文;错误详情只提取有助于操作的业务原因,不把调试对象、堆栈或整段原始数据直接输出给用户。原始错误和错误码保留在数据层,不改动业务判断依据。
- 只调整展示文案,不翻译或改写请求字段、枚举值、接口地址、用户创作的剧本与提示词正文、文件名、自定义名称或模型品牌。分类等内部值使用中文选项展示,提交仍保留真实取值。
+- 用短句直说结果和下一步。同一个意思只写一次;标题和按钮已说明用途时,删掉重复说明。提示一行能说清就不写成段落,必需的限制和费用信息要保留。
+- 导航只显示名称。禁用原因放到可通过悬停和键盘聚焦查看的提示里,菜单行高保持一致。
+- 问题提示放在能直接处理它的页面。素材图库不常驻展示下游镜头的生产警告和列表;从镜头主动定位素材时,只保留定位所需的信息与返回入口。普通浏览不发仅供该定位使用的全项目检查请求。
- 费用、覆盖、删除、适用范围与待审核限制必须保留并说清楚,不能为了简化文字改变功能含义。无法确认的能力不要用容易误解的描述代替。
- 必要的原始技术数据放在默认收起的“高级详情”或导出结果中,日常操作先展示中文摘要。同一弹窗的操作统一放入公共 `footer`,避免正文操作与默认关闭按钮重复。
@@ -56,17 +59,18 @@
- 页面外边距、模块间距优先复用 `--app-content-padding`、`--app-content-gap`;表单与抽屉内部复用对应公共组件的间距,不在各页面随意添加不同数值。
- 同级模块使用一致的标题、说明、字段间距和上下留白。需要说明时采用“模块标题 + 一句简短说明”,例如画布设置、图片配置、视频配置、动作与物理规则;优先复用 `WorkspaceSectionHeading`。
+- 页面、弹窗和抽屉中的同级模块共用左右边界。普通分区直接对齐;需要突出一组内容时,优先用已有的中性背景包住整组内容。背景外沿与相邻模块对齐,组内使用统一内边距,避免透明容器单独缩进。
- 新建剧本等长表单默认每个字段单独占一行并铺满内容宽度;不因改成全屏就自动把原来的字段挤成两列。
- 图片、视频等已有明确分组的并列模块可以保留协调的分栏,窄屏改为单列;同一行的标签、控件及操作必须分别对齐,不能因说明或校验消息出现而上下错位。
- 行内按钮按输入控件本身的基线对齐,不能按包含标签的整块区域垂直居中。动态例外行中的移除按钮与输入框底部对齐,使用 `Trash2` 等现有图标,不再显示“移除”文字,并提供可访问名称。
-- 项目生成配置等普通表单分区不铺大块背景色,使用标题、说明和统一间距组织;错误、成功等有明确状态含义的提示区域才使用对应柔和底色。
+- 项目生成配置等普通表单分区不铺大块背景色,使用标题、说明和统一间距组织;常规错误沿用中性底色,只有明确的严重错误或通过检查的成功状态才使用对应状态底色。
### 按钮、图标与状态颜色
- 绿色背景、白色文字用于保存、提交、开始生成等主要执行操作;关闭、取消和普通辅助操作使用中性样式。
-- 错误、校验未通过、需要修复的区域使用柔和浅红背景,深色主题使用对应柔和深红底面。禁止使用上下两条绿色横线表示错误或待修复状态,也不能借用绿色选中态来标记错误。
-- 普通镜头定位仅使用中性提示,不能因点击“定位镜头”就标红;只有从当前明确问题定位时才使用错误底色,正文刷新后清除旧定位标记。
-- 错误入口按钮的文字、图标和焦点提示与红色底面保持一致;默认、悬停、按下、聚焦各状态都不能被主题主色覆盖成绿色。保留清晰的键盘焦点提示。
+- 普通请求失败、表单校验、审核未通过和可修复问题默认使用中性底面,配合短文字、图标或细线提示。红色底面只用于明确需要立即关注的严重错误,例如任务中断且可能重复计费。保留深浅主题对应的柔和状态色。
+- 普通镜头定位使用中性提示。从明确问题定位时,可加细线标记;正文刷新后清除旧标记。
+- 错误入口按钮使用中性底面,文字、图标和焦点保留错误语义。默认、悬停、按下和聚焦时保持清晰的键盘焦点与状态反馈。
- 只有执行完成且结果明确通过校验时,成功任务区域才使用柔和浅绿背景。执行结束但校验失败、质量待审或结果未确认时,不能显示成绿色成功状态,也不能用满格绿色进度条暗示业务成功。
- 卡片内的定位、复查、修订和历史入口使用带图标、独立中性底面的按钮,不添加边框,不能与说明文字混在一起;复用 `workspace-action-button` / `workspace-action-group`,不把辅助操作改成绿色主按钮。
- 工具栏中相邻按钮保持一致的高度、内边距、图标大小和间距。问题入口使用图标加文字;分镜结构校验失败时文案为“分镜校验未通过”,其他问题按真实类型命名。
@@ -102,6 +106,9 @@
- 涉及页面或交互的改动,必须在已有本地 Chrome 标签页使用 `localhost` 验证后才算完成,不能只根据代码、构建或 DOM 测试声称布局通过。
- 验证本次改动涉及的桌面、移动端、长内容滚动、固定底栏及必要的加载、错误、成功状态;检查普通、悬停和键盘聚焦时的颜色、对齐与可访问名称。
+- 页面模块之间复用公共间距;按钮、标题和辅助说明须有清晰留白。已有相邻页面使用骨架屏时,同类入口也应在项目加载和正文加载阶段预留相同结构。
+- 骨架与图片占位默认静态显示,避免闪动。图库按真实卡片结构分别预留图片、文字和操作位置。
+- 图片卡片在请求图片前就预留画面区域,优先用已有宽高,缺少宽高时使用稳定比例。检查慢速、加载失败和无图时卡片都不会塌陷。
- 界面验收不得为了制造状态而触发真实付费生成、覆盖正式结果或提交用户数据;使用现有状态、只读操作和合适的自动化测试验证。
- 测试与检查按改动范围执行;纯文档变更无需启动页面或重复完整构建。报告时区分自动化检查与真实浏览器验证,并明确未完成项,不把尝试操作当作验收通过。
diff --git a/src/App.vue b/src/App.vue
index 9800e90..0665a5a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -9,6 +9,7 @@ import {
NLayout,
NLayoutHeader,
NMenu,
+ NTooltip,
NScrollbar,
zhCN,
dateZhCN,
@@ -120,6 +121,9 @@ function createMenuIcon(icon: typeof FolderOpen) {
return () => h('span', { class: 'admin-menu-icon' }, [h(icon, { size: NAV_ICON_SIZE })])
}
+/** 禁用原因由同一个提示响应鼠标和键盘,菜单不额外占行。 */
+const blockedMenuHint = ref(null)
+
/** 菜单链接使用 RouterLink,保留新标签打开和浏览器导航行为。 */
const menuOptions = computed(() => {
return [
@@ -147,16 +151,33 @@ const menuOptions = computed(() => {
label: () =>
disabled
? h(
- 'span',
+ NTooltip,
{
- class: 'admin-menu-label admin-menu-label-blocked',
- title: reason,
- 'aria-label': `${label},${reason}`,
- 'aria-disabled': 'true'
+ placement: 'right',
+ trigger: 'manual',
+ show: blockedMenuHint.value === target
},
- sectionAccess
- ? [h('span', label), h('small', { class: 'admin-menu-reason' }, reason)]
- : label
+ {
+ trigger: () =>
+ h(
+ 'span',
+ {
+ class: 'admin-menu-label',
+ tabindex: 0,
+ onMouseenter: () => (blockedMenuHint.value = target),
+ onMouseleave: () => (blockedMenuHint.value = null),
+ onFocus: () => (blockedMenuHint.value = target),
+ onBlur: () => (blockedMenuHint.value = null),
+ onKeydown: (event: KeyboardEvent) => {
+ if (event.key === 'Escape') blockedMenuHint.value = null
+ },
+ 'aria-label': `${label},${reason}`,
+ 'aria-disabled': 'true'
+ },
+ label
+ ),
+ default: () => reason
+ }
)
: h(RouterLink, { to: target }, () =>
h('span', { class: 'admin-menu-label' }, label)
@@ -275,7 +296,7 @@ const menuOptions = computed(() => {
-
+
- 服务地址
-
@@ -373,20 +394,6 @@ const menuOptions = computed(() => {
color 0.18s ease,
opacity 0.18s ease;
}
-/* 保留菜单行高,在禁用项名称下展示当前步骤的简短原因。 */
-.admin-menu-label-blocked {
- display: block;
- line-height: 16px;
- min-width: 0;
-}
-.admin-menu-reason {
- display: block;
- font-size: 10px;
- line-height: 14px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
.admin-brand {
@apply flex shrink-0 items-center gap-3 h-[74px] overflow-hidden py-0 px-5 text-ink whitespace-nowrap;
min-width: var(--admin-sider-expanded);
diff --git a/src/components/ui/ContextNotice.vue b/src/components/ui/ContextNotice.vue
index 4b8fedd..42bbf9d 100644
--- a/src/components/ui/ContextNotice.vue
+++ b/src/components/ui/ContextNotice.vue
@@ -12,15 +12,20 @@ withDefaults(
title?: string
/** 重要注意事项复用项目主题底面、图标与醒目标题,普通说明保持原有紧凑样式。 */
emphasized?: boolean
+ /** 仅在明确的严重错误中使用警示底色。 */
+ critical?: boolean
}>(),
- { type: 'info', showIcon: true, emphasized: false }
+ { type: 'info', showIcon: true, emphasized: false, critical: false }
)
svg {
diff --git a/src/components/ui/EmptyState.vue b/src/components/ui/EmptyState.vue
index c818d70..fd536f9 100644
--- a/src/components/ui/EmptyState.vue
+++ b/src/components/ui/EmptyState.vue
@@ -2,13 +2,18 @@
import { NEmpty } from 'naive-ui'
import { FileText } from '@lucide/vue'
/** 没有数据时展示真实空态,不创建虚构项目或结果。 */
-defineProps<{ title: string; description: string }>()
+defineProps<{
+ /** 当前状态。 */
+ title: string
+ /** 标题之外确实有必要的补充说明。 */
+ description?: string
+}>()
- {{ description }}
+ {{ description }}
diff --git a/src/components/ui/RevealImage.vue b/src/components/ui/RevealImage.vue
index c6c213d..ea1dd6d 100644
--- a/src/components/ui/RevealImage.vue
+++ b/src/components/ui/RevealImage.vue
@@ -36,7 +36,7 @@ function reset() {
loaded.value = false
}
-/** 图片加载完成后直接切换为淡入状态。 */
+/** 图片加载完成后用原图替换静态占位。 */
function reveal() {
loaded.value = true
}
@@ -85,7 +85,6 @@ watch(() => props.src, reset)
/* 所有图片从顶部展示,裁切缩略图时优先保留人物头部。 */
object-position: center top;
opacity: 0;
- transition: opacity 220ms cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-image.is-loaded > .n-image img {
opacity: 1;
@@ -93,21 +92,5 @@ watch(() => props.src, reset)
.reveal-image-placeholder {
@apply absolute inset-0 pointer-events-none;
background-color: var(--app-control);
- animation: reveal-image-pulse 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
-}
-@keyframes reveal-image-pulse {
- from {
- opacity: 0.72;
- }
- to {
- opacity: 1;
- }
-}
-@media (prefers-reduced-motion: reduce) {
- .reveal-image > .n-image img,
- .reveal-image-placeholder {
- animation: none;
- transition: none;
- }
}
diff --git a/src/components/ui/StatusBadge.vue b/src/components/ui/StatusBadge.vue
index 8842703..1cb52c6 100644
--- a/src/components/ui/StatusBadge.vue
+++ b/src/components/ui/StatusBadge.vue
@@ -6,6 +6,20 @@ import { statusLabels } from '../../lib/format'
import type { ProjectStatus } from '../../features/projects/types'
/** 状态使用 Naive 标签,同时保留文本,避免仅依赖颜色区分。 */
const props = defineProps<{ status: string; label?: string }>()
+/** 素材和任务的公开状态不参与项目筛选选项。 */
+const workflowStatusLabels: Record = {
+ running: '进行中',
+ pending: '等待中',
+ queued: '排队中',
+ processing: '处理中',
+ submitted: '已提交',
+ failed: '失败',
+ cancelled: '已取消',
+ ready: '已就绪',
+ blocked: '暂不可用',
+ unlocked: '未锁定',
+ candidate_pending: '待确认候选'
+}
/** 仅真实执行状态显示旋转图标,锁定或待确认状态不冒充加载。 */
const running = computed(() =>
['running', 'generating', 'pending', 'queued', 'processing', 'submitted'].includes(props.status)
@@ -23,6 +37,6 @@ const type = computed(() =>
{{ label || statusLabels[status as ProjectStatus] || status }}{{ label || workflowStatusLabels[status] || statusLabels[status as ProjectStatus] || '待确认' }}
diff --git a/src/composables/useQuery.ts b/src/composables/useQuery.ts
index d666385..565e468 100644
--- a/src/composables/useQuery.ts
+++ b/src/composables/useQuery.ts
@@ -18,18 +18,20 @@ export function useQuery(key: Ref, loader: (key: string, signal: Abor
async function refresh() {
if (disposed) return
const current = ++generation
+ const target = key.value
controller?.abort()
controller = new AbortController()
const signal = controller.signal
loading.value = true
try {
- const result = await loader(key.value, signal)
- if (current !== generation || disposed) return
+ const result = await loader(target, signal)
+ if (current !== generation || target !== key.value || disposed) return
data.value = result
error.value = ''
updatedAt.value = new Date().toISOString()
} catch (cause) {
- if (current === generation && !signal.aborted && !disposed) error.value = errorMessage(cause)
+ if (current === generation && target === key.value && !signal.aborted && !disposed)
+ error.value = errorMessage(cause)
} finally {
if (current === generation && !disposed) loading.value = false
}
diff --git a/src/composables/useTheme.ts b/src/composables/useTheme.ts
index 5dcf51d..4d5fdda 100644
--- a/src/composables/useTheme.ts
+++ b/src/composables/useTheme.ts
@@ -231,6 +231,8 @@ export function useTheme() {
},
Tag: {
textColorPrimary: accentText,
+ // 错误标签用文字区分状态,底面保持中性。
+ colorError: subtle,
border: 'none',
borderPrimary: 'none',
borderInfo: 'none',
diff --git a/src/features/breakdown/BreakdownPage.vue b/src/features/breakdown/BreakdownPage.vue
index 11b601e..d5cab45 100644
--- a/src/features/breakdown/BreakdownPage.vue
+++ b/src/features/breakdown/BreakdownPage.vue
@@ -1,4 +1,6 @@
@@ -157,16 +180,22 @@ function rollbackLabel(target: VideoQualityRollbackTarget) {
:show-icon="false"
>
镜头最近一次质量流程的修改建议
- {{ analysis.summary }}
+ {{
+ analysis.persistentIssues?.length
+ ? `有 ${analysis.persistentIssues.length} 类问题反复出现。`
+ : '暂无重复问题。'
+ }}
建议检查:{{ analysis.recommendedRollback.map(rollbackLabel).join('、') }}
- {{ issue.type }} · 出现 {{ issue.occurrences }} 次
- {{ issue.suspectedCause }}
+ {{ issueTypeLabels[issue.type] ?? '其他画面问题' }} · 出现 {{ issue.occurrences }} 次
+ {{ userFacingText(issue.suspectedCause) }}
- - {{ description }}
+ -
+ {{ userFacingText(description) }}
+
diff --git a/src/features/production/model.ts b/src/features/production/model.ts
index 2c2767b..7415aec 100644
--- a/src/features/production/model.ts
+++ b/src/features/production/model.ts
@@ -84,7 +84,7 @@ export function issueLabel(code: ProductionIssueCode): string {
/**
* 将生产任务状态转换为中文标签,包含首帧与视频的生成中状态。
* @param status 后端返回的生产任务状态
- * @returns 状态对应的中文名称,未知状态保留原值
+ * @returns 状态对应的中文名称,未知状态显示待确认
*/
export function productionStatusLabel(status: string): string {
const labels: Record = {
@@ -99,9 +99,11 @@ export function productionStatusLabel(status: string): string {
completed: '已完成',
failed: '失败',
cancelled: '已取消',
+ submitted: '已提交',
+ processing: '处理中',
not_started: '未开始'
}
- return labels[status] ?? status
+ return labels[status] ?? '待确认'
}
/** 视频质量链状态标签与后端状态机保持一致。 */
@@ -115,5 +117,5 @@ export function videoQualityStatusLabel(status: string): string {
exhausted: '自动修复次数已用完',
stale_motion_plan: '动作版本过期,质量流程已停止'
}
- return labels[status] ?? status
+ return labels[status] ?? '待确认'
}
diff --git a/src/features/production/useAdvancedProduction.ts b/src/features/production/useAdvancedProduction.ts
index a0bbb00..f89ebc1 100644
--- a/src/features/production/useAdvancedProduction.ts
+++ b/src/features/production/useAdvancedProduction.ts
@@ -76,8 +76,8 @@ export async function checkPipeline(projectId: string, scope: ProductionStartInp
imageGenerationOptions: { ...profile.imageOptions },
videoGenerationOptions: { ...profile.videoOptions }
}
- const [checkpoints, forms, plan, status] = await Promise.all([
- projectsApi.checkpoints(projectId),
+ const [summaries, forms, plan, status] = await Promise.all([
+ projectsApi.checkpointSummaries(projectId),
subjectImagesApi.listForms(projectId),
productionApi.plan(projectId, undefined, providers),
productionApi.status(projectId)
@@ -111,7 +111,7 @@ export async function checkPipeline(projectId: string, scope: ProductionStartInp
)
issues.push('各阶段资产列表不一致,可能正在重新拆解,请刷新后重试。')
if (project.status !== 'completed') issues.push('剧本尚未完成,请先完成剧本创作。')
- if (hasRunningWorkflow(checkpoints)) issues.push('项目仍有后台任务或工作流进行中。')
+ if (hasRunningWorkflow(summaries)) issues.push('项目仍有后台任务或工作流进行中。')
if (!forms.length || !plan.keyframes.total) issues.push('尚无正式形态或镜头,请先完成拆解和分镜。')
if (forms.some(form => hasRunningImages(form.images))) issues.push('形态图片仍在生成中。')
if (
@@ -191,6 +191,7 @@ export function useAdvancedProduction() {
operation.value.pending ||
execution.active.value ||
!!context.error.value ||
+ context.summaryBlocked.value ||
context.project.value?.status !== 'completed'
)
let version = 0
@@ -275,7 +276,8 @@ export function useAdvancedProduction() {
disposed ||
id.value !== projectId ||
context.project.value?.status !== 'completed' ||
- context.error.value
+ context.error.value ||
+ context.summaryBlocked.value
)
return
if (JSON.stringify(result.input) !== confirmedInput) {
diff --git a/src/features/production/useProduction.ts b/src/features/production/useProduction.ts
index 300f9a2..c743a4a 100644
--- a/src/features/production/useProduction.ts
+++ b/src/features/production/useProduction.ts
@@ -20,6 +20,8 @@ export type ProductionCommand = 'prompts' | 'keyframes' | 'videos' | 'retry-vide
/** 镜头生产页的查询、筛选、就绪状态与批量操作。 */
export function useProduction() {
const context = useProjectContext()
+ /** 制作正文只使用正式采用的拆解记录。 */
+ const breakdownRecords = context.useWorkflowCheckpoints('breakdown')
/** 当前工作区的响应式状态或派生业务条件。 */
const id = computed(() => context.project.value?.id ?? '')
/** 两个镜头工作区共用地址选择,刷新恢复同一正式镜头。 */
@@ -43,7 +45,7 @@ export function useProduction() {
/** 当前工作区的响应式状态或派生业务条件。 */
const videoInputMode = ref('all')
/** 生产页只关联正式镜头和正式正文,未提交候选不能补入当前资产。 */
- const snapshot = computed(() => formalBreakdownSnapshot(context.checkpoints.value))
+ const snapshot = computed(() => formalBreakdownSnapshot(breakdownRecords.data.value ?? []))
/** 当前工作区的响应式状态或派生业务条件。 */
const sourceEpisodes = computed(
() => snapshot.value?.storyboardEpisodeShots ?? snapshot.value?.breakdownResult?.storyboardEpisodeShots ?? []
@@ -168,6 +170,10 @@ export function useProduction() {
promptExecution.active.value ||
videoExecution.active.value ||
!!context.error.value ||
+ context.summaryBlocked.value ||
+ breakdownRecords.loading.value ||
+ !!breakdownRecords.error.value ||
+ breakdownRecords.data.value === null ||
!!query.error.value ||
!query.data.value ||
context.project.value?.status !== 'completed'
@@ -296,6 +302,7 @@ export function useProduction() {
videoStatusItem,
query,
episodeSourceUnavailable,
+ breakdownRecords,
operation,
session,
concurrency,
diff --git a/src/features/production/useQuality.ts b/src/features/production/useQuality.ts
index 8ab4fb6..0d12c2c 100644
--- a/src/features/production/useQuality.ts
+++ b/src/features/production/useQuality.ts
@@ -155,14 +155,14 @@ export function useQuality(
: '首帧自动修复'
: '视觉质量校验',
async () => {
- const [project, readiness, checkpoints] = await Promise.all([
+ const [project, readiness, summaries] = await Promise.all([
projectsApi.detail(projectId),
productionApi.keyframeReadiness(projectId, target.kind === 'batch' ? input.force : true),
- projectsApi.checkpoints(projectId)
+ projectsApi.checkpointSummaries(projectId)
])
if (project.id !== projectId || project.status !== 'completed')
throw new Error('剧本未完成或项目已变化,未提交质量任务。')
- if (hasRunningWorkflow(checkpoints)) throw new Error('项目还有后台任务,请结束后再执行质量检查。')
+ if (hasRunningWorkflow(summaries)) throw new Error('项目还有后台任务,请结束后再执行质量检查。')
if (
!Array.isArray(readiness.items) ||
readiness.items.length !== readiness.total ||
diff --git a/src/features/project-assets/AssetLibraryPage.vue b/src/features/project-assets/AssetLibraryPage.vue
index f5a87ce..e14a288 100644
--- a/src/features/project-assets/AssetLibraryPage.vue
+++ b/src/features/project-assets/AssetLibraryPage.vue
@@ -394,12 +394,7 @@ async function refreshLibrary() {
-
+
-
+
删除素材
- 删除后图片文件也会移除。正在用于视觉风格的素材需要先取消引用,才能删除。
+ 删除会移除图片文件。风格参考图需先取消引用。
取消
diff --git a/src/features/project-assets/ProjectAssetsPage.vue b/src/features/project-assets/ProjectAssetsPage.vue
index c5fba4d..b329312 100644
--- a/src/features/project-assets/ProjectAssetsPage.vue
+++ b/src/features/project-assets/ProjectAssetsPage.vue
@@ -291,7 +291,7 @@ watch(projectId, () => {
删除
- 删除后图片文件也会移除。正在用于视觉风格的素材需要先取消引用,才能删除。
+ 删除会移除图片文件。风格参考图需先取消引用。
@@ -310,12 +310,7 @@ watch(projectId, () => {
-
+
{
-
+
= {
overall: '综合',
character: '人物',
scene: '场景',
+ 'scene-layout': '场景布局',
prop: '道具',
reference: '参考素材',
'visual-style': '视觉风格',
@@ -17,7 +18,7 @@ const labels: Record = {
* @returns 分类展示名称
*/
export function assetCategoryLabel(value: string): string {
- return labels[value] ?? value
+ return Object.hasOwn(labels, value) ? labels[value]! : value
}
/**
diff --git a/src/features/projects/ProjectLayout.vue b/src/features/projects/ProjectLayout.vue
index 3c54f60..fb7d2ca 100644
--- a/src/features/projects/ProjectLayout.vue
+++ b/src/features/projects/ProjectLayout.vue
@@ -7,7 +7,7 @@ import { useRoute, useRouter } from 'vue-router'
import { Settings2 } from '@lucide/vue'
import { NScrollbar, NButton, NPageHeader, NSpin, NEllipsis, NSkeleton } from 'naive-ui'
import { EmptyState, WorkspaceRefreshButton } from '../../components/ui'
-import { projectContextKey, useProjectData } from './context'
+import { projectContextKey, useProjectData, type CheckpointWorkflow } from './context'
import { getOperation, operationErrorText } from '../workflows/operations'
import { projectAccessKey, projectSectionFromPath, type ProjectAccess, type ProjectSectionAccess } from './access'
import { useProjectStageAccess } from './useProjectStageAccess'
@@ -22,12 +22,13 @@ import type { ProjectSettingsTab } from '../generation-config/context'
import CreateDramaSkeleton from '../create-drama/CreateDramaSkeleton.vue'
import BreakdownSkeleton from '../breakdown/BreakdownSkeleton.vue'
import VisualStyleSkeleton from '../visual-style/VisualStyleSkeleton.vue'
+import ProjectWorkspaceSkeleton from './components/ProjectWorkspaceSkeleton.vue'
import SubjectIdentitySkeleton from '../subject-identity/SubjectIdentitySkeleton.vue'
/** 项目标题只保留名称;下游工作区在剧本完成前不挂载,直接链接也无法越过限制。 */
const route = useRoute()
const router = useRouter()
-const id = computed(() => String(route.params.projectId))
+const id = computed(() => String(route.params.projectId ?? ''))
const context = useProjectData(id)
provide(projectContextKey, context)
/** 项目全局配置保存后更新已挂载生成表单。 */
@@ -68,10 +69,43 @@ watch(id, () => {
generationRevision.value = 0
})
const operation = computed(() => getOperation(id.value))
+/**
+ * 跨页面观察真实终态并刷新对应数据,不因读取历史终态重复刷新。
+ * @param observer 已挂载的后台观察器
+ * @param workflow 需要刷新的正文所属工作流
+ */
+function refreshOnTerminal(observer: ReturnType, workflow: CheckpointWorkflow | null) {
+ watch(
+ () => observer.query.data.value,
+ (record, previous) => {
+ if (
+ !record ||
+ record.projectId !== id.value ||
+ previous?.id !== record.id ||
+ !['pending', 'running'].includes(previous.status) ||
+ !['completed', 'failed'].includes(record.status)
+ )
+ return
+ void context.refreshWorkflow(workflow, record.projectId, record.id + ':' + record.status)
+ if (workflow === 'create-drama' && currentSection.value !== 'create-drama') {
+ void context.refreshProject()
+ void context.refreshStageReadiness()
+ } else if (
+ workflow === 'breakdown' &&
+ currentSection.value !== 'breakdown' &&
+ currentSection.value !== 'storyboard'
+ ) {
+ void context.refreshStageReadiness()
+ }
+ }
+ )
+}
+
/** 从服务端发现创作任务,刷新或换浏览器后也能继续观察故事规划等节点。 */
const createDramaExecution = useWorkflowExecution(id, 'create-drama', { discover: true })
+refreshOnTerminal(createDramaExecution, 'create-drama')
/** 项目内跨页面继续观察首帧后台任务,维持活动锁并在真实终态后释放。 */
-useWorkflowExecution(id, 'keyframe-quality')
+refreshOnTerminal(useWorkflowExecution(id, 'keyframe-quality'), null)
/** 派生设计从服务端发现新任务;其它既有入口继续观察已知任务,保持项目活动锁。 */
for (const workflowName of [
'storyboard-direction',
@@ -80,12 +114,16 @@ for (const workflowName of [
'keyframe-generation',
'video-quality'
]) {
- useWorkflowExecution(id, workflowName, {
- discover: ['storyboard-direction', 'storyboard-visual-state'].includes(workflowName)
- })
+ refreshOnTerminal(
+ useWorkflowExecution(id, workflowName, {
+ discover: ['storyboard-direction', 'storyboard-visual-state'].includes(workflowName)
+ }),
+ null
+ )
}
/** 即使直接刷新到生产页,也按真实重生成任务恢复旧剧情快照的失效标记。 */
const breakdownExecution = useWorkflowExecution(id, 'breakdown', { discover: true })
+refreshOnTerminal(breakdownExecution, 'breakdown')
/** 只有后端确认有效的新分镜才废弃旧正文,不推测未完成或失败任务。 */
watchEffect(() => {
const record = breakdownExecution.query.data.value
@@ -105,12 +143,6 @@ watchEffect(() => {
)
invalidateEpisodeSource(record.projectId, number)
})
-watchEffect(() => {
- const status = createDramaExecution.query.data.value?.status
- if ((status === 'completed' || status === 'failed') && context.project.value?.status === 'generating') {
- void context.refresh()
- }
-})
const stageAccess = useProjectStageAccess(id, context.stageReadiness)
const complete = stageAccess.scriptReady
/** 当前路由所属的制作步骤;项目素材不是制作步骤。 */
@@ -127,7 +159,14 @@ const currentAccess = computed(() => {
})
const isCreation = computed(() => currentSection.value === 'create-drama')
/** 各工作区共用首次读取判定;切换项目显示占位,刷新已有项目保留内容。 */
-const isProjectInitialLoading = computed(() => context.loading.value && context.project.value?.id !== id.value)
+const isProjectInitialLoading = computed(
+ () =>
+ (context.projectQuery.loading.value && !context.project.value) ||
+ (!isCreation.value &&
+ !isProjectAssets.value &&
+ context.readinessQuery.loading.value &&
+ !context.stageReadiness.value)
+)
type OperationGuide = {
title: string
description: string
@@ -295,7 +334,9 @@ onScopeDispose(() => {
:key="id"
:project-id="id"
:disabled="!!context.error.value"
+ :can-open-storyboard="stageAccess.sections.value.storyboard.enabled"
@changed="context.refresh()"
+ @open-storyboard="router.push(`/projects/${id}/storyboard`)"
/>
{
diff --git a/src/features/projects/api.ts b/src/features/projects/api.ts
index 7a902cb..a0823e8 100644
--- a/src/features/projects/api.ts
+++ b/src/features/projects/api.ts
@@ -1,5 +1,5 @@
import { request, optionalResource } from '../../lib/http'
-import type { Checkpoint } from '../workflows/types'
+import type { Checkpoint, CheckpointSummary } from '../workflows/types'
import type { WorkflowExecutionStart } from '../workflows/execution.types'
import type {
CreateProjectInput,
@@ -71,8 +71,57 @@ export const projectsApi = {
request<{ id: string; deleted: boolean }>(`/projects/${encodeURIComponent(id)}`, { method: 'DELETE' }),
state: (id: string, signal?: AbortSignal) =>
optionalResource(request(`/projects/${encodeURIComponent(id)}/state`, { signal })),
- checkpoints: (id: string, signal?: AbortSignal) =>
- request(`/projects/${encodeURIComponent(id)}/checkpoints`, { signal }),
+ /**
+ * 读取每个工作流最新的执行状态,供导航与操作门禁使用。
+ * @param id 当前项目
+ * @param signal 请求取消信号
+ * @returns 最新保存记录摘要
+ */
+ async checkpointSummaries(id: string, signal?: AbortSignal) {
+ const rows = await request(
+ `/projects/${encodeURIComponent(id)}/checkpoints?view=summary`,
+ { signal }
+ )
+ if (
+ !Array.isArray(rows) ||
+ rows.some(
+ row =>
+ !row?.workflowName ||
+ !row.checkpointId ||
+ !row.createdAt ||
+ !row.updatedAt ||
+ !row.state ||
+ typeof row.state !== 'object' ||
+ Array.isArray(row.state) ||
+ Object.keys(row.state).some(key => key !== 'workflowExecution') ||
+ (row.state.workflowExecution !== undefined &&
+ typeof row.state.workflowExecution?.status !== 'string')
+ ) ||
+ new Set(rows.map(row => row.workflowName)).size !== rows.length
+ )
+ throw new Error('任务摘要无法核对,请刷新后再试。')
+ return rows
+ },
+ /**
+ * 读取完整记录,页面按实际需要指定工作流。
+ * @param id 当前项目
+ * @param signal 请求取消信号
+ * @param workflowName 完整记录所属的工作流
+ * @returns 保留历史顺序及来源信息的完整记录
+ */
+ async checkpoints(id: string, signal?: AbortSignal, workflowName?: string) {
+ const rows = await request(
+ `/projects/${encodeURIComponent(id)}/checkpoints` +
+ (workflowName === undefined ? '' : `?${new URLSearchParams({ workflowName })}`),
+ { signal }
+ )
+ if (
+ !Array.isArray(rows) ||
+ (workflowName !== undefined && rows.some(row => row?.workflowName !== workflowName))
+ )
+ throw new Error('工作流记录无法核对,请刷新后再试。')
+ return rows
+ },
/**
* 用户确认后恢复创作;改写明确携带服务端要求的确认标记。
* @param id 当前项目编号
diff --git a/src/features/projects/components/CreateProjectDialog.vue b/src/features/projects/components/CreateProjectDialog.vue
index e1fde7f..b0f74e9 100644
--- a/src/features/projects/components/CreateProjectDialog.vue
+++ b/src/features/projects/components/CreateProjectDialog.vue
@@ -134,13 +134,7 @@ const rules = computed(() => ({
新建剧本
-
+
- 会永久删除这个项目的剧本、人物、场景、道具、形态、分镜、首帧、视频和制作记录,以及上传或生成的素材文件。
+ 永久删除项目及其剧本、分镜、素材、视频和任务记录。
正在检查项目后台任务…
diff --git a/src/features/projects/components/ProjectWorkspaceSkeleton.vue b/src/features/projects/components/ProjectWorkspaceSkeleton.vue
new file mode 100644
index 0000000..6b8bc0f
--- /dev/null
+++ b/src/features/projects/components/ProjectWorkspaceSkeleton.vue
@@ -0,0 +1,242 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/features/projects/context.ts b/src/features/projects/context.ts
index f1873cc..95d3e0a 100644
--- a/src/features/projects/context.ts
+++ b/src/features/projects/context.ts
@@ -1,45 +1,120 @@
-import { computed, inject, type InjectionKey } from 'vue'
+import { computed, inject, ref, watch, type InjectionKey, type Ref } from 'vue'
import { useQuery } from '../../composables/useQuery'
import { projectsApi } from './api'
-import type { ProjectDetail } from './types'
-import type { Checkpoint } from '../workflows/types'
-import type { Ref } from 'vue'
-/** 同一项目的各个 graph 共用一份查询,避免每个面板重复请求。 */
+/** 页面需要回读完整记录的工作流。 */
+export type CheckpointWorkflow = 'create-drama' | 'breakdown'
+
+/** 项目布局共享轻量读取,完整记录只有消费者进入时才加载。 */
export function useProjectData(id: Ref
) {
- const query = useQuery(id, async (projectId, signal) => {
- const [project, checkpoints, stageReadiness] = await Promise.all([
- projectsApi.detail(projectId, signal),
- projectsApi.checkpoints(projectId, signal),
- projectsApi.stageReadiness(projectId, signal)
- ])
- return { project, checkpoints, stageReadiness }
- })
- const project = computed(() => query.data.value?.project ?? null)
- const checkpoints = computed(() => query.data.value?.checkpoints ?? [])
- /** 导航只消费当前项目的准入响应。 */
- const stageReadiness = computed(() => {
- const readiness = query.data.value?.stageReadiness
- return readiness?.projectId === id.value ? readiness : null
- })
- /** 同项目并发轻量刷新只采用最后一次请求。 */
- let readinessRefresh = 0
- /** 子页面完成当前步骤后调用,只刷新轻量项目状态与导航门禁。 */
- async function refreshStageReadiness() {
- const projectId = id.value
- const snapshot = query.data.value
- if (!projectId || snapshot?.project.id !== projectId) return
- const request = ++readinessRefresh
- const nextReadiness = await projectsApi.stageReadiness(projectId)
- if (
- request === readinessRefresh &&
- id.value === projectId &&
- query.data.value === snapshot &&
- nextReadiness.projectId === projectId
+ /** 正式项目正文与导航条件分别读取。 */
+ const projectQuery = useQuery(id, (projectId, signal) =>
+ projectId ? projectsApi.detail(projectId, signal) : Promise.resolve(null)
+ )
+ const readinessQuery = useQuery(id, (projectId, signal) =>
+ projectId ? projectsApi.stageReadiness(projectId, signal) : Promise.resolve(null)
+ )
+ /** 摘要失败会阻断写操作,但不阻塞工作区浏览。 */
+ const summaryQuery = useQuery(id, (projectId, signal) =>
+ projectId ? projectsApi.checkpointSummaries(projectId, signal) : Promise.resolve(null)
+ )
+ /** 当前项目已请求过的工作流,页面卸载时保留。 */
+ const requested = ref>>({})
+ /** 页面与布局可能同时观察到同一个终态,只处理一次。 */
+ const handledExecutions = new Map>()
+ watch(
+ id,
+ () => {
+ requested.value = {}
+ handledExecutions.clear()
+ },
+ { flush: 'sync' }
+ )
+
+ /**
+ * 用项目编号作为查询键;离开项目会取消旧请求并清除旧结果。
+ * @param workflow 当前工作流
+ * @returns 完整记录及其独立查询状态
+ */
+ function createCheckpointQuery(workflow: CheckpointWorkflow) {
+ const key = computed(() => (requested.value[workflow] === id.value ? id.value : ''))
+ return useQuery(key, (projectId, signal) =>
+ projectId ? projectsApi.checkpoints(projectId, signal, workflow) : Promise.resolve(null)
)
- query.data.value = { ...snapshot, stageReadiness: nextReadiness }
}
- return { ...query, project, checkpoints, stageReadiness, refreshStageReadiness }
+ /** 两个查询在布局生命周期内存活,同项目切页直接复用。 */
+ const checkpointQueries = {
+ 'create-drama': createCheckpointQuery('create-drama'),
+ breakdown: createCheckpointQuery('breakdown')
+ }
+ /** 只发布当前项目的正式数据。 */
+ const project = computed(() => (projectQuery.data.value?.id === id.value ? projectQuery.data.value : null))
+ const stageReadiness = computed(() =>
+ project.value && readinessQuery.data.value?.projectId === id.value ? readinessQuery.data.value : null
+ )
+ /** 摘要未取得或刷新失败时禁止依赖其作出写入判断。 */
+ const summaryBlocked = computed(
+ () =>
+ !project.value ||
+ summaryQuery.data.value === null ||
+ summaryQuery.loading.value ||
+ !!summaryQuery.error.value
+ )
+ /** 页面外壳加载与错误不包含按需正文。 */
+ const loading = computed(() => projectQuery.loading.value || readinessQuery.loading.value)
+ const error = computed(() => projectQuery.error.value || readinessQuery.error.value || summaryQuery.error.value)
+
+ /**
+ * 声明页面需要某个工作流的正文;重复声明不会发出新请求。
+ * @param workflow 当前工作流
+ * @returns 完整记录查询
+ */
+ function useWorkflowCheckpoints(workflow: CheckpointWorkflow) {
+ if (requested.value[workflow] !== id.value) requested.value[workflow] = id.value
+ return checkpointQueries[workflow]
+ }
+
+ /**
+ * 写入或任务终态后只刷新摘要和受影响的已加载正文。
+ * @param workflow 受影响的工作流,没有对应正文时仅刷新摘要
+ * @param projectId 操作开始时绑定的项目
+ * @param executionKey 共享观察器使用的终态标识
+ * @returns 本次刷新结束
+ */
+ async function refreshWorkflow(workflow: CheckpointWorkflow | null, projectId = id.value, executionKey?: string) {
+ if (!projectId || id.value !== projectId) return
+ const existing = executionKey ? handledExecutions.get(executionKey) : undefined
+ if (existing) return existing
+ const update = Promise.all([
+ summaryQuery.refresh(),
+ workflow && requested.value[workflow] === projectId
+ ? checkpointQueries[workflow].refresh()
+ : Promise.resolve()
+ ]).then(() => {})
+ if (executionKey) handledExecutions.set(executionKey, update)
+ await update
+ }
+
+ /** 刷新工作区入口数据,不读取完整工作流历史。 */
+ async function refresh() {
+ await Promise.all([projectQuery.refresh(), readinessQuery.refresh(), summaryQuery.refresh()])
+ }
+
+ return {
+ project,
+ projectQuery,
+ stageReadiness,
+ readinessQuery,
+ summaryQuery,
+ summaryBlocked,
+ loading,
+ error,
+ refresh,
+ refreshProject: projectQuery.refresh,
+ refreshStageReadiness: readinessQuery.refresh,
+ useWorkflowCheckpoints,
+ refreshWorkflow
+ }
}
/** 项目布局向子页面提供的类型安全上下文。 */
diff --git a/src/features/storyboard-preparation/FormalRepairDrawer.vue b/src/features/storyboard-preparation/FormalRepairDrawer.vue
index af03e4f..b9514a0 100644
--- a/src/features/storyboard-preparation/FormalRepairDrawer.vue
+++ b/src/features/storyboard-preparation/FormalRepairDrawer.vue
@@ -32,12 +32,7 @@ function saved() {
-
+
剧情段落:{{ beat.beat.description }}
当前镜头:{{ beat.shot.description }}
@@ -427,7 +427,7 @@ defineExpose({ save, canSave })
- 当前动作规划没有可直接修订的确定性问题,暂不开放保存。可返回诊断列表复查当前镜头。
+ 暂无可直接修订的动作问题,可返回复查。
import { computed, inject, ref, watch } from 'vue'
import { NButton, NCheckbox, NFormItem, NInput, NTag } from 'naive-ui'
-import { ArrowLeft, CheckCheck, RefreshCw, Save, ShieldCheck, Wrench } from '@lucide/vue'
+import { ArrowLeft, ArrowRight, CheckCheck, RefreshCw, Save, ShieldCheck, Wrench } from '@lucide/vue'
import AppDrawer from '../../components/ui/AppDrawer.vue'
import WorkspaceActionTooltip from '../../components/ui/WorkspaceActionTooltip.vue'
import WorkspaceSectionHeading from '../../components/ui/WorkspaceSectionHeading.vue'
@@ -16,7 +16,7 @@ import { getOperation, runOperation } from '../workflows/operations'
import { storyboardApi } from '../storyboard/api'
import { projectsApi } from '../projects/api'
import { useStoryboardPreparation } from './useStoryboardPreparation'
-import { currentStoryboardApproval } from './model'
+import { currentStoryboardApproval, storyboardDesignGap } from './model'
import { preparationApi } from './api'
import type { PreparationIssue } from './types'
import {
@@ -31,17 +31,20 @@ const props = withDefaults(
defineProps<{
/** 当前正式项目。 */ projectId: string
/** 外部项目读取失败或主任务锁。 */ disabled?: boolean
+ /** 分镜设计页当前是否可进入。 */ canOpenStoryboard?: boolean
}>(),
- { disabled: false }
+ { disabled: false, canOpenStoryboard: false }
)
/** 所有写入或后台终态后让调用方刷新实际导航状态。 */
-const emit = defineEmits<{ changed: [] }>()
+const emit = defineEmits<{ changed: []; openStoryboard: [] }>()
/** 全屏入口,未打开不读取完整复检。 */
const open = ref(false)
/** 复用标题栏的唯一配置入口,跳转时指定质量规则分类。 */
const openProjectSettings = inject(projectSettingsOpenKey, undefined)
/** 只记录用户主动的抽屉交接,等待当前抽屉离场后再打开配置。 */
const queuedSettingsProject = ref('')
+/** 等抽屉关闭后再切换到本项目的分镜设计。 */
+const queuedStoryboardProject = ref('')
/** 当前项目任务观察与表单共同绑定项目。 */
const id = computed(() => props.projectId)
/** 首次打开后才观察派生任务,关闭不丢失正在运行的任务。 */
@@ -63,6 +66,8 @@ const locked = computed(
)
/** 复检与独立人工确认流程。 */
const flow = useStoryboardPreparation(id, locked)
+/** 分镜设计可打开时,详细覆盖状态由分镜页展示。 */
+const showStoryboardLink = computed(() => props.canOpenStoryboard && !!storyboardDesignGap(flow.data.value?.entry))
/** 当前查看的正式修订目标,在同一抽屉中切换正文。 */
const repairIssue = ref(null)
/** 正式修订编辑器,底栏调用统一保存。 */
@@ -112,6 +117,7 @@ watch(flow.sourceKey, () => {
/** 切项目后撤销旧项目尚未完成的配置交接。 */
watch(id, () => {
queuedSettingsProject.value = ''
+ queuedStoryboardProject.value = ''
})
/** 打开时读取;关闭立即废弃旧结果及未完成只读请求。 */
watch(
@@ -144,11 +150,20 @@ function requestQualitySettings() {
queuedSettingsProject.value = id.value
open.value = false
}
-/** 离场与焦点约束释放后,打开同项目的质量规则编辑入口。 */
+/** 从检查抽屉转到负责处理镜头设计的页面。 */
+function requestStoryboard() {
+ if (busy.value || !showStoryboardLink.value) return
+ queuedStoryboardProject.value = id.value
+ open.value = false
+}
+/** 离场与焦点约束释放后,打开同项目的目标页面。 */
function preparationClosed() {
const projectId = queuedSettingsProject.value
+ const storyboardProjectId = queuedStoryboardProject.value
queuedSettingsProject.value = ''
+ queuedStoryboardProject.value = ''
if (projectId && projectId === id.value) openProjectSettings?.('quality')
+ if (storyboardProjectId && storyboardProjectId === id.value && props.canOpenStoryboard) emit('openStoryboard')
}
/** 明确确认当前已保存规则,只核对版本,不在检查入口保存另一份草稿。 */
async function confirmPolicy() {
@@ -268,7 +283,7 @@ async function repaired() {
v-model:open="open"
:title="repairIssue ? '修订正式分镜问题' : '制作前检查'"
:busy="busy"
- description="用于拆解后的正式分镜审核与制作检查;首次拆解无需先完成这里的分镜检查。"
+ description="拆解完成后,可审核分镜并检查制作条件。"
@closed="preparationClosed"
>
@@ -317,10 +332,7 @@ async function repaired() {
-
+
{{ userFacingText(reason) }}
@@ -369,12 +381,9 @@ async function repaired() {
-
+
- 当前未返回具体镜头问题,请继续核对上面的来源条件和人工审核。
+ 暂无具体镜头问题,请核对来源与审核状态。
当前正式分镜已有有效审核记录。
-
- 请先处理规则来源、动作与主体问题,再进行整体审核。
-
+ 先修订问题,再审核分镜。
-
- 已保存镜头设计 {{ flow.data.value.entry.derivedAssets.directionCount }} /
+
+ 有效镜头设计 {{ flow.data.value.entry.derivedAssets.directionCount }} /
{{ flow.data.value.entry.derivedAssets.shotCount }} · 画面状态
{{ flow.data.value.entry.derivedAssets.visualStateCount }} /
{{ flow.data.value.entry.derivedAssets.shotCount }}
@@ -454,7 +461,7 @@ async function repaired() {
-
+
{{
flow.data.value.entry.ready
? '正式分镜已满足制作入口条件。制作计划还会继续检查主体素材和镜头资产。'
@@ -487,11 +505,7 @@ async function repaired() {
-
+
)
/** 切换详情标签后仍观察起点视觉任务,重新进入项目时恢复真实终态。 */
useWorkflowExecution(id, 'motion-plan-start-state-validation')
-const productionReady = computed(() => directionComplete.value && visualStateComplete.value)
+/** 无全项目覆盖结果时,使用本集设计接口显示本集缺口。 */
+const episodeDesignGap = computed(
+ () =>
+ !projectDesignGap.value &&
+ !query.loading.value &&
+ !query.error.value &&
+ !!data.value?.directions.shotCount &&
+ (!directionComplete.value || !visualStateComplete.value)
+)
/** 分镜时长审计为只读预警,接口失败不能影响分镜设计。 */
const durationAudit = ref(null)
/** 项目预算汇总为只读数据,失败不影响现有分镜操作。 */
@@ -239,8 +250,17 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
-
-
+
+
+
+ {{ breakdownRecords.error.value }}
+ 重试读取
+
@@ -257,7 +277,22 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
>
- 本集镜头已重新生成。新标题和剧情详情尚未提供,当前只显示正式镜头编号;请按实际生成规格核对内容。
+ 本集镜头已更新。标题和剧情详情待补齐。
+
+
+
+
+
+ 全项目有效进度:镜头设计 {{ projectDesignGap.directionCount }}/{{
+ projectDesignGap.shotCount
+ }}, 画面状态 {{ projectDesignGap.visualStateCount }}/{{ projectDesignGap.shotCount }}。
+
+ 需更新:镜头设计 {{ projectDesignGap.staleDirectionCount ?? 0 }} 个、画面状态
+ {{ projectDesignGap.staleVisualStateCount ?? 0 }} 个。
+
+
+ 查看生成选项
+
@@ -339,6 +374,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
/>
+
@@ -391,8 +428,12 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
-
-
+
+
+
{{ item.title }}{{ item.count }} / {{ item.total }} 镜头
@@ -408,10 +449,9 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
Math.max(0, (item.count / Math.max(1, Math.max(item.total, 1))) * 100)
)
"
- class=""
>
-
+
@@ -443,7 +483,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
:label="`重生成第 ${episodeNo} 集镜头`"
:disabled="!allowed['shots-current']"
acknowledgement
- :description="`将删除并重建第 ${episodeNo} 集的正式镜头。该集已有导演设计、即时状态、首帧、提示词和视频结果会随旧镜头一并失效,且无法撤销;其他剧集保持不变。`"
+ :description="`重建第 ${episodeNo} 集会清除本集旧镜头、设计、首帧、提示词和视频。无法撤销。`"
@confirm="run('shots-current')"
/>
@@ -457,7 +497,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
01导演摄影设计
- 景别、机位、运镜与构图。正式项目生成默认跳过已完整剧集,覆盖模式会重新生成全部剧集。
+ 设置景别、机位、运镜和构图。覆盖模式会重做全部剧集。
@@ -472,7 +512,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
:description="
force
? '重新生成项目全部剧集的导演设计,覆盖已有结果。'
- : '对整个项目生成导演设计,跳过已完整保存的剧集,可用于重试失败或未完成的剧集。'
+ : '补齐全项目导演设计,跳过已完成的剧集。'
"
@confirm="run('direction-all')"
/>
@@ -484,7 +524,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
02即时视觉状态
- 表情、姿态、位置、环境与连续性。每集需要完整导演设计;批量中缺少前置设计的剧集会单独报错。
+ 先补齐导演设计,再生成表情、姿态和环境等画面状态。
@@ -506,14 +546,12 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
- 修改或覆盖前面的设计后,已有状态和视频提示词不会自动更新;请按顺序重新生成后续内容。自动修复次数仅用于
- 画面即时状态。
+ 设计更新后,请依次更新画面状态和视频提示词。自动修复次数只用于画面状态。
视频提示词批量操作
- 生成前会检查镜头设计和主体参考图是否齐全。这里只生成提示词;首帧、视频任务、状态检查与失败重试已整理到
- 镜头生产。
+ 生成提示词前请补齐镜头设计和参考图。
@@ -572,19 +611,13 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
>
重试查询
- 镜头生产前置设计尚未补齐或更新。
- 当前导演设计 {{ data.directions.directionCount }}/{{ data.directions.shotCount }},即时视觉状态
+ >
+ 本集待补齐:镜头设计 {{ data.directions.directionCount }}/{{ data.directions.shotCount }},画面状态
{{ data.visualStates.visualStateCount }}/{{ data.visualStates.shotCount }}。其中过期镜头设计 {{ data.directions.staleCount }} 条、画面状态
- {{ data.visualStates.staleCount }} 条。请先补齐或更新后再进入镜头生产。 需更新:镜头设计 {{ data.directions.staleCount }} 个、画面状态
+ {{ data.visualStates.staleCount }} 个。
最新剧本拆解
- 缺少本集生成所需的镜头、主体或形态数据。已保存设计仍可查看;请先在拆解页完成或恢复相应阶段。
- 本集导演设计尚未补齐或版本已变化,请先完成第 01 步,再生成本集即时状态。
+ 缺少本集生成所需的镜头、主体或形态数据。已保存设计仍可查看;请先在拆解页完成或恢复相应阶段。
-
- 正在读取正式分镜数据……
-
+
+
- 本次存在失败、校验未通过或未保存项。关闭“批量覆盖已有结果”后再补齐,可跳过已完整保存项。
+ 本次有未完成项。关闭覆盖模式后可只补缺项。
@@ -46,7 +46,7 @@ function exportReceipt() {
:show-icon="false"
class="mt-3"
>
- 本集新镜头已保存。该集下游结果已随旧镜头清除,请依次重新生成导演设计、即时状态、首帧、提示词和视频。
+ 新镜头已保存。旧设计、首帧、提示词和视频已清除,请依次重新生成。
-
@@ -106,10 +106,8 @@ function exportReceipt() {
>:{{ userFacingText(item.error) }}
-
- 批量处理完成后,可选择镜头查看完整画面描述;已有描述会直接使用,无需重新生成。
-
+ 选中镜头即可查看已有画面描述。
- 回执仅保留在当前浏览器会话中。数据库结果是覆盖率和镜头详情的依据。
+ 回执仅保留在当前会话。
diff --git a/src/features/storyboard/components/MotionPlanPanel.vue b/src/features/storyboard/components/MotionPlanPanel.vue
index 9322b83..0eaae45 100644
--- a/src/features/storyboard/components/MotionPlanPanel.vue
+++ b/src/features/storyboard/components/MotionPlanPanel.vue
@@ -85,7 +85,7 @@ const savedWarnings = computed(() =>
- 尚无已保存动作计划,生成视频提示词后可在此查看。
+ 生成视频提示词后可查看动作计划。
-
diff --git a/src/features/storyboard/components/MotionRevisionEditor.vue b/src/features/storyboard/components/MotionRevisionEditor.vue
index e97fc57..a7ddac5 100644
--- a/src/features/storyboard/components/MotionRevisionEditor.vue
+++ b/src/features/storyboard/components/MotionRevisionEditor.vue
@@ -114,7 +114,7 @@ function updateRefs(index: number, value: string) {
@@ -307,9 +307,7 @@ function updateRefs(index: number, value: string) {
起点视觉校验
-
- 起点视觉校验会调用服务端已配置的视觉模型并消耗额度。仅校验所选已保存修订与当前主首帧,不生成图片或视频。
-
+ 检查修订与当前主首帧是否一致,会消耗模型额度。
我已确认本次起点视觉校验的模型费用和修订范围。
diff --git a/src/features/storyboard/components/ShotDerivedReview.vue b/src/features/storyboard/components/ShotDerivedReview.vue
index 90ffe02..074d25f 100644
--- a/src/features/storyboard/components/ShotDerivedReview.vue
+++ b/src/features/storyboard/components/ShotDerivedReview.vue
@@ -1,6 +1,7 @@
-
+
+
+
-
+
形态图片
-
- 为人物、场景和道具准备造型参考图。已有图片直接从数据库读取。
-
+
准备人物、场景和道具参考图。
- 基础形态可复用已确认并锁定的身份母版,其他形态仍需单独生成。浏览图库不会补建或切换主图;母版变化后,已有图片保留并需重新核对来源与质量。
+ 基础形态可复用已锁定母版。母版变化后,请复核已有图片。
使用项目图片模型
-
- 图库仅查看已保存的图片。已有主图仍须通过当前来源和质量检查,才能用于后续分镜;独立候选与历史失败记录均保留。
-
+ 主图通过来源和质量检查后可用于分镜。
项目批量生图
@@ -412,7 +401,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
- 作用于整个项目,不受下方筛选影响。上限只限制本次真正生图数量,其余显示为“待后续处理”,不计入跳过。默认使用项目尺寸与正式提示词,不会启动视频生成。
+ 批量生图覆盖全项目,使用项目尺寸和已保存的提示词。超过上限的形态留待下次处理。
@@ -437,7 +426,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
:show-icon="false"
class="mt-3"
>
- 部分形态生图失败。已生成的图片保留;先查看失败原因,再按形态重新生图。
+ 部分形态生图失败。成功图片已保留,请核对原因后重试。
-
@@ -445,96 +434,14 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
>:{{ userFacingText(failure.error) }}
-
- 回执仅保留于当前浏览器会话;图片以刷新后的数据库记录为准。
-
+ 刷新可查看最新图片。
-
-
-
-
- {{ impact.stale.value.length }}
- 个镜头的首帧需要核对。此警告不表示形态图片本身失效;请先查看对应镜头与关联素材,确认原因后再处理。
-
-
重新检查
-
-
- 其中 {{ impact.stale.value.filter(item => item.inconsistent).length }}
- 个镜头的首帧与视频检查结果不一致,请先核对状态。
-
-
-
-
- -
- 第 {{ shot.episodeNo }} 集 · 剧情段落 {{ shot.beatNo }} / 镜头 {{ shot.shotNo }}
- {{
- shot.inconsistent ? '状态待核对' : '首帧过期'
- }}
- 查看关联素材
- 查看镜头 →
-
-
-
-
- 镜头影响检查失败,暂时无法确认有无过期首帧:{{ impact.query.error.value }}
- 重试检查
+