fix(short-drama-agent-front): 优化工作区提示与弹窗布局

This commit is contained in:
GJ committed 2026-10-09 18:31:09 +08:00
1 parent 5b134207b8
commit 72a86171dc
35 files changed
+586 -378

No files matched your search

+4 -15
View File
@@ -19,11 +19,8 @@ import SubjectCoverageAudit from './components/SubjectCoverageAudit.vue'
import type { SubjectCoverageIssue } from './coverage.types'
import WorkflowExecutionPanel from '../workflows/WorkflowExecutionPanel.vue'
import { useStoryboard } from './useStoryboard'
import { useProjectContext } from '../projects/context'
const detailTab = ref('design')
const projectContext = useProjectContext()
const stageComplete = computed(() => projectContext.stageReadiness.value?.storyboard.ready === true)
/** 分镜工作区按单集查看正式数据,生成配置与镜头检查分开。 */
const {
@@ -59,7 +56,7 @@ const coverage = computed(() => [
total: data.value?.directions.shotCount ?? 0
},
{
title: '即时状态',
title: '画面状态',
count: data.value?.visualStates.visualStateCount ?? 0,
total: data.value?.visualStates.shotCount ?? 0
}
@@ -148,10 +145,6 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
<NAlert v-if="episodeSourceUnavailable" type="info" :show-icon="false">
本集镜头已重新生成。新标题和剧情详情尚未提供,当前只显示正式镜头编号;请按实际生成规格核对内容。
</NAlert>
<NAlert v-if="stageComplete" type="success" :show-icon="false">
分镜设计已经准备完成,可以继续生成首帧、视频提示词和视频。
<RouterLink :to="`/projects/${id}/production`" class="text-button ml-2">继续镜头生产 →</RouterLink>
</NAlert>
</template>
<template #header
><div class="workspace-toolbar">
@@ -438,7 +431,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
<h3>
镜头目录 <span>{{ shots.length }} 镜</span>
</h3>
<span>按 Beat 排列</span>
<span>按段落排列</span>
</div>
<NScrollbar
class="panel-scroll directory-scroll"
@@ -462,7 +455,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
<NScrollbar v-if="shot" class="panel-scroll" content-class="p-5 lg:p-7">
<header class="mb-6">
<p class="eyebrow">
BEAT {{ shot.beatNo }} / SHOT {{ shot.shotNo }}
段落 {{ shot.beatNo }} · 镜头 {{ shot.shotNo }}
<span v-if="shot.durationSeconds" class="ml-3">{{ shot.durationSeconds }}s</span>
</p>
<h3 class="mt-2 text-lg font-semibold">{{ shot.title }}</h3>
@@ -472,10 +465,6 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
<p v-if="shot.visualFocus" class="mt-2 text-xs leading-6 text-muted">
视觉重点:{{ shot.visualFocus }}
</p>
<p class="mt-3 break-all font-mono text-[10px] text-muted">Shot ID · {{ shot.shotId }}</p>
<p v-if="!episodeSourceUnavailable" class="mt-1 text-[10px] text-muted">
标题与剧情描述取自最近可用 Breakdown 快照;以下设计与状态取自数据库。
</p>
</header>
<div>
<NTabs v-model:value="detailTab" type="line" size="small" aria-label="镜头详情"
@@ -504,7 +493,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
<EmptyState
v-else-if="data"
title="本集还没有正式分镜"
description="先完成剧本拆解与分镜持久化,再回来生成导演设计和即时状态。"
description="先完成剧本拆解,再回来完善镜头设计和画面状态。"
><RouterLink :to="`/projects/${id}/breakdown`" class="button button-secondary mt-4"
>前往拆解</RouterLink
></EmptyState
@@ -32,7 +32,7 @@ const groups = computed(() => {
:aria-labelledby="`${directoryId}-beat-${group.beatNo}`"
>
<h4 :id="`${directoryId}-beat-${group.beatNo}`" class="directory-group-heading">
<span>BEAT {{ String(group.beatNo).padStart(2, '0') }}</span>
<span>段落 {{ String(group.beatNo).padStart(2, '0') }}</span>
<span class="directory-group-count">{{ group.shots.length }} 镜</span>
</h4>
<div class="beat-directory-items">
@@ -41,13 +41,13 @@ const groups = computed(() => {
:key="shot.shotId"
:active="activeId === shot.shotId"
:class="itemClass"
:aria-label="`BEAT ${group.beatNo} · 镜头 ${shot.shotNo} · ${shot.title}`"
:aria-label="`段落 ${group.beatNo} · 镜头 ${shot.shotNo} · ${shot.title}`"
@click="emit('select', shot.shotId)"
>
{{ shot.title }}
<template #eyebrow>
<!-- 窄屏目录变为横向条目时补回归属,桌面不重复显示分组编号。 -->
<span class="directory-mobile-beat">BEAT {{ String(group.beatNo).padStart(2, '0') }} / </span>
<span class="directory-mobile-beat">段落 {{ String(group.beatNo).padStart(2, '0') }} / </span>
<span class="directory-shot-number">镜头 {{ String(shot.shotNo).padStart(2, '0') }}</span>
</template>
<template #meta><slot name="meta" :shot="shot" /></template>
@@ -10,9 +10,7 @@ defineProps<{ shot: DesignedShot }>()
<template>
<div class="space-y-7">
<section>
<h3 class="mb-4 text-sm font-semibold">
导演摄影设计 <span class="ml-2 font-mono text-[10px] font-normal text-muted">Direction</span>
</h3>
<h3 class="mb-4 text-sm font-semibold">导演摄影设计</h3>
<template v-if="shot.direction"
><div class="mb-5 flex flex-wrap gap-2">
<NTag
@@ -41,9 +39,7 @@ defineProps<{ shot: DesignedShot }>()
<p v-else class="text-sm text-muted">此镜头尚无已保存的导演设计。</p>
</section>
<section class="pt-6">
<h3 class="mb-4 text-sm font-semibold">
即时视觉状态 <span class="ml-2 font-mono text-[10px] font-normal text-muted">VisualState</span>
</h3>
<h3 class="mb-4 text-sm font-semibold">画面状态</h3>
<template v-if="shot.visualState"
><dl class="detail-grid">
<dt>时间</dt>
@@ -82,9 +78,7 @@ defineProps<{ shot: DesignedShot }>()
</dl>
</article></template
>
<p v-else class="text-sm leading-6 text-muted">
此镜头尚无已保存的即时状态。先补齐本集导演设计,再生成 VisualState。
</p>
<p v-else class="text-sm leading-6 text-muted">此镜头还没有画面状态,请先完成镜头设计。</p>
</section>
</div>
</template>