perf(short-drama-agent-front): 优化记录加载与工作区体验
This commit is contained in:
1 parent
d0264c08ce
commit
db9aea1694
111 files changed
+1680
-1290
No files matched your search
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import ContextNotice from '../../components/ui/ContextNotice.vue'
|
||||
import BreakdownSkeleton from './BreakdownSkeleton.vue'
|
||||
import AppForm from '../../components/ui/AppForm.vue'
|
||||
import { NFormItem } from 'naive-ui'
|
||||
import { integerRule, fieldRule } from '../../lib/form-rules'
|
||||
@@ -8,7 +10,7 @@ import WorkspaceActionTooltip from '../../components/ui/WorkspaceActionTooltip.v
|
||||
import { NScrollbar, NButton, NCheckbox, NCollapse, NCollapseItem, NInputNumber, NTab, NTable, NTabs } from 'naive-ui'
|
||||
import { computed, h, nextTick, onScopeDispose, ref, watch } from 'vue'
|
||||
import { useActionMessage } from '../../components/ui/useActionMessage'
|
||||
import { CircleAlert, Layers, LoaderCircle, Settings2, ShieldCheck } from '@lucide/vue'
|
||||
import { CircleAlert, LoaderCircle, Settings2, ShieldCheck } from '@lucide/vue'
|
||||
import { AppDialog, EmptyState, StatusBadge, WorkspaceTools } from '../../components/ui'
|
||||
import QualityPolicySettings from '../generation-config/components/QualityPolicySettings.vue'
|
||||
import { useProjectContext } from '../projects/context'
|
||||
@@ -35,7 +37,15 @@ import { ApiError, errorMessage } from '../../lib/http'
|
||||
import { downloadText } from '../../lib/format'
|
||||
|
||||
/** 拆解工作区:先预览真实分组,再启动;恢复操作根据 checkpoint 分阶段展示。 */
|
||||
const { project, checkpoints, refresh, refreshStageReadiness, stageReadiness, error } = useProjectContext()
|
||||
const context = useProjectContext()
|
||||
const { project, refreshStageReadiness, stageReadiness } = context
|
||||
/** 拆解候选、正式分镜与阶段恢复共用完整拆解记录。 */
|
||||
const breakdownRecords = context.useWorkflowCheckpoints('breakdown')
|
||||
const checkpoints = computed(() => breakdownRecords.data.value ?? [])
|
||||
/** 正文或摘要无法核对时暂停写操作,保留已读结果。 */
|
||||
const error = computed(() => context.error.value || breakdownRecords.error.value)
|
||||
/** 拆解写入后更新本工作流与摘要。 */
|
||||
const refresh = () => context.refreshWorkflow('breakdown')
|
||||
const groupSize = ref(3)
|
||||
const modules = ref<BreakdownModule[]>(['character', 'scene', 'prop'])
|
||||
const preview = ref<BreakdownPreview | null>(null)
|
||||
@@ -54,12 +64,12 @@ const pendingIssues = ref(false)
|
||||
const candidateSafetyOpen = ref(false)
|
||||
/** 从设置交接时绑定项目,离场后禁止打开旧项目预检。 */
|
||||
const pendingSafetyProject = ref('')
|
||||
/** 问题入口统一使用红色文字、图标和柔和底色,交互时保持错误语义。 */
|
||||
/** 问题入口使用中性底面,交互时保留提示文字和焦点颜色。 */
|
||||
const issueButtonTheme = {
|
||||
color: 'var(--app-danger-soft)',
|
||||
colorHover: 'color-mix(in srgb, var(--app-danger-soft), var(--app-danger) 8%)',
|
||||
colorPressed: 'color-mix(in srgb, var(--app-danger-soft), var(--app-danger) 14%)',
|
||||
colorFocus: 'var(--app-danger-soft)',
|
||||
color: 'var(--app-control)',
|
||||
colorHover: 'var(--app-control-hover)',
|
||||
colorPressed: 'var(--app-control-hover)',
|
||||
colorFocus: 'var(--app-control-hover)',
|
||||
textColor: 'var(--app-danger)',
|
||||
textColorHover: 'var(--app-danger)',
|
||||
textColorPressed: 'var(--app-danger)',
|
||||
@@ -270,8 +280,12 @@ const taskStopped = computed(() => execution.value?.status === 'failed' || execu
|
||||
watch(
|
||||
() => backgroundExecution.query.data.value?.status,
|
||||
(status, previous) => {
|
||||
if ((status === 'completed' || status === 'failed') && status !== previous)
|
||||
void Promise.all([refresh(), refreshStageReadiness()])
|
||||
const record = backgroundExecution.query.data.value
|
||||
if (record && previous && (status === 'completed' || status === 'failed') && status !== previous)
|
||||
void Promise.all([
|
||||
context.refreshWorkflow('breakdown', record.projectId, record.id + ':' + status),
|
||||
refreshStageReadiness()
|
||||
])
|
||||
}
|
||||
)
|
||||
/** 结构校验通过后仍可能存在服务端明确标记的质量待审剧集。 */
|
||||
@@ -340,6 +354,9 @@ const issueActionsDisabled = computed(
|
||||
() =>
|
||||
project.value?.status !== 'completed' ||
|
||||
!!error.value ||
|
||||
context.summaryBlocked.value ||
|
||||
breakdownRecords.loading.value ||
|
||||
breakdownRecords.data.value === null ||
|
||||
operation.value.pending ||
|
||||
breakdownBusy.value ||
|
||||
backgroundExecution.discovering.value ||
|
||||
@@ -369,23 +386,27 @@ const issueSignature = computed(() =>
|
||||
problems: quality.value.problems
|
||||
})
|
||||
)
|
||||
/** 首次读取或问题变化时只显示一条汇总,保留可操作的详情入口。 */
|
||||
/** 等拆解记录和任务状态读完再判断,避免把已被正式结果替代的失败当成当前问题。 */
|
||||
const canNotifyIssues = computed(
|
||||
() =>
|
||||
breakdownRecords.data.value !== null &&
|
||||
!breakdownRecords.loading.value &&
|
||||
!breakdownRecords.error.value &&
|
||||
!quality.value.needsRefresh &&
|
||||
!quality.value.loading &&
|
||||
!breakdownBusy.value &&
|
||||
!backgroundExecution.discovering.value
|
||||
)
|
||||
/** 当前会话同一版本的相同问题只通知一次,重审或切集不重复弹出。 */
|
||||
const notifiedIssues = new Set<string>()
|
||||
watch(
|
||||
issueSignature,
|
||||
() => {
|
||||
[issueSignature, canNotifyIssues],
|
||||
([signature, canNotify]) => {
|
||||
if (!canNotify || notifiedIssues.has(signature)) return
|
||||
const executionError = currentWorkflowError.value
|
||||
const invalid = quality.value.issueCount > 0
|
||||
if (
|
||||
quality.value.needsRefresh ||
|
||||
quality.value.loading ||
|
||||
breakdownBusy.value ||
|
||||
backgroundExecution.discovering.value
|
||||
)
|
||||
return
|
||||
if ((!executionError && !invalid) || notifiedIssues.has(issueSignature.value)) return
|
||||
notifiedIssues.add(issueSignature.value)
|
||||
if (!executionError && !invalid) return
|
||||
notifiedIssues.add(signature)
|
||||
actionMessage?.warning(
|
||||
() =>
|
||||
h('div', { class: 'flex flex-wrap items-center gap-3' }, [
|
||||
@@ -427,6 +448,9 @@ const canStart = computed(
|
||||
!backgroundExecution.discovering.value &&
|
||||
!backgroundExecution.discoveryError.value &&
|
||||
!error.value &&
|
||||
!context.summaryBlocked.value &&
|
||||
!breakdownRecords.loading.value &&
|
||||
breakdownRecords.data.value !== null &&
|
||||
(!records.value.length || taskStopped.value)
|
||||
)
|
||||
/** 质量确认始终绑定本次真实预览输入,修改设置后立即撤销未完成启动。 */
|
||||
@@ -525,7 +549,15 @@ async function loadPreview() {
|
||||
* @param action 本次启动或恢复动作
|
||||
*/
|
||||
async function run(action: BreakdownAction) {
|
||||
if (project.value?.status !== 'completed' || operation.value.pending || error.value) return
|
||||
if (
|
||||
project.value?.status !== 'completed' ||
|
||||
operation.value.pending ||
|
||||
error.value ||
|
||||
context.summaryBlocked.value ||
|
||||
breakdownRecords.loading.value ||
|
||||
breakdownRecords.data.value === null
|
||||
)
|
||||
return
|
||||
if (breakdownBusy.value || backgroundExecution.discovering.value || backgroundExecution.discoveryError.value) return
|
||||
if (action === 'start' && !canStart.value) return
|
||||
const permit = action === 'start' ? startPolicy.consumePermit() : null
|
||||
@@ -546,12 +578,12 @@ async function run(action: BreakdownAction) {
|
||||
action,
|
||||
action === 'start' ? { ...input.value, ...permit! } : undefined
|
||||
)
|
||||
await backgroundExecution.track(started.executionId)
|
||||
await backgroundExecution.track(started.executionId, id)
|
||||
return started
|
||||
},
|
||||
{ type: 'info', content: '拆解任务已提交,可在“拆解设置”中查看进度。' }
|
||||
)
|
||||
await refresh()
|
||||
await context.refreshWorkflow('breakdown', id)
|
||||
const cause = operation.value.cause
|
||||
if (
|
||||
!success &&
|
||||
@@ -601,7 +633,15 @@ const isInitialEmpty = computed(
|
||||
|
||||
<template>
|
||||
<!-- 以下是手机完成提示自然滚走、分类导航与设置入口吸顶的拆解工作区 -->
|
||||
<WorkspacePage split compact mobile-scroll class="breakdown-workspace-page" :header-visible="!isInitialEmpty">
|
||||
<BreakdownSkeleton v-if="breakdownRecords.loading.value && breakdownRecords.data.value === null" />
|
||||
<WorkspacePage
|
||||
v-else
|
||||
split
|
||||
compact
|
||||
mobile-scroll
|
||||
class="breakdown-workspace-page"
|
||||
:header-visible="!isInitialEmpty"
|
||||
>
|
||||
<template #header>
|
||||
<!-- 以下是拆解状态与设置 -->
|
||||
<div class="workspace-toolbar">
|
||||
@@ -653,9 +693,7 @@ const isInitialEmpty = computed(
|
||||
v-if="startPolicy.reviewOpen.value && startPolicy.policy.value"
|
||||
class="breakdown-policy-review"
|
||||
>
|
||||
<p class="text-sm leading-6 text-muted">
|
||||
请核对动作与物理规则,修改将在继续时保存。确认会保存到当前项目,规则未变时不再重复提醒。
|
||||
</p>
|
||||
<p class="text-sm leading-6 text-muted">确认后保存本项目规则。规则更新时会再次提醒。</p>
|
||||
<QualityPolicySettings
|
||||
ref="qualityForm"
|
||||
:key="startPolicy.editorKey.value"
|
||||
@@ -687,14 +725,9 @@ const isInitialEmpty = computed(
|
||||
{{ backgroundExecution.discoveryError.value }}
|
||||
<NButton text @click="backgroundExecution.discover">重新读取后台状态</NButton>
|
||||
</p>
|
||||
<div class="flex flex-wrap items-start justify-between gap-3">
|
||||
<div>
|
||||
<h2 class="flex items-center gap-2 font-semibold"><Layers :size="17" />拆解设置</h2>
|
||||
<p class="mt-2 text-xs leading-5 text-muted">
|
||||
按所选模块拆解已保存的 {{ project.episodes.length }} 集剧本。
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-xs leading-5 text-muted">
|
||||
已保存 {{ project.episodes.length }} 集,可按模块拆解。
|
||||
</p>
|
||||
<AppForm
|
||||
class="breakdown-settings-form"
|
||||
:model="formModel"
|
||||
@@ -807,7 +840,7 @@ const isInitialEmpty = computed(
|
||||
{{ startPolicy.error.value }}
|
||||
</p>
|
||||
<p v-if="project.status === 'generating'" class="mt-4 text-xs text-danger">
|
||||
剧本仍在生成,暂不允许启动拆解,避免读取到不完整的剧集。
|
||||
剧本生成后可开始拆解。
|
||||
</p>
|
||||
<p v-if="breakdownBusy" class="mt-4 text-xs leading-5 text-muted">
|
||||
拆解进行中,结束后自动更新结果。
|
||||
@@ -908,11 +941,12 @@ const isInitialEmpty = computed(
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<ContextNotice v-if="breakdownRecords.error.value" type="error" role="alert">
|
||||
{{ breakdownRecords.error.value }}
|
||||
<NButton text size="small" @click="breakdownRecords.refresh">重试读取</NButton>
|
||||
</ContextNotice>
|
||||
<NScrollbar v-if="!project?.episodes.length" class="panel-scroll panel">
|
||||
<EmptyState
|
||||
title="还没有可拆解的剧集"
|
||||
description="先完成剧本创作。拆解会使用已保存的正式剧集,无需重新上传。"
|
||||
/>
|
||||
<EmptyState title="还没有可拆解的剧集" description="请先完成剧本创作。" />
|
||||
</NScrollbar>
|
||||
<template v-else>
|
||||
<section class="breakdown-results-section" :data-breakdown-source="quality.source">
|
||||
@@ -998,7 +1032,7 @@ const isInitialEmpty = computed(
|
||||
<EmptyState
|
||||
class="breakdown-initial-empty"
|
||||
title="还没有拆解结果"
|
||||
description="点击“拆解设置”,选择需要的模块和分组,预览后再确认生成。"
|
||||
description="在拆解设置中选择范围,再预览并确认。"
|
||||
>
|
||||
<NButton
|
||||
type="primary"
|
||||
@@ -1100,7 +1134,7 @@ const isInitialEmpty = computed(
|
||||
<EmptyState
|
||||
v-else
|
||||
title="尚无抽取任务记录"
|
||||
description="启动拆解后会持续保存进度;预览只展示本次处理范围,不会直接开始执行。"
|
||||
description="预览处理范围,确认后开始拆解。进度会自动保存。"
|
||||
/>
|
||||
</div>
|
||||
</NScrollbar>
|
||||
@@ -1149,7 +1183,7 @@ const isInitialEmpty = computed(
|
||||
role="status"
|
||||
class="text-xs leading-6 text-muted"
|
||||
>
|
||||
任务状态或结果尚未确认,请先重新读取状态与结果。
|
||||
请刷新任务状态。
|
||||
</p>
|
||||
<!-- 以下是从当前动作冲突带入角色和动作的例外入口,独立保存规则且保留旧例外 -->
|
||||
<ActionExceptionRepair
|
||||
@@ -1193,21 +1227,21 @@ const isInitialEmpty = computed(
|
||||
<ConfirmAction
|
||||
:loading="isOperationRunning(operation, '正在重试失败抽取')"
|
||||
label="重试失败抽取"
|
||||
description="只重新提取失败的人物、场景或道具,不重做已完成内容。镜头问题请使用对应修复操作。"
|
||||
description="重试失败的主体提取。镜头问题请单独修复。"
|
||||
acknowledgement
|
||||
:disabled="issueActionsDisabled || !recovery.retry"
|
||||
@confirm="run('retry')"
|
||||
/><ConfirmAction
|
||||
:loading="isOperationRunning(operation, '正在补齐镜头')"
|
||||
label="继续整理镜头"
|
||||
description="复用已生成内容,修正可确定的状态标记并补齐缺失镜头,再执行完整质量检查。"
|
||||
description="补齐缺失镜头、修正状态并重新检查。已有内容会复用。"
|
||||
acknowledgement
|
||||
:disabled="issueActionsDisabled || !recovery.shots"
|
||||
@confirm="run('resume-shots')"
|
||||
/><ConfirmAction
|
||||
:loading="isOperationRunning(operation, '正在修复分镜绑定')"
|
||||
label="修复分镜绑定"
|
||||
description="保留已有镜头,补齐人物、场景、道具及其形态的对应关系,然后检查并保存。"
|
||||
description="补齐镜头关联的主体和形态,检查后保存。"
|
||||
acknowledgement
|
||||
:disabled="issueActionsDisabled || !recovery.storyboard"
|
||||
@confirm="run('resume-storyboard')"
|
||||
|
||||
@@ -260,10 +260,7 @@ onScopeDispose(() => {
|
||||
<template>
|
||||
<!-- 以下是拆解后从具体冲突添加动作例外的模块,角色和动作均不可自由输入 -->
|
||||
<section class="workspace-panel space-y-4" aria-label="动作例外修订">
|
||||
<WorkspaceSectionHeading
|
||||
title="动作例外"
|
||||
description="只为剧本明确允许的特殊动作添加例外。角色、部位和动作从当前问题自动带入,你只需填写允许原因。"
|
||||
/>
|
||||
<WorkspaceSectionHeading title="动作例外" description="仅为剧本明确允许的动作填写例外原因。" />
|
||||
<p v-if="loading" role="status" class="text-xs text-muted">正在读取已有动作例外…</p>
|
||||
<div v-if="error" role="alert" class="space-y-2 text-sm text-danger">
|
||||
<p>{{ error }}</p>
|
||||
@@ -271,7 +268,7 @@ onScopeDispose(() => {
|
||||
</div>
|
||||
<QualityPolicyExceptions :exceptions="exceptions" />
|
||||
<p v-if="!targets.length && !loading" class="text-xs leading-6 text-muted">
|
||||
当前没有能准确带入角色与动作的冲突。缺少动作证据或其他结构错误时,请先使用人工修订。
|
||||
缺少可确认的动作冲突,请先人工修订。
|
||||
</p>
|
||||
<article v-for="target in targets" :key="target.key" class="space-y-3" :data-exception-target="target.key">
|
||||
<div class="flex flex-wrap items-center justify-between gap-3">
|
||||
@@ -296,9 +293,7 @@ onScopeDispose(() => {
|
||||
</ul>
|
||||
<!-- 以下是只填写原因的例外草稿,后端实际范围是同一角色的对应部位 -->
|
||||
<div v-if="selected?.key === target.key" class="space-y-3">
|
||||
<p class="text-xs leading-6 text-muted">
|
||||
此例外按项目保存,同一角色或物品在其他镜头中的同类占用冲突也会受影响;其他错误仍会检查。
|
||||
</p>
|
||||
<p class="text-xs leading-6 text-muted">例外也适用于本项目中同一角色或物品的同类冲突。</p>
|
||||
<NFormItem label="允许原因"
|
||||
><NInput
|
||||
v-model:value="reason"
|
||||
|
||||
@@ -234,7 +234,7 @@ function refreshPreview() {
|
||||
* @returns 当前版本核对完成
|
||||
*/
|
||||
async function assertCheckpoint(id: string, cp: string | undefined): Promise<void> {
|
||||
const records = await projectsApi.checkpoints(id)
|
||||
const records = await projectsApi.checkpoints(id, undefined, 'breakdown')
|
||||
const latest = workflowCheckpoints(records, 'breakdown').at(-1)
|
||||
if (
|
||||
!cp ||
|
||||
@@ -366,7 +366,7 @@ async function commit() {
|
||||
v-model:open="open"
|
||||
title="候选安全预检"
|
||||
:busy="writing"
|
||||
description="核对剧本来源、活动任务和已有制作成果。无来源关系需逐条人工确认;全部预检通过后再确认采用正式结果。"
|
||||
description="逐条核对来源不明的关系,检查通过后再采用。"
|
||||
>
|
||||
<div class="space-y-6" :aria-busy="checking">
|
||||
<p v-if="checking" role="status" class="text-sm text-muted">正在读取安全预检…</p>
|
||||
@@ -375,7 +375,7 @@ async function commit() {
|
||||
正在等待最新保存记录,请刷新状态后继续核对。
|
||||
</p>
|
||||
<p v-else-if="!canCheck && !current" role="status" class="text-sm text-muted">
|
||||
当前任务或候选审核状态尚未满足预检条件,请刷新状态。
|
||||
候选暂不能检查,请刷新状态。
|
||||
</p>
|
||||
<p v-if="actionError" role="alert" class="text-sm text-danger">{{ actionError }}</p>
|
||||
<template v-if="current && !committed">
|
||||
@@ -408,7 +408,7 @@ async function commit() {
|
||||
<section class="min-w-0 space-y-4" aria-label="无来源关系">
|
||||
<WorkspaceSectionHeading
|
||||
title="核对关系来源"
|
||||
description="移除仅影响这条候选关系,不删除主体或镜头,也不会改写剧本。每次处理一条。"
|
||||
description="仅移除这条候选关联。主体、镜头和剧本会保留。"
|
||||
/>
|
||||
<article
|
||||
v-for="(item, index) in targets"
|
||||
@@ -475,7 +475,7 @@ async function commit() {
|
||||
</section>
|
||||
</div>
|
||||
<p v-if="ready" class="text-sm leading-7 text-muted">
|
||||
采用候选将替换正式主体、形态与分镜。保存时还会检查剧本变化及已有制作成果,关系修复不会自动执行这一步。
|
||||
采用后将替换正式主体、形态和分镜。保存前会检查剧本及已有成果。
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@@ -101,10 +101,7 @@ const plans = computed(() => {
|
||||
<template>
|
||||
<!-- 以下是正式时长与候选来源的只读诊断 -->
|
||||
<section class="space-y-4" aria-label="时长预算诊断">
|
||||
<WorkspaceSectionHeading
|
||||
title="时长预算"
|
||||
description="分别核对正式剧集目标和拆解时采用的预算。失败候选可用于复盘。"
|
||||
/>
|
||||
<WorkspaceSectionHeading title="时长预算" description="核对剧集目标时长与拆解预算。" />
|
||||
<p v-if="query.loading.value" class="text-sm text-muted">正在读取时长预算…</p>
|
||||
<div v-else-if="query.error.value" class="space-y-2 text-sm">
|
||||
<p>{{ query.error.value }}</p>
|
||||
|
||||
@@ -185,7 +185,7 @@ function finish() {
|
||||
</p>
|
||||
</article>
|
||||
<p v-if="!quality && !groups.length && !workflowError" class="py-5 text-sm text-muted">
|
||||
当前没有具体错误描述,可读取修复清单确认待处理镜头。
|
||||
请查看修复清单中的待处理镜头。
|
||||
</p>
|
||||
</div>
|
||||
<!-- 以下是独立的问题修订与阶段恢复模块,不承载生成配置或候选提交 -->
|
||||
|
||||
@@ -257,10 +257,7 @@ async function repairActions() {
|
||||
<template>
|
||||
<!-- 以下是仅针对候选的主体与形态补齐模块 -->
|
||||
<section v-if="targets.length" class="workspace-panel space-y-4" aria-label="候选主体修复">
|
||||
<WorkspaceSectionHeading
|
||||
title="补齐候选主体引用"
|
||||
description="选择当前缺失引用及该主体已有形态,确认后保存为新的候选版本。"
|
||||
/>
|
||||
<WorkspaceSectionHeading title="补齐候选主体引用" description="选择缺失的主体关联和形态,保存为新候选。" />
|
||||
<div class="grid grid-cols-1 gap-4 lg:grid-cols-3">
|
||||
<NFormItem label="目标镜头"
|
||||
><NSelect
|
||||
@@ -300,12 +297,9 @@ async function repairActions() {
|
||||
</section>
|
||||
<!-- 以下是动作质量阻断的批量语义修订模块,不提供 kind 修改或自动修复 -->
|
||||
<section v-if="review?.actionQualityBlocks.length" class="workspace-panel space-y-4" aria-label="候选批量动作修复">
|
||||
<WorkspaceSectionHeading
|
||||
title="批量修订候选动作"
|
||||
description="仅展示当前阻断镜头。逐项选择并填写可观察的动作过程,提交前核对修复摘要。"
|
||||
/>
|
||||
<WorkspaceSectionHeading title="批量修订候选动作" description="填写镜头中能看到的动作,提交前核对修订。" />
|
||||
<p v-if="!actionDrafts.length" class="text-xs text-muted">
|
||||
此处仅支持填写结果状态引用的动作修订。其它问题可先使用下方“继续整理镜头”,由系统检查可修正项并保留剩余阻断。
|
||||
此处仅补写动作过程。其他问题可用“继续整理镜头”检查。
|
||||
</p>
|
||||
<article
|
||||
v-for="draft in actionDrafts"
|
||||
@@ -318,9 +312,7 @@ async function repairActions() {
|
||||
{{ draft.actionId }}</NCheckbox
|
||||
>
|
||||
<p class="text-xs leading-6 text-muted">原始状态:{{ draft.original }}</p>
|
||||
<p v-if="draft.parallel" class="text-xs text-danger">
|
||||
这个动作与其他动作同时发生。请先核对它们的关系,避免修改后互相冲突。
|
||||
</p>
|
||||
<p v-if="draft.parallel" class="text-xs text-danger">此动作与其他动作同时发生,请核对是否冲突。</p>
|
||||
<NInput
|
||||
v-model:value="draft.description"
|
||||
type="textarea"
|
||||
|
||||
@@ -167,9 +167,7 @@ onScopeDispose(reset)
|
||||
<p v-for="reason in readiness.blockingReasons" :key="reason" class="text-muted">
|
||||
{{ diagnosisReason(reason) }}
|
||||
</p>
|
||||
<p v-if="repairEligible" class="text-muted">
|
||||
可点击“查看并修订动作”,读取当前正式规划后再明确保存。
|
||||
</p>
|
||||
<p v-if="repairEligible" class="text-muted">查看并修订动作后,可保存修改。</p>
|
||||
<article
|
||||
v-for="(candidate, index) in readiness.repairCandidates"
|
||||
:key="index"
|
||||
|
||||
@@ -138,9 +138,7 @@ function updateTransition(resource: ResourceOccupancy, value: 'release' | 'trans
|
||||
<h3 class="text-sm font-medium">动作阶段</h3>
|
||||
<NButton size="small" :disabled="disabled" @click="addPhase">添加阶段</NButton>
|
||||
</div>
|
||||
<p class="text-xs leading-6 text-muted">
|
||||
同阶段动作视为同时发生;需要释放资源后再执行的动作,请安排在不同阶段。已有证据会完整保留。
|
||||
</p>
|
||||
<p class="text-xs leading-6 text-muted">同阶段动作同时发生。需要先后完成的动作请分开安排。</p>
|
||||
<section
|
||||
v-for="(phase, index) in draft.durationPlanning.phases"
|
||||
:key="index"
|
||||
|
||||
@@ -987,10 +987,7 @@ defineExpose({ open })
|
||||
</div>
|
||||
<p v-else class="text-muted">尚未预览,可在底部预览范围。</p>
|
||||
</section>
|
||||
<p class="text-muted">
|
||||
仅查看已有记录,不调用
|
||||
AI;未填写记录不代表镜头有误,也不改变正式审核结果。
|
||||
</p>
|
||||
<p class="text-muted">缺少记录不代表镜头有误。请以正式审核为准。</p>
|
||||
</div>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
@@ -1033,7 +1030,7 @@ defineExpose({ open })
|
||||
</div>
|
||||
<p v-if="previewError" class="text-danger" role="alert">{{ previewError }}</p>
|
||||
<p class="text-xs text-muted mt-3">
|
||||
AI 复查会产生模型费用,仅保存检查记录,不修改镜头。请先在底部预览范围,再确认启动。
|
||||
先预览范围,再确认 AI 复查。复查收费,只保存检查结果。
|
||||
</p>
|
||||
<p v-if="execution.active.value" class="text-xs text-muted mt-3">
|
||||
诊断任务进行中,可关闭弹窗继续查看分镜。
|
||||
@@ -1134,7 +1131,7 @@ defineExpose({ open })
|
||||
.diagnosis-scope-bar .diagnosis-scope-controls {
|
||||
margin-top: 0;
|
||||
}
|
||||
/* 主结论先于记录统计展示,只有真实问题使用错误底色。 */
|
||||
/* 主结论先于记录统计展示,问题摘要沿用公共提示样式。 */
|
||||
.diagnosis-result-overview {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
@@ -1143,7 +1140,6 @@ defineExpose({ open })
|
||||
}
|
||||
.diagnosis-result-overview.problem-surface {
|
||||
padding: 20px;
|
||||
background: var(--app-danger-soft);
|
||||
}
|
||||
/* 成功摘要仅强调当前审核已通过,沿用公共主题的柔和成功底色。 */
|
||||
.diagnosis-result-overview.diagnosis-result-success {
|
||||
@@ -1233,9 +1229,6 @@ defineExpose({ open })
|
||||
.diagnosis-result-item {
|
||||
@apply p-3 bg-(--app-control) space-y-2;
|
||||
}
|
||||
.diagnosis-result-item.problem-surface {
|
||||
background: var(--app-danger-soft);
|
||||
}
|
||||
/* 卡片操作在所有尺寸保留图标和完整文字,空间不足时按按钮自然换行。 */
|
||||
.diagnosis-card-actions {
|
||||
display: flex;
|
||||
|
||||
@@ -117,7 +117,7 @@ defineExpose({ locate })
|
||||
</p>
|
||||
</div>
|
||||
<ContextNotice v-if="!episode" type="info" :show-icon="false" class="mb-5">
|
||||
本集已完成节拍规划,镜头尚未生成。请等待进度更新,或在确认中断后使用“继续整理镜头”。
|
||||
本集镜头尚未生成。若任务已中断,可继续整理镜头。
|
||||
</ContextNotice>
|
||||
<section
|
||||
v-for="beat in plan.beats"
|
||||
@@ -134,7 +134,7 @@ defineExpose({ locate })
|
||||
<div class="beat-heading">
|
||||
<span class="beat-number">{{ String(beat.beatNo).padStart(2, '0') }}</span>
|
||||
<h3 class="text-sm font-semibold">{{ beat.title }}</h3>
|
||||
<NTag size="small" :bordered="false">{{ purposeLabels[beat.purpose] || beat.purpose }}</NTag>
|
||||
<NTag size="small" :bordered="false">{{ purposeLabels[beat.purpose] ?? '用途待确认' }}</NTag>
|
||||
<NButton
|
||||
v-if="plan && !diagnosisDisabled"
|
||||
size="tiny"
|
||||
@@ -201,11 +201,7 @@ defineExpose({ locate })
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
<EmptyState
|
||||
v-else
|
||||
title="分镜规划尚未生成"
|
||||
description="完成主体整理后,工作流会先规划每集的剧情节拍,再逐集生成镜头。"
|
||||
/>
|
||||
<EmptyState v-else title="分镜规划尚未生成" description="整理主体后会逐集生成镜头。" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -218,7 +214,8 @@ defineExpose({ locate })
|
||||
outline: none;
|
||||
}
|
||||
.breakdown-storyboard .diagnosis-problem-located {
|
||||
background: var(--app-danger-soft);
|
||||
background: var(--app-control-hover);
|
||||
box-shadow: inset 2px 0 color-mix(in srgb, var(--app-danger) 45%, transparent);
|
||||
}
|
||||
.beat-section {
|
||||
@apply mt-[25px] pt-[23px];
|
||||
|
||||
@@ -202,7 +202,7 @@ onScopeDispose(() => {
|
||||
<p class="text-xs leading-6 text-muted">仅修订尚未入库的镜头,保存后再恢复拆解。</p>
|
||||
<p v-if="error" role="alert" class="text-xs leading-6 text-danger">{{ error }}</p>
|
||||
<p v-if="plan && !plan.repairPlan.length && !error" role="status" class="text-xs text-muted">
|
||||
当前没有可人工修订的质量阻断镜头,不代表未诊断镜头已通过。
|
||||
暂无可人工修订的镜头。未检查的镜头仍待确认。
|
||||
</p>
|
||||
<article
|
||||
v-for="item in plan?.repairPlan"
|
||||
@@ -222,7 +222,7 @@ onScopeDispose(() => {
|
||||
<AppDialog
|
||||
v-model:open="open"
|
||||
:title="targetLabel"
|
||||
description="调整镜头中的动作和先后顺序,保存时会重新检查这个镜头。此操作不调用模型。"
|
||||
description="可免费修订动作顺序,保存时会检查本镜。"
|
||||
:busy="operation.pending"
|
||||
wide
|
||||
>
|
||||
@@ -245,7 +245,7 @@ onScopeDispose(() => {
|
||||
><ConfirmAction
|
||||
:key="draftVersion"
|
||||
label="保存人工修订"
|
||||
description="保存当前镜头的动作安排。如果内容版本已变化或检查仍未通过,需要先处理问题。保存后还需继续拆解并提交正式结果。"
|
||||
description="保存动作后,请继续拆解并提交结果。若版本已变或检查未通过,请先处理。"
|
||||
:disabled="disabled || operation.pending || !current || !!issue"
|
||||
@confirm="save"
|
||||
/></template>
|
||||
|
||||
@@ -116,7 +116,7 @@ const filtered = computed(() =>
|
||||
<EmptyState
|
||||
v-else
|
||||
:title="subjects.length ? '没有匹配的主体' : '尚无主体结果'"
|
||||
description="主体会在抽取、合并与档案整理完成后出现在这里。若未启用该模块,则不会生成此类主体。"
|
||||
description="启用此模块并完成拆解后,即可查看主体。"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user