feat: 接入分镜单集重生成接口

接入后端正式单集 Storyboard Shot 重生成能力,补齐校验回执、旧 Shot 缓存失效与页面刷新逻辑。
This commit is contained in:
GouJ authored and GitHub committed 2026-09-08 20:09:37 +08:00
1 parent b4e1e6873c
commit 6dc3a93348
8 files changed
+159 -10

No files matched your search

@@ -50,6 +50,7 @@ const {
repairsValid,
blocked,
directionComplete,
hasCurrentEpisodeShots,
run
} = useStoryboard()
const coverage = computed(() => [
@@ -217,6 +218,31 @@ watch(
<NCollapse v-model:expanded-names="overview"
><NCollapseItem name="generation" title="生成配置、批量操作与回执"
><div class="overview-content">
<div class="generation-row">
<div>
<h3 class="text-sm font-semibold">
<span class="mr-2 font-mono text-xs text-muted">00</span
>本集镜头拆解
</h3>
<p class="mt-2 text-xs leading-6 text-muted">
只重新拆解当前选择的第
{{ episodeNo }}
集,其它剧集不受影响。新镜头会替换旧镜头,并清空本集已有的导演设计、即时状态、首帧与视频结果。
</p>
</div>
<div class="flex flex-wrap gap-2">
<ConfirmAction
:label="`重生成第 ${episodeNo} 集镜头`"
:disabled="!allowed['shots-current']"
acknowledgement
:description="`将删除并重建第 ${episodeNo} 集的正式镜头。该集已有导演设计、即时状态、首帧、提示词和视频结果会随旧镜头一并失效,且无法撤销;其它剧集保持不变。`"
@confirm="run('shots-current')"
/>
</div>
</div>
<p v-if="!hasCurrentEpisodeShots" class="mt-3 text-[11px] text-muted">
当前集尚无正式 Storyboard Shot,不能执行单集重生成;请先完成拆解流程。
</p>
<div class="generation-row">
<div>
<h3 class="text-sm font-semibold">