diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue
index d28890a..96caf8c 100644
--- a/src/components/ui/AppDialog.vue
+++ b/src/components/ui/AppDialog.vue
@@ -90,10 +90,11 @@ onBeforeUnmount(() => {
:close-on-esc="!busy"
:style="{ width: `${width ?? (wide ? 1040 : 600)}px` }"
class="app-dialog"
+ :class="{ 'app-dialog-title-only': !description && !$slots.description }"
role="dialog"
:aria-label="title"
>
-
+
{{ title }}
@@ -130,6 +131,11 @@ onBeforeUnmount(() => {
.app-dialog .n-card-header {
@apply shrink-0 items-start;
}
+/* 无描述的标题栏采用同一条中心线,标题下方保持紧凑的正文间距。 */
+.app-dialog.app-dialog-title-only .n-card-header {
+ align-items: center;
+ padding-bottom: 16px;
+}
/* 正文自然撑开,超过剩余视口高度后由 NScrollbar 内部滚动。 */
.app-dialog .n-card-content {
@apply min-h-0 overflow-hidden;
diff --git a/src/features/breakdown/BreakdownPage.vue b/src/features/breakdown/BreakdownPage.vue
index d1eb6f4..2f9dee8 100644
--- a/src/features/breakdown/BreakdownPage.vue
+++ b/src/features/breakdown/BreakdownPage.vue
@@ -13,7 +13,7 @@ import { Layers, LoaderCircle, ArrowRight, Settings2 } from '@lucide/vue'
import { EmptyState, StatusBadge, WorkspaceTools } from '../../components/ui'
import { useProjectContext } from '../projects/context'
import { breakdownApi } from './api'
-import type { BreakdownAction, BreakdownInput, BreakdownModule, BreakdownPreview, StoryboardHandOccupancyDiagnostics, StoryboardHandRepairPreview, LegacyActionDiagnosisPreview, LegacyActionDiagnosisResults } from './types'
+import type { BreakdownAction, BreakdownInput, BreakdownModule, BreakdownPreview } from './types'
import { breakdownSnapshot, recoveryOptions, workflowCheckpoints } from '../workflows/selectors'
import { getOperation, isOperationRunning, runOperation } from '../workflows/operations'
import ConfirmAction from '../workflows/ConfirmAction.vue'
@@ -21,6 +21,8 @@ import WorkflowExecutionPanel from '../workflows/WorkflowExecutionPanel.vue'
import { useWorkflowExecution } from '../workflows/execution'
import SubjectList from './components/SubjectList.vue'
import StoryboardList from './components/StoryboardList.vue'
+import StoryboardDiagnosis from './components/StoryboardDiagnosis.vue'
+import type { DiagnosisLocation } from './diagnosis'
import { errorMessage } from '../../lib/http'
import { downloadText, nodeLabel } from '../../lib/format'
@@ -32,42 +34,6 @@ const preview = ref
(null)
const previewBusy = ref(false)
const tab = ref('character')
const toolsOpen = ref(false)
-/** 分镜诊断与拆解设置解耦,默认不占用列表空间。 */
-const qualityPanelOpen = ref(false)
-/** 仅打开设置面板时按需查询,不增加页面常驻提示或后台轮询。 */
-const handDiagnostics = ref(null)
-const handDiagnosticsBusy = ref(false)
-const handRepairPreview = ref(null)
-const handRepairBusy = ref(false)
-/** 只在用户主动查看时加载修复候选,避免打开设置就请求额外接口。 */
-async function loadHandRepairPreview(id: string) {
- const version = handDiagnosticsVersion
- handRepairBusy.value = true
- try {
- const data = await breakdownApi.handRepairPreview(id)
- if (version === handDiagnosticsVersion && qualityPanelOpen.value && projectId.value === id) handRepairPreview.value = data
- } catch (cause) {
- if (version === handDiagnosticsVersion && qualityPanelOpen.value && projectId.value === id) actionMessage?.error(errorMessage(cause))
- } finally {
- if (version === handDiagnosticsVersion) handRepairBusy.value = false
- }
-}
-
-let handDiagnosticsVersion = 0
-async function loadHandDiagnostics(id: string) {
- const version = ++handDiagnosticsVersion
- handDiagnosticsBusy.value = true
- handDiagnostics.value = null
- try {
- const data = await breakdownApi.handOccupancyDiagnostics(id)
- if (version === handDiagnosticsVersion && qualityPanelOpen.value && projectId.value === id) handDiagnostics.value = data
- } catch (cause) {
- if (version === handDiagnosticsVersion && qualityPanelOpen.value && projectId.value === id) actionMessage?.error(errorMessage(cause))
- } finally {
- if (version === handDiagnosticsVersion) handDiagnosticsBusy.value = false
- }
-}
-
const moduleOptions: { value: BreakdownModule; label: string; description: string }[] = [
{ value: 'character', label: '人物', description: '人物身份、外观与形态' },
{ value: 'scene', label: '场景', description: '故事空间与环境特征' },
@@ -84,101 +50,37 @@ const summary = computed(() => snapshot.value?.taskSummary)
const validation = computed(() => result.value?.storyboardShotValidation ?? snapshot.value?.storyboardShotValidation)
const projectId = computed(() => project.value?.id ?? '')
const operation = computed(() => getOperation(projectId.value))
-watch([qualityPanelOpen, projectId], () => {
- ++handDiagnosticsVersion
- handDiagnostics.value = null
- handDiagnosticsBusy.value = false
- handRepairPreview.value = null
- handRepairBusy.value = false
- ++legacyResultsRequest
- legacyResultsBusy.value = false
- legacyResults.value = null
+/** 分镜阅读和诊断入口共用当前剧集,不维护独立的诊断集号输入。 */
+const selectedEpisodeNo = ref()
+/** 按正式规划回退到首集,与分镜列表的默认选中保持一致。 */
+const currentEpisodeNo = computed(() => {
+ const available = plans.value.length ? plans.value : shots.value.map(item => item.episodePlan)
+ return (available.find(item => item.episodeNo === selectedEpisodeNo.value) ?? available[0])?.episodeNo
})
-
-/** 历史镜头 AI 诊断使用独立的持久化任务观察器,刷新后可恢复进度。 */
-const legacyDiagnosisExecution = useWorkflowExecution(projectId, 'storyboard-legacy-action-diagnosis')
-const legacyEpisodeNo = ref(3)
-const legacyConcurrency = ref(3)
-const legacyPreview = ref(null)
-const legacyPreviewBusy = ref(false)
-const legacyStarting = ref(false)
-const legacyDiagnosisScope = ref<'episode' | 'project' | 'beat' | 'shot'>('episode')
-const legacyBeatNo = ref()
-const legacyShotNo = ref()
-const legacyResults = ref(null)
-const legacyResultsBusy = ref(false)
-let legacyResultsRequest = 0
-async function loadLegacyResults() {
- const id = projectId.value
- const version = handDiagnosticsVersion
- const requestVersion = ++legacyResultsRequest
- const episode = legacyDiagnosisScope.value === 'project' ? undefined : legacyEpisodeNo.value
- legacyResultsBusy.value = true
- try {
- const data = await breakdownApi.legacyActionDiagnosisResults(id, episode)
- if (requestVersion === legacyResultsRequest && version === handDiagnosticsVersion && projectId.value === id && qualityPanelOpen.value) legacyResults.value = data
- } catch (cause) {
- if (requestVersion === legacyResultsRequest && version === handDiagnosticsVersion && projectId.value === id && qualityPanelOpen.value) actionMessage?.error(errorMessage(cause))
- } finally {
- if (requestVersion === legacyResultsRequest) legacyResultsBusy.value = false
- }
+/** 项目预览涵盖正式剧集与已有分镜剧集,不遗漏已有分镜。 */
+const diagnosisEpisodeNos = computed(() => [
+ ...new Set([
+ ...(project.value?.episodes.map(item => item.episode) ?? []),
+ ...shots.value.map(item => item.episodeNo)
+ ])
+])
+/** 分镜列表仅暴露定位方法。 */
+const storyboardList = ref | null>(null)
+/** 诊断组件仅暴露按范围打开方法。 */
+const diagnosisPanel = ref | null>(null)
+/**
+ * 从分镜卡片直接打开对应的节拍或镜头诊断。
+ * @param location 当前分镜坐标
+ */
+function openShotDiagnosis(location: DiagnosisLocation) {
+ diagnosisPanel.value?.open(location)
}
-watch(() => legacyDiagnosisExecution.query.data.value?.status, (status, previous) => {
- if (status && status !== previous && (status === 'completed' || status === 'failed') && qualityPanelOpen.value) {
- void loadLegacyResults()
- }
-})
-
-watch([legacyEpisodeNo, legacyBeatNo, legacyShotNo, legacyDiagnosisScope, projectId], () => {
- ++legacyResultsRequest
- legacyResultsBusy.value = false
- legacyPreview.value = null
- legacyResults.value = null
-})
-const legacyDiagnosisDescription = computed(() => legacyDiagnosisScope.value === 'project' ? '全项目历史镜头 AI 诊断,已有有效结果将跳过。会产生模型费用,不会修改镜头。' : `第 ${legacyEpisodeNo.value} 集,共 ${legacyPreview.value?.candidateCount ?? '未知'} 个镜头,并发 ${legacyConcurrency.value}。会产生模型费用,已有有效结果将跳过。`)
-
-async function loadLegacyPreview() {
- const id = projectId.value
- const version = handDiagnosticsVersion
- legacyPreviewBusy.value = true
- try {
- const data = await breakdownApi.legacyActionDiagnosisPreview(id, legacyEpisodeNo.value,
- legacyDiagnosisScope.value === 'beat' || legacyDiagnosisScope.value === 'shot' ? legacyBeatNo.value : undefined,
- legacyDiagnosisScope.value === 'shot' ? legacyShotNo.value : undefined)
- if (version === handDiagnosticsVersion && projectId.value === id && qualityPanelOpen.value) legacyPreview.value = data
- } catch (cause) {
- if (version === handDiagnosticsVersion && projectId.value === id && qualityPanelOpen.value) actionMessage?.error(errorMessage(cause))
- } finally {
- if (version === handDiagnosticsVersion) legacyPreviewBusy.value = false
- }
-}
-/** 从 Beat / Shot 悬停入口定位诊断范围,并复用统一费用确认。 */
-async function openLegacyShotDiagnosis(scope: { episodeNo: number; beatNo: number; shotNo?: number }) {
- legacyEpisodeNo.value = scope.episodeNo
- legacyBeatNo.value = scope.beatNo
- legacyShotNo.value = scope.shotNo
- legacyDiagnosisScope.value = scope.shotNo === undefined ? 'beat' : 'shot'
- tab.value = 'storyboard'
- qualityPanelOpen.value = true
- await loadLegacyPreview()
-}
-async function startLegacyDiagnosis() {
- const id = projectId.value
- legacyStarting.value = true
- try {
- const diagnosisTask = await breakdownApi.startLegacyActionDiagnosis(id, {
- confirmed: true,
- ...(legacyDiagnosisScope.value !== 'project' ? { episodeNo: legacyEpisodeNo.value } : {}),
- ...(legacyDiagnosisScope.value === 'beat' || legacyDiagnosisScope.value === 'shot' ? { beatNo: legacyBeatNo.value } : {}),
- ...(legacyDiagnosisScope.value === 'shot' ? { shotNo: legacyShotNo.value } : {}),
- concurrency: legacyConcurrency.value
- })
- await legacyDiagnosisExecution.track(diagnosisTask.executionId, id)
- } catch (cause) {
- actionMessage?.error(errorMessage(cause))
- } finally {
- legacyStarting.value = false
- }
+/**
+ * 诊断问题定位到分镜正文,必要时切换到对应剧集。
+ * @param location 待定位的分镜坐标
+ */
+function locateDiagnosisShot(location: DiagnosisLocation) {
+ void storyboardList.value?.locate(location)
}
const backgroundExecution = useWorkflowExecution(projectId, 'breakdown')
const recovery = computed(() => recoveryOptions(checkpoints.value))
@@ -684,103 +586,23 @@ const rules = {
/>
-
- {{ qualityPanelOpen ? '收起质量诊断' : '分镜质量诊断' }}
-
-
-
分镜质量诊断
-
-
-
-
结构化动作校验
- {{ handDiagnostics ? '刷新' : '查看诊断' }}
-
-
- 镜头 {{ handDiagnostics.shotCount }}
- 有效证据 {{ handDiagnostics.evidenceShotCount }} / {{ handDiagnostics.shotCount }}
- 冲突 {{ handDiagnostics.warningCount }}
- 证据不足
- 部分镜头缺少证据
-
-
-
- 第 {{ issue.episodeNo }} 集 / Beat {{ issue.beatNo }} / Shot {{ issue.shotNo }} / 阶段 {{ issue.phaseNo }}:{{ issue.suggestion }}
-
-
-
-
-
-
历史镜头 AI 诊断
- 预览范围
-
-
- 单集
- 全项目
- Beat {{ legacyBeatNo }}{{ legacyDiagnosisScope === 'shot' ? ` / Shot ${legacyShotNo}` : '' }}
-
- 并发
-
-
-
- 第 {{ legacyPreview.episodeNo }} 集:{{ legacyPreview.candidateCount }} 个镜头,{{ legacyPreview.needsEvidenceCount }} 个待补证据
-
-
-
-
-
- 诊断结果
- 查看结果
-
-
-
- 总计 {{ legacyResults.counts.total }}
- 冲突 {{ legacyResults.counts.conflict }}
- 未发现冲突 {{ legacyResults.counts.clear }}
- 证据不足 {{ legacyResults.counts.insufficient }}
- 证据无效 {{ legacyResults.counts.invalid }}
- 已过期 {{ legacyResults.counts.stale }}
- 未诊断 {{ legacyResults.counts.pending }}
-
-
- 第 {{ item.episodeNo }} 集 / Beat {{ item.beatNo }} / Shot {{ item.shotNo }} · {{ item.title }}
- {{ ({
- conflict_found: '手部冲突',
- insufficient_evidence: '证据不足',
- invalid_evidence: '证据无效',
- stale: '诊断过期',
- not_diagnosed: '尚未诊断',
- no_conflict_found: '未发现冲突'
- } as const)[item.status] }}
-
-
-
-
-
-
-
局部修复候选
-
- {{ handRepairPreview ? '刷新候选' : '查看候选' }}
-
-
-
-
-
第 {{ item.episodeNo }} 集 / Beat {{ item.beatNo }} / Shot {{ item.shotNo }} / 阶段 {{ item.phaseNo }}
-
{{ item.suggestion }}
-
{{ item.blockingReasons.join(';') }}
-
-
-
-
-
-
+
+
+
+
+
进入分镜设计(`/projects/${encodeURIComponent(id)}/breakdown-preview?${query}`, { signal })
},
handOccupancyDiagnostics: (id: string, signal?: AbortSignal) =>
- request(`/projects/${encodeURIComponent(id)}/breakdown/storyboard-hand-occupancy-diagnostics`, { signal }),
+ request(
+ `/projects/${encodeURIComponent(id)}/breakdown/storyboard-hand-occupancy-diagnostics`,
+ { signal }
+ ),
handRepairPreview: (id: string, signal?: AbortSignal) =>
- request(`/projects/${encodeURIComponent(id)}/breakdown/storyboard-hand-occupancy-repair-preview`, { signal }),
+ request(
+ `/projects/${encodeURIComponent(id)}/breakdown/storyboard-hand-occupancy-repair-preview`,
+ { signal }
+ ),
handRepairHistory: (id: string, shotId: string, signal?: AbortSignal) =>
- request(`/projects/${encodeURIComponent(id)}/breakdown/storyboard-hand-occupancy-repair-history/${encodeURIComponent(shotId)}`, { signal }),
+ request(
+ `/projects/${encodeURIComponent(id)}/breakdown/storyboard-hand-occupancy-repair-history/${encodeURIComponent(shotId)}`,
+ { signal }
+ ),
legacyActionDiagnosisPreview: (id: string, episodeNo: number, beatNo?: number, shotNo?: number) => {
const query = new URLSearchParams({ episodeNo: String(episodeNo) })
if (beatNo !== undefined) query.set('beatNo', String(beatNo))
if (shotNo !== undefined) query.set('shotNo', String(shotNo))
- return request(`/projects/${encodeURIComponent(id)}/breakdown/storyboard-legacy-action-diagnosis-preview?${query}`)
+ return request(
+ `/projects/${encodeURIComponent(id)}/breakdown/storyboard-legacy-action-diagnosis-preview?${query}`
+ )
},
- startLegacyActionDiagnosis: (id: string, input: {
- episodeNo?: number
- beatNo?: number
- shotNo?: number
- concurrency: number
- confirmed: true
- }) => request(
- `/projects/${encodeURIComponent(id)}/breakdown/storyboard-legacy-action-diagnose-batch`,
- { method: 'POST', body: input }
- ),
+ startLegacyActionDiagnosis: (
+ id: string,
+ input: {
+ episodeNo?: number
+ beatNo?: number
+ shotNo?: number
+ concurrency: number
+ confirmed: true
+ }
+ ) =>
+ request(
+ `/projects/${encodeURIComponent(id)}/breakdown/storyboard-legacy-action-diagnose-batch`,
+ { method: 'POST', body: input }
+ ),
legacyActionDiagnosisResults: (id: string, episodeNo?: number) => {
const query = episodeNo === undefined ? '' : `?episodeNo=${episodeNo}`
- return request(`/projects/${encodeURIComponent(id)}/breakdown/storyboard-legacy-action-diagnosis-results${query}`)
+ return request(
+ `/projects/${encodeURIComponent(id)}/breakdown/storyboard-legacy-action-diagnosis-results${query}`
+ )
},
latest: (id: string, signal?: AbortSignal) =>
optionalResource(request(`/projects/${encodeURIComponent(id)}/breakdown/latest`, { signal })),
diff --git a/src/features/breakdown/components/StoryboardDiagnosis.vue b/src/features/breakdown/components/StoryboardDiagnosis.vue
new file mode 100644
index 0000000..eecabb3
--- /dev/null
+++ b/src/features/breakdown/components/StoryboardDiagnosis.vue
@@ -0,0 +1,766 @@
+
+
+
+
+
+
+
+ 动作诊断
+ {{ episodeNo === undefined ? '当前集' : `第 ${episodeNo} 集` }} · {{ summaryText }}
+ 诊断中
+
+
查看诊断
+
+
+
+
+ 检查手部动作占用与冲突,帮助定位需要处理的镜头。
+
+
+ 诊断范围
+
+ 当前集
+ 全项目
+
+ {{ scopeLabel }}
+ 当前支持手部动作冲突检查。
+
+
+
+
+
诊断结果
+ 刷新结果
+
+ {{ resultsError }}
+
+
+ 范围内 {{ counts.total }} 镜冲突 {{ counts.conflict }}
+ 证据不足 {{ counts.insufficient }}证据无效 {{ counts.invalid }}已过期 {{ counts.stale }} 未诊断 {{ counts.pending }}未发现冲突 {{ counts.clear }}
+
+
+
+
+ {{
+ counts.total === 0
+ ? '当前范围尚无镜头。'
+ : counts.pending === counts.total
+ ? `${counts.pending} 个镜头尚未诊断,暂无法判断冲突情况。`
+ : resultFilter === 'attention'
+ ? '当前没有需处理的诊断记录。'
+ : '当前筛选下没有镜头。'
+ }}
+
+
查看未诊断镜头
+
+
+
+
+ 第 {{ item.episodeNo }} 集 / 节拍 {{ item.beatNo }} / 镜头 {{ item.shotNo }}
+ {{ diagnosisStatusLabels[item.status] }}
+
+ {{ item.title }}
+
+ {{ description }}
+
+ 定位镜头
+
+
+
+ {{ resultsBusy ? '正在读取当前范围结果…' : '尚未读取结果' }}
+
+
+
+
+
+
+ 结构化动作校验
+ 全项目
+
+
+ 直接读取已有动作证据,不调用模型
+ 刷新校验
+
+ {{ handError }}
+
+
+ 有效动作证据 {{ handDiagnostics.evidenceShotCount }} /
+ {{ handDiagnostics.shotCount }} 镜
+
+
+ {{
+ handDiagnostics.assessment === 'no_shots'
+ ? '全项目尚无镜头。'
+ : handDiagnostics.assessment === 'insufficient_evidence'
+ ? '证据不足,暂无法判断冲突情况。'
+ : handDiagnostics.assessment === 'partial_evidence'
+ ? `部分镜头缺少有效证据;现有证据发现 ${handDiagnostics.warningCount} 项冲突。`
+ : `现有证据发现 ${handDiagnostics.warningCount} 项冲突。`
+ }}
+
+
+
+ 第 {{ issue.episodeNo }} 集 / 节拍 {{ issue.beatNo }} / 镜头 {{ issue.shotNo }} /
+ 阶段
+ {{ issue.phaseNo }}
+
+ {{ issue.suggestion }}
+
+ 定位镜头
+ {{ repairIssue === index ? '收起修复建议' : '查看修复建议' }}
+
+
+
+
{{ repair.suggestion }}
+
+ {{ repair.blockingReasons.join(';') }}
+
+
+
当前没有可用修复建议。
+
+
+
+ {{ handBusy ? '正在读取全项目校验…' : '尚未读取校验' }}
+
+
+
+
+
+ 启动 AI 诊断
+ {{ scopeLabel }} · 已有当前版本有效结果的镜头将跳过。
+
+
+
+ 高级设置
+
+
+
+
+
{{ scopeLabel }} · 范围内 {{ previewCount }} 个镜头
+
+ 缺少结构化动作证据 {{ previews.reduce((sum, item) => sum + item.needsEvidenceCount, 0) }} 镜 ·
+ 快照无效 {{ previews.reduce((sum, item) => sum + item.invalidSnapshotCount, 0) }} 镜
+
+
+ {{ previewError }}
+ AI 诊断会产生模型费用,仅保存诊断记录,不修改镜头。
+
+ {{ previews ? '重新预览范围' : '预览诊断范围' }}
+
+
+
+ 诊断任务进行中,可关闭抽屉继续查看分镜。
+
+
+
+
+
+
+
+
+
diff --git a/src/features/breakdown/components/StoryboardList.vue b/src/features/breakdown/components/StoryboardList.vue
index 12bdaf2..5cda569 100644
--- a/src/features/breakdown/components/StoryboardList.vue
+++ b/src/features/breakdown/components/StoryboardList.vue
@@ -2,19 +2,32 @@
import ContextNotice from '../../../components/ui/ContextNotice.vue'
import { NButton, NSelect, NTag } from 'naive-ui'
-import { computed, ref } from 'vue'
+import { computed, nextTick, ref } from 'vue'
import { Clock3 } from '@lucide/vue'
import { EmptyState } from '../../../components/ui'
import type { EpisodePlan, EpisodeShots } from '../types'
+import type { DiagnosisLocation } from '../diagnosis'
/** Episode → Beat → Shot 的分层查看,不提前加入下一条 graph 的导演字段。 */
-const props = defineProps<{ plans: EpisodePlan[]; episodes: EpisodeShots[] }>()
+const props = defineProps<{
+ /** 正式分集节拍规划。 */
+ plans: EpisodePlan[]
+ /** 正式分集镜头。 */
+ episodes: EpisodeShots[]
+}>()
/** 分镜卡片只负责发出诊断定位,确认及模型任务交由页面处理。 */
-const emit = defineEmits<{ diagnose: [scope: { episodeNo: number; beatNo: number; shotNo?: number }] }>()
-const selected = ref()
+const emit = defineEmits<{ diagnose: [scope: DiagnosisLocation] }>()
+/** 阅读与诊断共用的当前剧集编号。 */
+const selected = defineModel('episodeNo')
+/** 分镜正文根节点,用于定位问题镜头。 */
+const root = ref(null)
+/** 最近定位的镜头或节拍标识,用于保留可见高亮。 */
+const locatedPosition = ref('')
+/** 兼容只有正式镜头而没有单独规划的历史结果。 */
const plans = computed(() => (props.plans.length ? props.plans : props.episodes.map(item => item.episodePlan)))
/** 选择器与正文统一使用最终规划编号;初次读取或当前剧集被移除时回退到第一集。 */
const plan = computed(() => plans.value.find(item => item.episodeNo === selected.value) ?? plans.value[0])
+/** 当前剧集对应的正式镜头。 */
const episode = computed(() => props.episodes.find(item => item.episodeNo === plan.value?.episodeNo))
const purposeLabels: Record = {
establish: '建立场景',
@@ -28,10 +41,31 @@ const purposeLabels: Record = {
resolution: '收束',
hook: '钩子'
}
+/**
+ * 切换剧集并定位问题镜头,尊重系统减少动画设置。
+ * @param location 问题所在的正式剧集、节拍与镜头坐标
+ * @returns 列表更新并完成定位
+ */
+async function locate(location: DiagnosisLocation) {
+ selected.value = location.episodeNo
+ await nextTick()
+ const position = `${location.episodeNo}-${location.beatNo}${location.shotNo === undefined ? '' : `-${location.shotNo}`}`
+ const element = root.value?.querySelector(`[data-shot-position="${position}"]`)
+ if (!element) return
+ locatedPosition.value = position
+ element.focus({ preventScroll: true })
+ element.scrollIntoView({
+ block: 'center',
+ behavior: window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth'
+ })
+}
+/** 仅暴露诊断问题定位能力。 */
+defineExpose({ locate })
-
+
+
+
+
{{ plan.storyGoal }}
@@ -65,12 +102,27 @@ const purposeLabels: Record
= {
本集已完成节拍规划,镜头尚未生成。请等待进度更新,或在确认中断后使用“补齐缺失镜头”。
-
+
{{ String(beat.beatNo).padStart(2, '0') }}
{{ beat.title }}
{{ purposeLabels[beat.purpose] || beat.purpose }}
- AI 诊断
+ AI 诊断
{{ beat.description }}
@@ -78,6 +130,11 @@ const purposeLabels: Record
= {
v-for="shot in episode?.beatShots.find(item => item.beatNo === beat.beatNo)?.shots ?? []"
:key="shot.shotNo"
class="shot-row group"
+ tabindex="-1"
+ :data-shot-position="`${plan.episodeNo}-${beat.beatNo}-${shot.shotNo}`"
+ :class="{
+ 'diagnosis-located': locatedPosition === `${plan.episodeNo}-${beat.beatNo}-${shot.shotNo}`
+ }"
>
镜头 {{ String(shot.shotNo).padStart(2, '0')
@@ -86,8 +143,23 @@ const purposeLabels: Record = {
>
-
{{ shot.title }}
-
AI 诊断
+
+
{{ shot.title }}
+ AI 诊断
{{ shot.description }}
视觉重点 · {{ shot.visualFocus }}
@@ -117,6 +189,11 @@ const purposeLabels: Record
= {