From c4b43b97251aa9ad68004baaffadd2b5359c66d4 Mon Sep 17 00:00:00 2001
From: GJ
Date: Sat, 17 Oct 2026 22:09:28 +0800
Subject: [PATCH] =?UTF-8?q?feat(short-drama-agent-front):=20=E5=AE=8C?=
=?UTF-8?q?=E5=96=84=E8=B4=A8=E9=87=8F=E8=A7=84=E5=88=99=E7=A1=AE=E8=AE=A4?=
=?UTF-8?q?=E4=B8=8E=E4=B8=AD=E6=96=87=E4=BA=A4=E4=BA=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
AGENTS.md | 11 +
src/App.vue | 2 +-
src/components/ui/AppDialog.vue | 1 +
src/components/ui/FieldLabel.vue | 7 +-
src/components/ui/IssueHint.vue | 3 +-
src/components/ui/RawDataDetails.vue | 16 ++
src/components/ui/WorkspaceTools.vue | 5 +
src/components/ui/useActionMessage.ts | 2 +
src/features/breakdown/BreakdownPage.vue | 134 +++++++--
src/features/breakdown/action-exceptions.ts | 66 +++++
.../components/ActionExceptionRepair.vue | 223 +++++++++++++++
.../components/BreakdownCandidatePanel.vue | 2 +-
.../components/BreakdownIssuesDialog.vue | 18 +-
.../breakdown/components/CandidateRepairs.vue | 2 +-
.../components/StoryboardQualityRepair.vue | 4 +-
src/features/breakdown/repair.ts | 2 +-
.../breakdown/useBreakdownStartPolicy.ts | 246 +++++++++++++++++
.../components/GenerationModelControls.vue | 12 +-
.../components/GenerationOptionFields.vue | 27 +-
.../components/QualityPolicyExceptions.vue | 26 ++
.../components/QualityPolicySettings.vue | 229 +++++++--------
src/features/production/ProductionPage.vue | 4 +-
.../components/AdvancedProduction.vue | 3 +-
.../components/EpisodeAssemblyPanel.vue | 2 +-
.../production/components/KeyframeDialog.vue | 7 +-
.../components/KeyframeValidationHistory.vue | 5 +-
.../components/ModelCapabilities.vue | 9 +-
.../components/ProductionReceipt.vue | 3 +-
.../components/ProviderInputInspector.vue | 3 +-
.../production/components/QualityDialog.vue | 9 +-
.../production/components/QualityResult.vue | 12 +-
.../components/ShotProductionAssets.vue | 2 +-
.../components/VideoQualityDiagnostics.vue | 3 +-
.../production/production-messages.ts | 3 +-
.../production/useAdvancedProduction.ts | 2 +-
src/features/production/useQuality.ts | 6 +-
.../project-assets/AssetLibraryPage.vue | 66 +++--
.../project-assets/ProjectAssetsPage.vue | 58 ++--
src/features/project-assets/categories.ts | 23 ++
.../components/AssetCategorySelect.vue | 22 ++
src/features/projects/ProjectLayout.vue | 4 +-
src/features/projects/ProjectsPage.vue | 2 +-
.../components/DeleteProjectDialog.vue | 5 +-
.../projects/quality-policy-confirmation.ts | 93 +++++++
.../projects/useProjectStageAccess.ts | 13 +-
src/features/storyboard/StoryboardPage.vue | 11 +-
.../components/GenerationReceipt.vue | 13 +-
.../components/MotionRevisionEditor.vue | 5 +-
.../storyboard/components/ShotTools.vue | 30 +-
.../components/SubjectCoverageAudit.vue | 7 +-
.../subject-identity/SubjectIdentityPage.vue | 16 +-
.../components/CastingCandidateDialog.vue | 4 +-
.../components/IdentityImageDialog.vue | 26 +-
.../components/StableAnchorQualityDialog.vue | 2 +-
.../subject-images/SubjectImagesPage.vue | 11 +-
.../components/FormPromptBatch.vue | 3 +-
.../components/FormPromptDialog.vue | 6 +-
.../components/GenerateImageDialog.vue | 10 +-
.../components/ImageGalleryDialog.vue | 9 +-
.../visual-style/components/StyleEditor.vue | 37 ++-
src/features/workflows/HistoryPanel.vue | 2 +-
.../workflows/WorkflowDiagnosticsDialog.vue | 25 +-
.../workflows/WorkflowExecutionPanel.vue | 5 +-
src/features/workflows/execution.ts | 13 +-
src/features/workflows/operations.ts | 18 +-
src/lib/assets.ts | 2 +-
src/lib/form-rules.ts | 4 +-
src/lib/format.ts | 24 +-
src/lib/http.ts | 21 +-
src/lib/user-facing-text.ts | 66 +++++
tests/components/ui/ActionMenu.test.ts | 22 +-
tests/components/ui/form.test.ts | 14 +-
.../features/breakdown/BreakdownPage.test.ts | 99 ++++++-
.../breakdown/action-exceptions.test.ts | 158 +++++++++++
tests/features/breakdown/start-policy.test.ts | 261 ++++++++++++++++++
.../generation-config/options.test.ts | 2 +-
tests/features/production/quality.test.ts | 2 +-
tests/features/project-assets/library.test.ts | 22 +-
.../features/projects/quality-policy.test.ts | 102 ++++---
.../subject-images/asset-impact.test.ts | 2 +-
tests/features/workflows/execution.test.ts | 4 +-
tests/features/workflows/pages.test.ts | 30 +-
tests/fixtures/breakdown-candidate.ts | 22 ++
tests/lib/http.test.ts | 2 +-
tests/lib/user-facing-text.test.ts | 30 ++
85 files changed, 2059 insertions(+), 480 deletions(-)
create mode 100644 src/components/ui/RawDataDetails.vue
create mode 100644 src/features/breakdown/action-exceptions.ts
create mode 100644 src/features/breakdown/components/ActionExceptionRepair.vue
create mode 100644 src/features/breakdown/useBreakdownStartPolicy.ts
create mode 100644 src/features/generation-config/components/QualityPolicyExceptions.vue
create mode 100644 src/features/project-assets/categories.ts
create mode 100644 src/features/project-assets/components/AssetCategorySelect.vue
create mode 100644 src/features/projects/quality-policy-confirmation.ts
create mode 100644 src/lib/user-facing-text.ts
create mode 100644 tests/features/breakdown/action-exceptions.test.ts
create mode 100644 tests/features/breakdown/start-policy.test.ts
create mode 100644 tests/lib/user-facing-text.test.ts
diff --git a/AGENTS.md b/AGENTS.md
index 0776ae2..28fdc4b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -33,6 +33,15 @@
- 维持项目现有简洁、扁平的视觉风格。用标题、简短说明、留白和对齐区分普通功能区域,避免无意义的底色、边框和装饰线。
- 页面文案保持精简,说明应帮助用户理解当前操作;不把大量错误、技术细节和重复提示堆在设置页面。
+### 面向普通用户的文案
+
+- 默认使用者不了解软件开发。页面、弹窗、按钮、说明、校验、空状态和错误提示不得直接描述“前端做什么”“后端做什么”,应说明当前结果、影响和下一步操作。
+- 英文技术术语优先改成易懂的中文,例如 `Checkpoint` 用“保存记录”、`Storyboard` 用“分镜”、`Prompt` 用“画面描述”或“提示词”、`Thinking` 用“深度思考”。不要把内部字段名、错误码、任务标识直接作为主要说明。
+- 接口返回的系统提示也需要在展示层转换为可读中文;错误详情只提取有助于操作的业务原因,不把调试对象、堆栈或整段原始数据直接输出给用户。原始错误和错误码保留在数据层,不改动业务判断依据。
+- 只调整展示文案,不翻译或改写请求字段、枚举值、接口地址、用户创作的剧本与提示词正文、文件名、自定义名称或模型品牌。分类等内部值使用中文选项展示,提交仍保留真实取值。
+- 费用、覆盖、删除、适用范围与待审核限制必须保留并说清楚,不能为了简化文字改变功能含义。无法确认的能力不要用容易误解的描述代替。
+- 必要的原始技术数据放在默认收起的“高级详情”或导出结果中,日常操作先展示中文摘要。同一弹窗的操作统一放入公共 `footer`,避免正文操作与默认关闭按钮重复。
+
### 全屏抽屉与关闭入口
- 新建剧本、项目全局配置、拆解设置、拆解问题等已确认使用全屏的界面统一复用 `AppDrawer`。后续同类复杂表单、设置和问题处理界面默认沿用全屏抽屉;简短确认或轻量提示仍可使用 `AppDialog`。
@@ -65,6 +74,8 @@
### 设置、问题处理与任务进度
- 拆解设置与问题处理分开:设置界面负责模块选择、分组预览、启动拆解、候选确认与提交;问题界面负责错误查看、分镜定位、人工修订、读取修复清单及阶段恢复。
+- 首次拆解前只确认表现方式、动作许可和自定义规则,不显示精确动作例外的空白编辑行。已有例外可只读核对,隐藏输入不能清空已有规则或在保存时覆盖后来新增的例外。
+- 新增精确动作例外统一放在拆解后的问题修订中,从当前版本的真实冲突证据自动带入角色、部位或物品及动作,用户填写允许原因。证据缺失时不能猜测或用其他镜头代替;按后端实际范围说明影响,保存例外不能直接标记质量通过。
- 不在拆解设置中重复堆放详细错误列表和修复说明;问题按剧集、节拍、镜头分组并去重,保留后端原始问题及可定位位置。
- 从问题界面定位正文时,先关闭抽屉,等离场和焦点约束释放后再定位,不能同时叠加两个主界面。
- 后端从其他入口启动或重新执行任务时,前端也应发现任务并显示真实运行阶段、进度、作用范围及更新时间;重新进入页面后能够恢复观察,不能只依赖前端本次点击形成的加载状态。
diff --git a/src/App.vue b/src/App.vue
index 1aa9870..f4136ec 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -273,7 +273,7 @@ const menuOptions = computed(() => {
- - API 地址
+ - 服务地址
-
{{ apiBase }}
diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue
index a8dce48..4c320d9 100644
--- a/src/components/ui/AppDialog.vue
+++ b/src/components/ui/AppDialog.vue
@@ -161,6 +161,7 @@ onBeforeUnmount(() => {
.app-dialog .dialog-footer {
@apply flex justify-end gap-2;
+ width: 100%;
align-items: center;
padding-top: 0;
}
diff --git a/src/components/ui/FieldLabel.vue b/src/components/ui/FieldLabel.vue
index eb2f319..8bc0978 100644
--- a/src/components/ui/FieldLabel.vue
+++ b/src/components/ui/FieldLabel.vue
@@ -3,6 +3,7 @@ import { ref } from 'vue'
import { NPopover } from 'naive-ui'
import type { PopoverProps } from 'naive-ui'
import { CircleHelp } from '@lucide/vue'
+import { userFacingText } from '../../lib/user-facing-text'
/** 字段标签与按需打开的说明,适用于项目配置和各类生成表单。 */
withDefaults(
@@ -23,14 +24,14 @@ const open = ref(false)
- {{ label }}
+ {{ userFacingText(label, label) }}
- {{ description }}
+ {{ userFacingText(description) }}
diff --git a/src/components/ui/IssueHint.vue b/src/components/ui/IssueHint.vue
index 02ad9f4..c9bbd20 100644
--- a/src/components/ui/IssueHint.vue
+++ b/src/components/ui/IssueHint.vue
@@ -2,6 +2,7 @@
import { h } from 'vue'
import { NButton } from 'naive-ui'
import { useActionMessage } from './useActionMessage'
+import { userFacingText } from '../../lib/user-facing-text'
/** 问题说明按需查看,页面不长期堆叠错误段落。 */
const props = withDefaults(
@@ -22,7 +23,7 @@ const message = useActionMessage()
/** 点击后展示去重问题,不重新请求或生成内容。 */
function showReasons() {
- const content = [...new Set(props.messages.map(item => item.trim()).filter(Boolean))].join(';')
+ const content = [...new Set(props.messages.map(item => userFacingText(item)).filter(Boolean))].join(';')
if (content)
message?.[props.type](() => h('div', { class: 'max-w-[min(600px,calc(100vw-48px))] break-words' }, content), {
duration: 7000,
diff --git a/src/components/ui/RawDataDetails.vue b/src/components/ui/RawDataDetails.vue
new file mode 100644
index 0000000..05fe809
--- /dev/null
+++ b/src/components/ui/RawDataDetails.vue
@@ -0,0 +1,16 @@
+
+
+
+
+ {{ JSON.stringify(value, null, 2) }}
+
diff --git a/src/components/ui/WorkspaceTools.vue b/src/components/ui/WorkspaceTools.vue
index 7aa0a96..cf9d9c8 100644
--- a/src/components/ui/WorkspaceTools.vue
+++ b/src/components/ui/WorkspaceTools.vue
@@ -21,6 +21,8 @@ withDefaults(
pending?: boolean
/** 在操作入口原位置展示真实任务名称。 */
pendingLabel?: string
+ /** 真实提交期间锁定关闭,普通只读加载不锁定。 */
+ busy?: boolean
}>(),
{
label: '操作与回执',
@@ -57,11 +59,14 @@ const emit = defineEmits<{ closed: [] }>()
:is="fullscreen ? AppDrawer : AppDialog"
v-model:open="open"
:title="title"
+ :busy="busy"
description=""
v-bind="fullscreen ? {} : { wide: true }"
@closed="emit('closed')"
>
+
+
diff --git a/src/components/ui/useActionMessage.ts b/src/components/ui/useActionMessage.ts
index 6a4ad47..f599e0d 100644
--- a/src/components/ui/useActionMessage.ts
+++ b/src/components/ui/useActionMessage.ts
@@ -1,5 +1,6 @@
import { hasInjectionContext, inject, type InjectionKey } from 'vue'
import type { MessageApi } from 'naive-ui'
+import { userFacingText } from '../../lib/user-facing-text'
/** 页面操作结果共用的 Naive Message 实例。 */
export const actionMessageKey: InjectionKey = Symbol('action-message')
@@ -18,6 +19,7 @@ export function showActionFeedback(
type: 'success' | 'error' | 'warning' | 'info'
) {
if (!message || !content.trim()) return
+ content = userFacingText(content)
const history = recentMessages.get(message) ?? new Map()
const now = Date.now()
const key = `${type}:${content}`
diff --git a/src/features/breakdown/BreakdownPage.vue b/src/features/breakdown/BreakdownPage.vue
index 7e63562..1f4ea81 100644
--- a/src/features/breakdown/BreakdownPage.vue
+++ b/src/features/breakdown/BreakdownPage.vue
@@ -7,8 +7,9 @@ import WorkspaceExportButton from '../../components/ui/WorkspaceExportButton.vue
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 } from '@lucide/vue'
-import { EmptyState, StatusBadge, WorkspaceTools } from '../../components/ui'
+import { CircleAlert, Layers, 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'
import { breakdownApi } from './api'
import type { BreakdownAction, BreakdownInput, BreakdownModule, BreakdownPreview, ShotValidation } from './types'
@@ -24,7 +25,9 @@ import BreakdownCandidatePanel from './components/BreakdownCandidatePanel.vue'
import StoryboardQualityRepair from './components/StoryboardQualityRepair.vue'
import BreakdownIssuesDialog from './components/BreakdownIssuesDialog.vue'
import CandidateRepairs from './components/CandidateRepairs.vue'
+import ActionExceptionRepair from './components/ActionExceptionRepair.vue'
import { useBreakdownQuality } from './useBreakdownQuality'
+import { useBreakdownStartPolicy } from './useBreakdownStartPolicy'
import type { DiagnosisLocation } from './diagnosis'
import { errorMessage } from '../../lib/http'
import { downloadText } from '../../lib/format'
@@ -41,6 +44,8 @@ const tab = ref('character')
const toolsOpen = ref(false)
/** 问题查看、人工修订和阶段恢复共用独立窗口。 */
const issuesOpen = ref(false)
+/** 动作例外真实写入期间锁定问题抽屉的关闭,普通查询不锁定。 */
+const exceptionSaving = ref(false)
/** 从设置切换时等待关闭动画结束,避免两层弹窗同时显示。 */
const pendingIssues = ref(false)
/** 问题入口统一使用红色文字、图标和柔和底色,交互时保持错误语义。 */
@@ -343,6 +348,42 @@ const canStart = computed(
!error.value &&
(!records.value.length || taskStopped.value)
)
+/** 质量确认始终绑定本次真实预览输入,修改设置后立即撤销未完成启动。 */
+const startScope = computed(() => JSON.stringify(input.value))
+/** 首次及规则变化时确认,已确认的相同内容不重复弹出规则表单。 */
+const startPolicy = useBreakdownStartPolicy(projectId, startScope, canStart)
+/** 复用全局质量表单的完整校验和独立草稿。 */
+const qualityForm = ref | null>(null)
+/** 仅由用户明确勾选形成规则确认,不能把默认配置当作已确认。 */
+const rulesAcknowledged = ref(false)
+/** 每次真实模型启动仍需核对后台任务是否停止。 */
+const startAcknowledged = ref(false)
+/** 规则、目标或步骤变化后重新确认,不沿用旧勾选。 */
+watch([startPolicy.reviewOpen, startPolicy.editorKey, startScope], () => { rulesAcknowledged.value = false })
+watch(startPolicy.startOpen, () => { startAcknowledged.value = false })
+/** 关闭整个设置时中断只读确认,不能在关闭后打开迟到的弹窗。 */
+watch(toolsOpen, shown => { if (!shown) startPolicy.cancel() }, { flush: 'sync' })
+
+/** 校验用户编辑的规则,成功后进入普通启动确认;此步骤不运行模型。 */
+async function confirmStartRules() {
+ if (!rulesAcknowledged.value) return
+ const draft = qualityForm.value?.validatedDraft()
+ if (draft) await startPolicy.confirmRules(draft)
+}
+
+/** 最终确认费用与任务范围后重新读取规则,再消费本次启动许可。 */
+async function confirmStart() {
+ if (records.value.length > 0 && !startAcknowledged.value) return
+ if (await startPolicy.verifyStart()) await run('start')
+}
+
+/**
+ * 普通启动弹窗只读核对期间仍允许用户取消。
+ * @param shown 弹窗目标显隐状态
+ */
+function updateStartOpen(shown: boolean) {
+ if (!shown) startPolicy.cancel()
+}
let previewController: AbortController | undefined
let previewVersion = 0
@@ -395,7 +436,7 @@ async function loadPreview() {
async function run(action: BreakdownAction) {
if (project.value?.status !== 'completed' || operation.value.pending || error.value) return
if (breakdownBusy.value || backgroundExecution.discovering.value || backgroundExecution.discoveryError.value) return
- if (action === 'start' && !canStart.value) return
+ if (action === 'start' && (!canStart.value || !startPolicy.consumePermit())) return
const labels: Record = {
start: '正在拆解剧本',
retry: '正在重试失败抽取',
@@ -477,12 +518,29 @@ const rules = {
:pending="operation.pending"
:pending-label="operation.label"
v-model:open="toolsOpen"
- title="拆解设置"
+ :title="startPolicy.reviewOpen.value ? '拆解前确认质量规则' : '拆解设置'"
label="拆解设置"
+ :busy="startPolicy.saving.value"
fullscreen
@closed="finishOpeningIssues"
>
-
+
+
+
请核对动作与物理规则,修改将在继续时保存。当前浏览器会记住确认,规则未变时不再重复提醒。
+
+
+ 我已核对本次拆解使用的质量规则
+
+
{{ startPolicy.error.value }}
+
+
+
/
{{ preview.estimatedTaskCount }} 个抽取任务
-
+ type="primary"
+ :disabled="!canStart || startPolicy.busy.value"
+ @click="startPolicy.prepare"
+ >{{ candidateOnly ? '生成拆解候选' : '开始拆解' }}
@@ -607,6 +659,7 @@ const rules = {
+ {{ startPolicy.error.value }}
剧本仍在生成,暂不允许启动拆解,避免读取到不完整的剧集。
@@ -618,6 +671,7 @@ const rules = {
-
+
+
+
+ 取消
+ 确认规则并继续
+
+
+
+ 我已确认后台任务停止,当前没有同项目的生成或拆解任务在运行。
+ {{ startPolicy.error.value }}
+
+ 取消
+ 确认{{ candidateOnly ? '生成拆解候选' : '开始拆解' }}
+
+
@@ -799,6 +873,7 @@ const rules = {
v-model:open="issuesOpen"
:issues="storyboardIssues"
:quality="quality"
+ :busy="exceptionSaving"
:workflow-error="currentWorkflowError"
:locatable="!breakdownBusy && !!shots.length"
@locate="locateIssue"
@@ -816,6 +891,17 @@ const rules = {
>
任务状态或结果尚未确认,请先重新读取状态与结果。
+
+
.breakdown-policy-review + .breakdown-settings-panel {
+ margin-top: 0;
+}
/* 说明与表单留出 16px,避免移除来源标签后紧贴首个字段。 */
.breakdown-settings-form {
margin-top: 16px;
diff --git a/src/features/breakdown/action-exceptions.ts b/src/features/breakdown/action-exceptions.ts
new file mode 100644
index 0000000..257dc96
--- /dev/null
+++ b/src/features/breakdown/action-exceptions.ts
@@ -0,0 +1,66 @@
+import type { ActionResource } from '../projects/types'
+import { actionResourceOptions } from '../projects/quality-policy'
+import type { BreakdownState } from './types'
+import type { BreakdownQuality } from './quality'
+import type { CandidateShotLocation } from './candidate.types'
+
+/** 从当前镜头真实占用证据带入的例外目标,不将自由文本当作角色或动作编号。 */
+export interface ActionExceptionTarget extends CandidateShotLocation {
+ /** 镜头、阶段、主体与部位组成的稳定标识。 */
+ key: string
+ /** 实际冲突发生的阶段。 */
+ phaseNo: number
+ /** 当前镜头标题。 */
+ shotTitle: string
+ /** 后端镜头已有的主体引用。 */
+ ownerRef: string
+ /** 已有主体名称,缺失时直接显示真实编号。 */
+ ownerName: string
+ /** 同阶段重复占用的资源。 */
+ resource: ActionResource
+ /** 实际冲突动作的可读描述。 */
+ actions: string[]
+}
+
+/**
+ * 仅在当前审核明确指出资源冲突时,从同版本镜头证据提取角色与冲突动作。
+ * @param state 当前版本的完整镜头与主体
+ * @param quality 与当前检查点一致的审核
+ * @returns 可添加精确例外的真实目标;历史、缺失或无效证据不产生目标
+ */
+export function actionExceptionTargets(state: BreakdownState, quality: BreakdownQuality): ActionExceptionTarget[] {
+ if (!['candidate', 'formal'].includes(quality.source) || quality.loading || quality.needsRefresh || quality.error) return []
+ const targets = new Map()
+ for (const block of quality.actionBlocks) {
+ if (![...block.blockingCodes, ...block.warningCodes].includes('action_resource_conflict')) continue
+ const shot = state.storyboardEpisodeShots?.find(episode => episode.episodeNo === block.episodeNo)
+ ?.beatShots.find(beat => beat.beatNo === block.beatNo)?.shots.find(item => item.shotNo === block.shotNo)
+ if (!shot?.requiredActions?.length || !shot.durationPlanning) continue
+ for (const [index, phase] of shot.durationPlanning.phases.entries()) {
+ // 与后端审计一致:只接受本阶段、已存在动作及镜头主体的明确占用证据。
+ const resources = (phase.resourceOccupancy ?? []).filter(item =>
+ shot.subjectRefs.includes(item.ownerRef) && phase.actionIds?.includes(item.actionId) &&
+ shot.requiredActions!.some(action => action.id === item.actionId) &&
+ actionResourceOptions.some(option => option.value === item.resource))
+ for (const [leftIndex, left] of resources.entries()) {
+ for (const right of resources.slice(leftIndex + 1)) {
+ if (left.ownerRef !== right.ownerRef || left.resource !== right.resource || left.actionId === right.actionId) continue
+ if (left.shareable && right.shareable && !['support', 'move'].includes(left.usage) && !['support', 'move'].includes(right.usage)) continue
+ const key = `${block.episodeNo}/${block.beatNo}/${block.shotNo}/${index + 1}/${left.ownerRef}/${left.resource}`
+ const target = targets.get(key) ?? {
+ key, episodeNo: block.episodeNo, beatNo: block.beatNo, shotNo: block.shotNo,
+ phaseNo: index + 1, shotTitle: shot.title, ownerRef: left.ownerRef, resource: left.resource,
+ ownerName: state.subjectCandidates?.find(subject => subject.ref === left.ownerRef)?.name || left.ownerRef,
+ actions: []
+ }
+ for (const actionId of [left.actionId, right.actionId]) {
+ const description = shot.requiredActions.find(action => action.id === actionId)!.description
+ if (!target.actions.includes(description)) target.actions.push(description)
+ }
+ targets.set(key, target)
+ }
+ }
+ }
+ }
+ return [...targets.values()]
+}
diff --git a/src/features/breakdown/components/ActionExceptionRepair.vue b/src/features/breakdown/components/ActionExceptionRepair.vue
new file mode 100644
index 0000000..5d449dd
--- /dev/null
+++ b/src/features/breakdown/components/ActionExceptionRepair.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+ 正在读取已有动作例外…
+
+
+ 当前没有能准确带入角色与动作的冲突。缺少动作证据或其他结构错误时,请先使用人工修订。
+
+
+
第 {{ target.episodeNo }} 集 · 节拍 {{ target.beatNo }} · 镜头 {{ target.shotNo }} · 阶段 {{ target.phaseNo }}
+
{{ exists(target) ? '已有例外' : '添加例外' }}
+
+ {{ target.ownerName }}({{ target.ownerRef }}) · {{ actionResourceOptions.find(option => option.value === target.resource)?.label }}
+
+
+
+
此例外按项目保存,同一角色或物品在其他镜头中的同类占用冲突也会受影响;其他错误仍会检查。
+
+
{{ issue }}
+
+
+
+ {{ notice }}
+
+
diff --git a/src/features/breakdown/components/BreakdownCandidatePanel.vue b/src/features/breakdown/components/BreakdownCandidatePanel.vue
index 089763b..57a01fb 100644
--- a/src/features/breakdown/components/BreakdownCandidatePanel.vue
+++ b/src/features/breakdown/components/BreakdownCandidatePanel.vue
@@ -143,7 +143,7 @@ async function commit() {
{{ checkError }}
-
+
本次候选:{{ counts.subjects }} 个主体、{{ counts.episodes }} 集、{{ counts.shots }} 个镜头。
我已确认替换正式结果,当前没有同项目的制作任务在运行。
取消确认提交候选为正式结果
diff --git a/src/features/breakdown/components/BreakdownIssuesDialog.vue b/src/features/breakdown/components/BreakdownIssuesDialog.vue
index 44040d7..d9793b6 100644
--- a/src/features/breakdown/components/BreakdownIssuesDialog.vue
+++ b/src/features/breakdown/components/BreakdownIssuesDialog.vue
@@ -1,4 +1,6 @@
+
+
+
+
+
+ 这些例外会继续保留。新增例外请在拆解后的具体动作问题中填写。
+
+
+
+
diff --git a/src/features/generation-config/components/QualityPolicySettings.vue b/src/features/generation-config/components/QualityPolicySettings.vue
index 93f079c..c36ed15 100644
--- a/src/features/generation-config/components/QualityPolicySettings.vue
+++ b/src/features/generation-config/components/QualityPolicySettings.vue
@@ -1,12 +1,14 @@
@@ -149,87 +203,47 @@ defineExpose({ save, canSave })
-
+
+
+
{{ physicsDescription }}
+
+
-
允许夸张动作
-
允许非物理动作
-
允许超自然能力
+
+
{{ permission.label }}
+
{{ permission.description }}
+
-
-
-
-
-
-
-
- 添加例外
-
-
-
-
-
-
-
-
+ 补充这个故事允许的特殊情况或需要遵守的要求,每行一条,最多 30 条。
+
+ />
-
+
+
+
{{ issue }}
{{ notice }}
@@ -242,19 +256,10 @@ defineExpose({ save, canSave })
gap: 24px;
padding-top: 20px;
}
-.quality-exception-row {
+.quality-policy-field {
display: grid;
- grid-template-columns: minmax(120px, 1fr) minmax(100px, 0.7fr) minmax(160px, 1.5fr) auto;
- align-items: end;
- gap: 16px;
-}
-.quality-exception-remove {
- justify-self: end;
-}
-@media (max-width: 640px) {
- .quality-exception-row {
- grid-template-columns: minmax(0, 1fr);
- gap: 12px;
- }
+ width: 100%;
+ min-width: 0;
+ gap: 8px;
}
diff --git a/src/features/production/ProductionPage.vue b/src/features/production/ProductionPage.vue
index f8ade42..290dc53 100644
--- a/src/features/production/ProductionPage.vue
+++ b/src/features/production/ProductionPage.vue
@@ -306,7 +306,7 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
>