feat(short-drama-agent-front): 优化分镜界面并新增弹窗手势
This commit is contained in:
1 parent
b15a6011ce
commit
d68f03471c
59 files changed
+2694
-857
No files matched your search
@@ -2,7 +2,6 @@
|
||||
import { computed, onScopeDispose, ref, shallowRef, watch } from 'vue'
|
||||
import { NButton, NCheckbox, NInput, NInputNumber } from 'naive-ui'
|
||||
import { AssetImage } from '../../../components/ui'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import { useQuery } from '../../../composables/useQuery'
|
||||
import { errorMessage } from '../../../lib/http'
|
||||
import { useActionMessage } from '../../../components/ui/useActionMessage'
|
||||
@@ -17,6 +16,15 @@ const props = defineProps<{
|
||||
/** 已存人工记录。 */ review: ContinuityReview
|
||||
/** 项目活动锁。 */ disabled: boolean
|
||||
}>()
|
||||
/**
|
||||
* 使用本次审核的顺序说明图片归属,不显示内部镜头编号。
|
||||
* @param shotId 原绑定镜头
|
||||
* @returns 可读的审核范围位置
|
||||
*/
|
||||
function reviewShotLabel(shotId: string) {
|
||||
const index = props.review.diagnosis.frames.findIndex(frame => frame.shotId === shotId)
|
||||
return index < 0 ? '范围待核对' : `审核范围第 ${index + 1} 镜`
|
||||
}
|
||||
/** 把写入锁与变化交给原抽屉。 */
|
||||
const emit = defineEmits<{ busy: [boolean]; changed: [] }>()
|
||||
/** 当前免费计划。 */
|
||||
@@ -318,11 +326,11 @@ defineExpose({ canAuthorize, canExecute, canResume, authorize, execute, resume }
|
||||
{{ image.pixels.height }}
|
||||
</p>
|
||||
<p v-for="(binding, i) in image.bindings" :key="i">
|
||||
{{ binding.shotId }} ·
|
||||
{{ reviewShotLabel(binding.shotId) }} ·
|
||||
{{ binding.role === 'frame' ? '镜头首帧' : '空间参考(不代表人物或道具状态)' }}
|
||||
</p>
|
||||
</div>
|
||||
<RawDataDetails title="高级详情:最终脱敏请求、图片摘要与全部绑定" :value="plan" />
|
||||
|
||||
<template
|
||||
v-if="plan.status === 'ready' && plan.executionAvailable && plan.capability.verified && !uncertain"
|
||||
>
|
||||
@@ -369,15 +377,7 @@ defineExpose({ canAuthorize, canExecute, canResume, authorize, execute, resume }
|
||||
</p>
|
||||
<p>{{ task.data.value.summary }}</p>
|
||||
<p>人工原签收和非阻断未知保持原样,机器新观察不会自动覆盖。</p>
|
||||
<RawDataDetails
|
||||
title="原机器评估、解析观察与用量(独立追溯)"
|
||||
:value="{
|
||||
diagnosis: task.data.value.diagnosis,
|
||||
machineObservation: task.data.value.machineObservation,
|
||||
step: task.data.value.step,
|
||||
feeScope: task.data.value.feeScope
|
||||
}"
|
||||
/>
|
||||
|
||||
<WorkflowExecutionPanel
|
||||
v-if="execution.query.data.value?.id === task.data.value.executionId"
|
||||
:execution="execution.query.data.value"
|
||||
|
||||
@@ -398,6 +398,7 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
title="跨镜连续性审核"
|
||||
description="免费核对相邻两到三镜的固定结构与所选人工状态,各范围独立签收,不自动修改主首帧。"
|
||||
:busy="busy"
|
||||
description-as-info
|
||||
>
|
||||
<div class="space-y-6">
|
||||
<!-- 以下是独立签收范围选择,切换后重新读取指纹 -->
|
||||
@@ -412,8 +413,9 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
/>
|
||||
<section class="space-y-3">
|
||||
<WorkspaceSectionHeading
|
||||
title="选择审核范围"
|
||||
title="选择相邻的两到三镜"
|
||||
description="选择同一场景形态下、同集正式顺序连续的两到三镜。"
|
||||
description-as-info
|
||||
/>
|
||||
<NSelect
|
||||
:value="selected"
|
||||
@@ -479,6 +481,7 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
镜头 {{ item.spec.beatNo }}.{{ item.spec.shotNo }} · {{ item.spec.title }}
|
||||
</h3>
|
||||
<AssetImage
|
||||
class="h-[min(32dvh,280px)] aspect-auto"
|
||||
:src="item.primary?.imageUrl"
|
||||
:style="{
|
||||
aspectRatio:
|
||||
@@ -491,7 +494,8 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
object-fit="contain"
|
||||
empty-text="暂无当前主首帧"
|
||||
/>
|
||||
<p class="wrap-anywhere text-xs text-muted">当前主首帧:{{ item.primary?.id || '未设置' }}</p>
|
||||
<p class="text-xs text-muted">{{ item.primary ? '已设置主首帧' : '尚未设置主首帧' }}</p>
|
||||
|
||||
<p class="text-sm">
|
||||
镜头设计:{{
|
||||
[
|
||||
@@ -534,21 +538,6 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
)
|
||||
}}
|
||||
</p>
|
||||
<NCollapse
|
||||
v-if="
|
||||
diagnosis?.frames.find(frame => frame.shotId === item.spec.shotId)?.formalSourceFingerprint
|
||||
"
|
||||
>
|
||||
<NCollapseItem name="source" title="高级来源详情">
|
||||
<pre class="whitespace-pre-wrap break-words text-xs">{{
|
||||
JSON.stringify(
|
||||
diagnosis.frames.find(frame => frame.shotId === item.spec.shotId),
|
||||
null,
|
||||
2
|
||||
)
|
||||
}}</pre>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
</article>
|
||||
</section>
|
||||
<!-- 以下是当前布局母版、场景形态当前性及历史版本模块 -->
|
||||
@@ -571,12 +560,18 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
<div v-for="layout in sceneSources.data.value.layouts" :key="layout.id" class="space-y-3">
|
||||
<p class="text-sm">
|
||||
{{ layout.name }} ·
|
||||
<span class="wrap-anywhere text-xs text-muted">当前版本:{{ layout.version }}</span>
|
||||
<span class="text-xs text-muted">已读取当前布局</span>
|
||||
</p>
|
||||
<p v-if="!layout.masters.length" class="text-sm text-muted">暂无适用布局母版。</p>
|
||||
<div class="continuity-frame-grid">
|
||||
<article v-for="master in layout.masters" :key="master.id" class="space-y-2 min-w-0">
|
||||
<AssetImage :src="master.imageUrl" alt="布局母版" preview object-fit="contain" />
|
||||
<AssetImage
|
||||
class="h-[min(32dvh,280px)] aspect-auto"
|
||||
:src="master.imageUrl"
|
||||
alt="布局母版"
|
||||
preview
|
||||
object-fit="contain"
|
||||
/>
|
||||
<p class="text-sm">
|
||||
{{ master.subjectFormId ? '当前场景形态机位' : '全局布局母版' }} ·
|
||||
{{
|
||||
@@ -595,6 +590,7 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
<WorkspaceSectionHeading
|
||||
title="人工观察"
|
||||
description="相对已确认布局核对观察面与地标顺序。只记录固定结构位置和完整可辨数量;开门、关门属于即时状态。无法判断时请保留未知。"
|
||||
description-as-info
|
||||
/>
|
||||
<div class="continuity-landmarks">
|
||||
<NInput
|
||||
@@ -674,6 +670,7 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
<WorkspaceSectionHeading
|
||||
title="读取历史审核"
|
||||
description="刷新后恢复本机最近审核,也可填写已有审核编号。"
|
||||
description-as-info
|
||||
/>
|
||||
<div class="flex items-end gap-2">
|
||||
<NInput
|
||||
@@ -710,13 +707,6 @@ function updateFrame(index: number, value: GeometryFrameObservation) {
|
||||
{{ userFacingText(issue.message) }}
|
||||
</p></template
|
||||
>
|
||||
<NCollapse
|
||||
><NCollapseItem name="original" title="原始诊断">
|
||||
<pre class="whitespace-pre-wrap break-words text-xs">{{
|
||||
JSON.stringify(reviewQuery.data.value.diagnosis, null, 2)
|
||||
}}</pre>
|
||||
</NCollapseItem></NCollapse
|
||||
>
|
||||
</article>
|
||||
</section>
|
||||
<!-- 以下是已存有序组的联合审核计划与单次批准 -->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { NButton, NInput, NSelect } from 'naive-ui'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import { stateDimensions, type StateCheck, type StateContext } from '../continuity-state'
|
||||
/** 正式有序组与操作锁。 */
|
||||
const props = defineProps<{ /** 正式上下文。 */ contexts: StateContext[]; /** 操作锁。 */ disabled: boolean }>()
|
||||
@@ -60,11 +60,18 @@ function boundary(check: StateCheck, value: string) {
|
||||
<p class="text-muted">
|
||||
逐项核对原图和正式依据。无法辨认留空;出画不等于主体消失。交接或开关变化须有前镜实际动作及后镜本主体状态支持,不能只凭勾选依据判为一致。
|
||||
</p>
|
||||
<RawDataDetails
|
||||
<RecordDetails
|
||||
v-for="(context, i) in contexts"
|
||||
:key="context.shotId"
|
||||
:title="`第 ${i + 1} 镜正式状态与动作`"
|
||||
:value="context"
|
||||
:records="[
|
||||
{
|
||||
fields: context.sources.map(source => ({
|
||||
label: source.executable ? '本镜动作' : '正式状态依据',
|
||||
value: [source.subjectRef, source.text].filter(Boolean).join(' · ')
|
||||
}))
|
||||
}
|
||||
]"
|
||||
/>
|
||||
<section v-for="(check, index) in checks" :key="index" class="space-y-3 bg-(--app-subtle) p-4">
|
||||
<NSelect
|
||||
@@ -120,7 +127,7 @@ function boundary(check: StateCheck, value: string) {
|
||||
:options="
|
||||
sources(check).map(s => ({
|
||||
value: s.id,
|
||||
label: `${s.shotId === check.fromShotId ? '前镜' : '后镜'} · ${s.subjectRef ?? '镜头'} · ${s.field} · ${s.text}${s.executable ? '(本镜实际执行)' : ''}`
|
||||
label: `${s.shotId === check.fromShotId ? '前镜' : '后镜'} · ${s.subjectRef ?? '镜头'} · ${s.text}${s.executable ? '(本镜实际执行)' : ''}`
|
||||
}))
|
||||
"
|
||||
:disabled="disabled"
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ClipboardCheck, ScanEye, Pencil, History } from '@lucide/vue'
|
||||
import { ClipboardCheck, ScanEye, Pencil, History, Info } from '@lucide/vue'
|
||||
import WorkspaceActionTooltip from '../../../components/ui/WorkspaceActionTooltip.vue'
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
|
||||
import IssueHint from '../../../components/ui/IssueHint.vue'
|
||||
import { productionMessage } from '../production-messages'
|
||||
import { useKeyframeVision } from '../keyframe-vision'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
@@ -13,7 +12,7 @@ import {
|
||||
effectiveQualityLabels,
|
||||
keyframeQualitySummary
|
||||
} from '../effective-keyframe-quality'
|
||||
import { NButton, NTag } from 'naive-ui'
|
||||
import { NButton, NTag, NPopover } from 'naive-ui'
|
||||
import { AssetImage, AssetOpenLink, StatusBadge } from '../../../components/ui'
|
||||
import { formatDate } from '../../../lib/format'
|
||||
import { productionStatusLabel } from '../model'
|
||||
@@ -21,6 +20,7 @@ import type { ShotKeyframe } from '../types'
|
||||
|
||||
/** 首帧卡片统一主图标识、质量结论和晋升限制。 */
|
||||
const props = defineProps<{
|
||||
/** 镜头名称及稳定图片序号,由完整资产列表生成,仅用于展示。 */ displayName?: string
|
||||
/** 摄影审核只读嵌入,保留图片与历史入口,不开放生成/编辑/采用。 */ readonly?: boolean
|
||||
item: ShotKeyframe
|
||||
/** 正式项目归属,用于查询候选审核。 */
|
||||
@@ -40,10 +40,13 @@ const props = defineProps<{
|
||||
}>()
|
||||
/** 用户显式打开来源复核,不能自动调用模型。 */
|
||||
const sourceReviewOpen = ref(false)
|
||||
/** 模型、错误与来源信息按需查看,切换候选即关闭旧详情。 */
|
||||
const detailsOpen = ref(false)
|
||||
watch(
|
||||
() => JSON.stringify([props.projectId, props.shotId, props.item.id]),
|
||||
() => {
|
||||
sourceReviewOpen.value = false
|
||||
detailsOpen.value = false
|
||||
},
|
||||
{ flush: 'sync' }
|
||||
)
|
||||
@@ -134,8 +137,8 @@ const canSelect = computed(
|
||||
/>
|
||||
<AssetOpenLink :src="item.status === 'completed' ? item.imageUrl : null" label="打开图片" />
|
||||
</div>
|
||||
<div class="p-3">
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<div class="keyframe-card-body">
|
||||
<div class="keyframe-card-status">
|
||||
<StatusBadge :status="item.status" :label="productionStatusLabel(item.status)" />
|
||||
<NTag v-if="item.source !== 'provider_variant'" size="small" :bordered="false">
|
||||
{{ item.isPrimary ? '主首帧' : '候选首帧' }}
|
||||
@@ -159,136 +162,174 @@ const canSelect = computed(
|
||||
</NTag>
|
||||
<NTag v-if="item.source === 'provider_variant'" size="small" :bordered="false">视频参考图</NTag>
|
||||
<NTag v-if="item.isPrimary && stale" size="small" type="warning" :bordered="false">已过期</NTag>
|
||||
<!-- 以下是完整尺寸信息模块,数据缺失时隐藏 -->
|
||||
<span v-if="item.width && item.height" class="text-[10px] text-muted"
|
||||
>{{ item.width }} × {{ item.height }}</span
|
||||
>
|
||||
</div>
|
||||
<!-- 以下是候选的来源、画幅与后台审核状态 -->
|
||||
<p
|
||||
v-if="effectiveStatus === 'stale' && reviewQuery.data.value && !reviewQuery.error.value"
|
||||
class="mt-2 text-xs text-muted"
|
||||
>
|
||||
{{ keyframeQualitySummary(reviewQuery.data.value.qualityDecision, effectiveStatus) }}
|
||||
</p>
|
||||
<p v-if="item.provider || item.model" class="mt-2 wrap-anywhere text-xs text-muted">
|
||||
{{ [item.provider, item.model].filter(Boolean).join(' / ') }}
|
||||
</p>
|
||||
<p
|
||||
v-if="item.canvasDiagnosis && item.status === 'completed'"
|
||||
class="mt-2 text-xs"
|
||||
:class="wrongCanvas ? 'text-danger' : 'text-muted'"
|
||||
>
|
||||
{{
|
||||
wrongCanvas
|
||||
? `历史画幅 ${item.canvasDiagnosis.actual ?? '未知'} 与交付画幅 ${item.canvasDiagnosis.expected ?? '未知'} 不符,仅供查看。`
|
||||
: item.canvasDiagnosis.status === 'matched'
|
||||
? `匹配交付画幅 ${item.canvasDiagnosis.expected}`
|
||||
: '画幅尚未确认'
|
||||
}}
|
||||
</p>
|
||||
<p
|
||||
v-if="vision.state.value.active || vision.state.value.unknown || vision.uncertain.value"
|
||||
role="status"
|
||||
class="mt-2 text-xs text-muted"
|
||||
>
|
||||
{{ vision.state.value.active?.executionId ? '质量审核在后台进行' : '审核结果或费用待核查' }}
|
||||
</p>
|
||||
<IssueHint v-if="item.error" :messages="[productionMessage(item.error)]" type="error" />
|
||||
<!-- 以下是来源记录与独立的免费恢复入口 -->
|
||||
<p v-if="item.inputSnapshotStatus" class="mt-2 text-xs text-muted">
|
||||
{{
|
||||
{ recorded: '已保存生成输入', 'not-recorded': '历史生成输入未记录', invalid: '生成输入证据已失效' }[
|
||||
item.inputSnapshotStatus
|
||||
]
|
||||
}}
|
||||
<span v-if="item.providerInputFingerprint" :title="item.providerInputFingerprint">
|
||||
· {{ item.providerInputFingerprint.slice(0, 12) }}</span
|
||||
<!-- 名称固定单行,完整文字可在悬停或图片详情中核对。 -->
|
||||
<h4 class="keyframe-card-name" :title="displayName || `镜头 ${shotNo} · 首帧`">
|
||||
{{ displayName || `镜头 ${shotNo} · 首帧` }}
|
||||
</h4>
|
||||
<!-- 列表保留创建时间,详细模型、错误和来源只在主动展开时显示。 -->
|
||||
<p class="text-[10px] text-muted">{{ formatDate(item.createdAt) }}</p>
|
||||
<div class="keyframe-card-actions">
|
||||
<!-- 浮层挂到视口层,避免被候选弹窗和内容滚动边界裁切。 -->
|
||||
<NPopover
|
||||
v-model:show="detailsOpen"
|
||||
trigger="click"
|
||||
placement="bottom-start"
|
||||
:show-arrow="false"
|
||||
:to="true"
|
||||
:flip="true"
|
||||
>
|
||||
</p>
|
||||
<p v-if="item.recoveryRequired" class="mt-2 text-xs text-muted">
|
||||
{{
|
||||
productionMessage(
|
||||
item.recoveryReason ||
|
||||
(item.canRecoverSavedResult
|
||||
? '可以恢复已生成图片的下载。'
|
||||
: '原请求结果待核查,请先核对候选和模型服务记录。')
|
||||
)
|
||||
}}
|
||||
</p>
|
||||
<NButton
|
||||
v-if="item.canRecoverSavedResult && !readonly"
|
||||
class="mt-2"
|
||||
size="small"
|
||||
:disabled="blocked || recovering"
|
||||
:loading="recovering"
|
||||
@click="emit('recover')"
|
||||
>恢复已生成图片</NButton
|
||||
>
|
||||
<p class="mt-2 text-[10px] text-muted">{{ formatDate(item.createdAt) }}</p>
|
||||
<!-- 以下是集中排列的首帧辅助图标操作,提示与无障碍名称一致 -->
|
||||
<div v-if="item.status === 'completed' && item.imageUrl" class="mt-4 flex flex-wrap items-center gap-2">
|
||||
<WorkspaceActionTooltip
|
||||
placement="top"
|
||||
v-if="item.isPrimary && projectId && !readonly"
|
||||
label="按当前来源人工复核"
|
||||
<template #trigger>
|
||||
<span class="inline-flex">
|
||||
<WorkspaceActionTooltip placement="top" label="查看首帧详情" :disabled="detailsOpen">
|
||||
<NButton square class="workspace-action-button icon-button" aria-label="查看首帧详情"
|
||||
><Info :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
</span>
|
||||
</template>
|
||||
<section class="keyframe-card-details" aria-label="首帧详情">
|
||||
<p class="text-sm font-semibold">{{ displayName || `镜头 ${shotNo} · 首帧` }}</p>
|
||||
<p v-if="item.width && item.height" class="mt-2 text-xs text-muted">
|
||||
{{ item.width }} × {{ item.height }}
|
||||
</p>
|
||||
<!-- 以下是候选的来源、画幅与后台审核状态 -->
|
||||
<p
|
||||
v-if="effectiveStatus === 'stale' && reviewQuery.data.value && !reviewQuery.error.value"
|
||||
class="mt-2 text-xs text-muted"
|
||||
>
|
||||
{{ keyframeQualitySummary(reviewQuery.data.value.qualityDecision, effectiveStatus) }}
|
||||
</p>
|
||||
<p v-if="item.provider || item.model" class="mt-2 wrap-anywhere text-xs text-muted">
|
||||
{{ [item.provider, item.model].filter(Boolean).join(' / ') }}
|
||||
</p>
|
||||
<p
|
||||
v-if="item.canvasDiagnosis && item.status === 'completed'"
|
||||
class="mt-2 text-xs"
|
||||
:class="wrongCanvas ? 'text-danger' : 'text-muted'"
|
||||
>
|
||||
{{
|
||||
wrongCanvas
|
||||
? `历史画幅 ${item.canvasDiagnosis.actual ?? '未知'} 与交付画幅 ${item.canvasDiagnosis.expected ?? '未知'} 不符,仅供查看。`
|
||||
: item.canvasDiagnosis.status === 'matched'
|
||||
? `匹配交付画幅 ${item.canvasDiagnosis.expected}`
|
||||
: '画幅尚未确认'
|
||||
}}
|
||||
</p>
|
||||
<p
|
||||
v-if="vision.state.value.active || vision.state.value.unknown || vision.uncertain.value"
|
||||
role="status"
|
||||
class="mt-2 text-xs text-muted"
|
||||
>
|
||||
{{ vision.state.value.active?.executionId ? '质量审核在后台进行' : '审核结果或费用待核查' }}
|
||||
</p>
|
||||
<p v-if="item.error" class="mt-2 text-xs">{{ productionMessage(item.error) }}</p>
|
||||
<!-- 以下是来源记录与独立的免费恢复入口 -->
|
||||
<p v-if="item.inputSnapshotStatus" class="mt-2 text-xs text-muted">
|
||||
{{
|
||||
{
|
||||
recorded: '已保存生成输入',
|
||||
'not-recorded': '历史生成输入未记录',
|
||||
invalid: '生成输入证据已失效'
|
||||
}[item.inputSnapshotStatus]
|
||||
}}
|
||||
</p>
|
||||
<p v-if="item.recoveryRequired" class="mt-2 text-xs text-muted">
|
||||
{{
|
||||
productionMessage(
|
||||
item.recoveryReason ||
|
||||
(item.canRecoverSavedResult
|
||||
? '可以恢复已生成图片的下载。'
|
||||
: '原请求结果待核查,请先核对候选和模型服务记录。')
|
||||
)
|
||||
}}
|
||||
</p>
|
||||
</section>
|
||||
</NPopover>
|
||||
<NButton
|
||||
v-if="item.canRecoverSavedResult && !readonly"
|
||||
size="small"
|
||||
:disabled="blocked || recovering"
|
||||
:loading="recovering"
|
||||
@click="emit('recover')"
|
||||
>恢复已生成图片</NButton
|
||||
>
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
aria-label="按当前来源人工复核"
|
||||
@click="sourceReviewOpen = true"
|
||||
><ClipboardCheck :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<WorkspaceActionTooltip
|
||||
placement="top"
|
||||
v-if="!wrongCanvas && !stale && !readonly"
|
||||
:label="qualityActionLabel"
|
||||
>
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
:aria-label="qualityActionLabel"
|
||||
@click="emit('quality')"
|
||||
><ScanEye :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<WorkspaceActionTooltip
|
||||
placement="top"
|
||||
v-if="item.source !== 'provider_variant' && !wrongCanvas && !stale && !readonly"
|
||||
label="编辑此首帧"
|
||||
>
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
:disabled="blocked"
|
||||
:loading="editing"
|
||||
aria-label="编辑此首帧"
|
||||
@click="emit('edit')"
|
||||
><Pencil :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<WorkspaceActionTooltip placement="top" label="查看首帧校验历史">
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
aria-label="查看首帧校验历史"
|
||||
@click="emit('history')"
|
||||
><History :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<NButton v-if="canSelect" :disabled="blocked" text size="small" @click="emit('select')">
|
||||
设为主首帧
|
||||
</NButton>
|
||||
<!-- 以下是集中排列的首帧辅助图标操作,提示与无障碍名称一致 -->
|
||||
<template v-if="item.status === 'completed' && item.imageUrl">
|
||||
<WorkspaceActionTooltip
|
||||
placement="top"
|
||||
v-if="item.isPrimary && projectId && !readonly"
|
||||
label="按当前来源人工复核"
|
||||
>
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
aria-label="按当前来源人工复核"
|
||||
@click="sourceReviewOpen = true"
|
||||
><ClipboardCheck :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<WorkspaceActionTooltip
|
||||
placement="top"
|
||||
v-if="!wrongCanvas && !stale && !readonly"
|
||||
:label="qualityActionLabel"
|
||||
>
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
:aria-label="qualityActionLabel"
|
||||
@click="emit('quality')"
|
||||
><ScanEye :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<WorkspaceActionTooltip
|
||||
placement="top"
|
||||
v-if="item.source !== 'provider_variant' && !wrongCanvas && !stale && !readonly"
|
||||
label="编辑此首帧"
|
||||
>
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
:disabled="blocked"
|
||||
:loading="editing"
|
||||
aria-label="编辑此首帧"
|
||||
@click="emit('edit')"
|
||||
><Pencil :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<WorkspaceActionTooltip placement="top" label="查看首帧校验历史">
|
||||
<NButton
|
||||
square
|
||||
class="workspace-action-button icon-button"
|
||||
aria-label="查看首帧校验历史"
|
||||
@click="emit('history')"
|
||||
><History :size="17"
|
||||
/></NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<NPopover
|
||||
v-if="canSelect"
|
||||
:show="confirming && canSelect"
|
||||
trigger="manual"
|
||||
placement="top"
|
||||
:show-arrow="false"
|
||||
:to="true"
|
||||
:flip="true"
|
||||
@clickoutside="emit('cancel')"
|
||||
>
|
||||
<template #trigger>
|
||||
<NButton :disabled="blocked" text size="small" @click="emit('select')">设为主首帧</NButton>
|
||||
</template>
|
||||
<!-- 人工采用确认独立于卡片排版,保持列表等高及原确认门禁。 -->
|
||||
<ContextNotice type="info" :show-icon="false" class="keyframe-card-details text-xs">
|
||||
<p>该候选已满足当前质量要求。确认让后续视频使用此首帧?</p>
|
||||
<div class="mt-2 flex gap-3">
|
||||
<NButton type="primary" :disabled="blocked" @click="emit('confirm')">确认切换</NButton>
|
||||
<NButton text size="small" @click="emit('cancel')">取消</NButton>
|
||||
</div>
|
||||
</ContextNotice>
|
||||
</NPopover>
|
||||
</template>
|
||||
</div>
|
||||
<ContextNotice v-if="confirming && canSelect" type="info" :show-icon="false" class="mt-2 text-xs">
|
||||
<p>该候选已满足当前质量要求。确认让后续视频使用此首帧?</p>
|
||||
<div class="mt-2 flex gap-3">
|
||||
<NButton type="primary" :disabled="blocked" @click="emit('confirm')">确认切换</NButton>
|
||||
<NButton text size="small" @click="emit('cancel')">取消</NButton>
|
||||
</div>
|
||||
</ContextNotice>
|
||||
</div>
|
||||
</article>
|
||||
<SourceReviewDrawer
|
||||
@@ -300,3 +341,35 @@ const canSelect = computed(
|
||||
@changed="onSourceChanged"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
@reference "../../../styles/styles.css";
|
||||
/* 卡片自身保留中性底面与正方形画面,不依赖生产页面是否已加载。 */
|
||||
.keyframe-card {
|
||||
@apply flex h-full min-w-0 flex-col rounded-none bg-(--app-subtle);
|
||||
}
|
||||
.keyframe-card .asset-image {
|
||||
@apply aspect-square rounded-none;
|
||||
}
|
||||
/* 状态和操作使用稳定槽位,短卡片也将操作对齐至底部。 */
|
||||
.keyframe-card-body {
|
||||
@apply flex flex-1 flex-col gap-2 p-3;
|
||||
}
|
||||
.keyframe-card-status {
|
||||
@apply flex min-h-[22px] flex-wrap items-center gap-1.5;
|
||||
}
|
||||
.keyframe-card-name {
|
||||
@apply truncate text-sm font-medium leading-5;
|
||||
}
|
||||
.keyframe-card-actions {
|
||||
@apply mt-auto flex min-h-[34px] flex-wrap items-center gap-2;
|
||||
}
|
||||
/* 详情浮层保持可读宽度与独立滚动,不撑高任何图片卡片。 */
|
||||
.keyframe-card-details {
|
||||
width: min(340px, calc(100vw - 64px));
|
||||
max-height: min(480px, 65dvh);
|
||||
overflow-y: auto;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: normal;
|
||||
}
|
||||
</style>
|
||||
@@ -9,6 +9,7 @@ import ImageGenerationPreview from '../../subject-images/components/ImageGenerat
|
||||
import { useImageGenerationPreview, type ImageGenerationSubmission } from '../../subject-images/generation-preview'
|
||||
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
|
||||
import AppForm from '../../../components/ui/AppForm.vue'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem } from 'naive-ui'
|
||||
@@ -155,6 +156,16 @@ const boundedBudget = computed(() =>
|
||||
)
|
||||
: null
|
||||
)
|
||||
/** 仅有真实阻断或可选许可时展示人工准入,普通有效授权不常驻未知费用说明。 */
|
||||
const showAdditionalOptions = computed(
|
||||
() =>
|
||||
canInspectAdditional.value &&
|
||||
(!!additionalId.value ||
|
||||
!!additionalOptions.value.length ||
|
||||
additionalQuery.loading.value ||
|
||||
!!additionalQuery.error.value ||
|
||||
additionalQuery.data.value?.billingBlocked)
|
||||
)
|
||||
watch(
|
||||
[() => props.projectId, () => props.shotId, open],
|
||||
() => {
|
||||
@@ -287,6 +298,7 @@ watch(
|
||||
:title="`${replacePrimary ? '生成替代候选' : '生成首帧候选'} · ${shotTitle}`"
|
||||
description="新图通过检查后可设为主首帧。"
|
||||
:busy="submitting"
|
||||
description-as-info
|
||||
>
|
||||
<AppForm
|
||||
ref="formRef"
|
||||
@@ -319,16 +331,21 @@ watch(
|
||||
生成模型目录读取失败:{{ generationCatalogError }}
|
||||
</ContextNotice>
|
||||
<!-- 以下是用户主动选择的原精确计划追加许可,普通unknown不放行。 -->
|
||||
<section v-if="canInspectAdditional" class="workspace-section-stack mt-5">
|
||||
<p class="text-sm">
|
||||
原请求和费用仍未知。只可使用已单独批准的有限许可,重新预览核对精确计划;不会自动追加或消费剩余次数。
|
||||
<section v-if="showAdditionalOptions" class="workspace-panel workspace-section-stack mt-5">
|
||||
<p v-if="additionalQuery.data.value?.billingBlocked" class="text-sm">
|
||||
原请求在途或费用待核对。有限许可不会核清旧费用。
|
||||
</p>
|
||||
<FieldLabel
|
||||
label="人工有限许可"
|
||||
description="只作用于已批准的镜头和精确计划;每次由你主动操作,不自动消耗剩余次数。"
|
||||
icon="info"
|
||||
/>
|
||||
<NSelect
|
||||
v-model:value="additionalId"
|
||||
clearable
|
||||
:options="additionalOptions"
|
||||
:disabled="submitting || additionalQuery.loading.value"
|
||||
placeholder="主动选择已有人工追加许可(可不选,仅免费预览)"
|
||||
placeholder="选择人工有限许可(可选)"
|
||||
aria-label="本次人工追加许可"
|
||||
/><NButton
|
||||
:loading="additionalQuery.loading.value"
|
||||
@@ -338,7 +355,7 @@ watch(
|
||||
>
|
||||
<p v-if="additionalQuery.error.value" role="alert">{{ additionalQuery.error.value }}</p>
|
||||
<p v-if="additionalParent" class="text-sm">
|
||||
原镜头 {{ additionalParent.input.targetId }} · 原型号 {{ additionalParent.input.model }} · 原预留
|
||||
原型号 {{ additionalParent.input.model }} · 原预留
|
||||
{{ formatMicros(additionalParent.input.reservedMicros) }} · 原账单
|
||||
{{ formatMicros(additionalParent.output?.actualBilledMicros) }}
|
||||
</p>
|
||||
@@ -346,6 +363,28 @@ watch(
|
||||
本镜已用 {{ boundedTarget.usedRequests }}/{{ boundedTarget.maxRequests }} 次 · 原预算剩余
|
||||
{{ formatMicros(boundedBudget?.remainingMicros) }}。旧未知费用未被核清。
|
||||
</p>
|
||||
<RecordDetails
|
||||
v-if="additionalPermit"
|
||||
title="许可记录"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{
|
||||
label: '适用方式',
|
||||
value:
|
||||
additionalPermit.input.mode === 'bounded'
|
||||
? '限定镜头与计划'
|
||||
: '同一计划人工追加'
|
||||
},
|
||||
{ label: '批准人', value: additionalPermit.input.approvedBy },
|
||||
{ label: '批准说明', value: additionalPermit.input.approvalNote },
|
||||
{ label: '批准次数', value: additionalPermit.input.maxRequests },
|
||||
{ label: '已用次数', value: additionalPermit.usedRequests },
|
||||
{ label: '剩余次数', value: additionalPermit.remainingRequests }
|
||||
]
|
||||
}
|
||||
]"
|
||||
/>
|
||||
</section>
|
||||
<!-- 以下是正式摄影设计与画面状态 -->
|
||||
<ModelCapabilities
|
||||
@@ -401,7 +440,9 @@ watch(
|
||||
/>
|
||||
<!-- 以下是正式画幅、尺寸及连续性诊断 -->
|
||||
<KeyframePreviewChecks v-if="preview" :preview="preview" class="mt-3" />
|
||||
<p v-if="chargeNotice" class="text-sm text-muted" role="status">{{ chargeNotice }}</p>
|
||||
<ContextNotice v-if="chargeNotice" emphasized :show-icon="false" role="status">{{
|
||||
chargeNotice
|
||||
}}</ContextNotice>
|
||||
<NCheckbox
|
||||
v-if="requiresCostConfirmation"
|
||||
id="confirm-keyframe-cost"
|
||||
|
||||
@@ -42,9 +42,7 @@ const label = computed(() => {
|
||||
<p>{{ label }} · {{ executionStageLabel(execution.stage) }}</p>
|
||||
<p v-if="execution.total > 0">审核计划进度:{{ execution.current }} / {{ execution.total }}</p>
|
||||
<p v-else>尚无可确认的步骤进度。</p>
|
||||
<p class="wrap-anywhere text-xs text-muted">
|
||||
执行编号:{{ execution.id }} · {{ formatDate(execution.updatedAt) }}
|
||||
</p>
|
||||
<p class="wrap-anywhere text-xs text-muted">更新于 {{ formatDate(execution.updatedAt) }}</p>
|
||||
<p v-if="typeof execution.result?.summary === 'string'">
|
||||
历史执行摘要:{{ userFacingText(execution.result.summary) }}
|
||||
</p>
|
||||
|
||||
@@ -6,7 +6,7 @@ import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { NButton, NInput, NCollapse, NCollapseItem } from 'naive-ui'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import { useQuery } from '../../../composables/useQuery'
|
||||
import { imageAuthorizationApi } from '../../image-authorization/api'
|
||||
import { formatMicros } from '../../image-authorization/model'
|
||||
@@ -339,21 +339,37 @@ const records = computed(() =>
|
||||
<p v-if="generationRecords.loading.value" role="status">正在读取原图片请求…</p>
|
||||
<p v-else-if="generationRecords.error.value" role="alert">{{ generationRecords.error.value }}</p>
|
||||
<p v-else-if="!generationRecords.data.value?.length" class="text-xs text-muted">
|
||||
未找到此图片的原OpenAI费用记录;不据此推断费用为0。
|
||||
暂无这张图片的费用记录,不能据此判断免费。
|
||||
</p>
|
||||
<article
|
||||
v-for="row in generationRecords.data.value ?? []"
|
||||
:key="row.id"
|
||||
class="my-3 space-y-2 text-xs wrap-anywhere"
|
||||
aria-label="原图片生成记录"
|
||||
>
|
||||
<p>原请求 {{ row.id }} · {{ generationStatusLabels[row.status] ?? '待确认' }}</p>
|
||||
<p>原图片生成:{{ generationStatusLabels[row.status] ?? '待确认' }}</p>
|
||||
<p>
|
||||
原预留 {{ formatMicros(row.input.reservedMicros) }} · 公开用量价
|
||||
{{ formatMicros(row.output?.usageCostMicros) }} · 实际账单
|
||||
{{ formatMicros(row.output?.actualBilledMicros) }}
|
||||
</p>
|
||||
<p v-if="row.billingAudit?.released">费用已核清;原执行、机器质量及主首帧状态保持独立。</p>
|
||||
<RawDataDetails :value="row" title="原模型、来源、精确计划与回执" />
|
||||
<RecordDetails
|
||||
inline
|
||||
title="当次生成记录"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{ label: '模型', value: row.input.model },
|
||||
{ label: '生成范围', value: '本镜头的原图片' },
|
||||
{
|
||||
label: '使用许可',
|
||||
value: row.input.additionalAuthorizationId ? '人工有限许可' : '原图片授权'
|
||||
}
|
||||
]
|
||||
}
|
||||
]"
|
||||
/>
|
||||
</article>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
@@ -436,7 +452,6 @@ const records = computed(() =>
|
||||
<p>补跑要求:原通用检查已通过;本次仅补跑一个物理步骤,不重复提交通用检查。</p>
|
||||
<p>物理专项原失败原因:{{ userFacingText(physicalTarget.error, '原物理回执未能形成有效结果。') }}</p>
|
||||
<p>原费用已记录,保留原回执;本次需要独立授权,可能产生新费用。</p>
|
||||
<p class="wrap-anywhere text-xs text-muted">原审核任务:{{ physicalTarget.id }}</p>
|
||||
</template>
|
||||
<p v-else>原审核已人工终止,未标记通过。请填写已取得的独立授权编号,新审核可能产生费用。</p>
|
||||
<NInput
|
||||
@@ -479,11 +494,9 @@ const records = computed(() =>
|
||||
: '暂无结论'
|
||||
}}
|
||||
</p>
|
||||
<p class="mt-2 wrap-anywhere text-xs text-muted">审核任务:{{ record.id }}</p>
|
||||
<section v-if="record.legacyTermination" class="mt-2 space-y-1 text-sm">
|
||||
<p>历史审核已人工终止,原任务状态:{{ stepLabels[record.status] ?? '待确认' }};未标记通过。</p>
|
||||
<p>人工终止时间:{{ formatDate(record.legacyTermination.terminatedAt) }}</p>
|
||||
<p class="wrap-anywhere">审计编号:{{ record.legacyTermination.auditId }}</p>
|
||||
<p>
|
||||
费用结论:{{
|
||||
{
|
||||
@@ -512,9 +525,7 @@ const records = computed(() =>
|
||||
</p>
|
||||
<p v-if="record.recoveryReason" class="text-muted">{{ userFacingText(record.recoveryReason) }}</p>
|
||||
<p v-if="record.error" class="text-danger">{{ userFacingText(record.error) }}</p>
|
||||
<p v-if="record.sourceReviewId" class="wrap-anywhere text-sm">
|
||||
独立新来源审核 · 人工记录 {{ record.sourceReviewId }}(与旧 Vision 分开存证)
|
||||
</p>
|
||||
<p v-if="record.sourceReviewId" class="wrap-anywhere text-sm">已按新来源独立审核,旧审核记录仍保留。</p>
|
||||
<template v-if="record.validation">
|
||||
<p>合并结论:{{ userFacingText(record.validation.summary) }}</p>
|
||||
<p v-for="(issue, index) in record.validation.issues" :key="index" class="text-danger">
|
||||
|
||||
@@ -4,12 +4,7 @@ import { formatDate } from '../../../lib/format'
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
import type { KeyframeValidationStep } from '../quality.types'
|
||||
import type { ValidationExecutionStep } from '../validation-executions.types'
|
||||
import {
|
||||
validationQualityLabels,
|
||||
validationStatusLabels,
|
||||
validationStepNames,
|
||||
validationUsageLabels
|
||||
} from '../validation-execution-labels'
|
||||
import { validationQualityLabels, validationStatusLabels, validationStepNames } from '../validation-execution-labels'
|
||||
|
||||
/** 原任务摘要与逐次执行共用公开步骤展示,复用用量不重复归入本次。 */
|
||||
defineProps<{
|
||||
@@ -47,7 +42,9 @@ function stepTitle(step: KeyframeValidationStep | ValidationExecutionStep) {
|
||||
: '执行方式未记录'
|
||||
}}
|
||||
</p>
|
||||
<p v-if="step.usageAttribution === 'reused'" class="text-muted">以下为原调用计量,不重复计入本次。</p>
|
||||
<p v-if="step.usageAttribution === 'reused'" class="text-muted">
|
||||
本步骤复用原调用,不重复计入本次费用。
|
||||
</p>
|
||||
<p v-else-if="step.usageAttribution === 'unknown'" class="text-muted">
|
||||
计量归属未记录,不能推算本次费用。
|
||||
</p>
|
||||
@@ -59,19 +56,15 @@ function stepTitle(step: KeyframeValidationStep | ValidationExecutionStep) {
|
||||
</ul>
|
||||
<p v-else class="mt-2 text-xs text-muted">{{ step.issues ? '未记录问题。' : '未记录问题证据。' }}</p>
|
||||
<p v-if="step.error" class="mt-2 text-sm">{{ userFacingText(step.error) }}</p>
|
||||
<!-- 以下是必要的原始请求、时间和计量,默认收起 -->
|
||||
<!-- 步骤时间与调用方式按需核对,内部请求与原始计量留在数据层。 -->
|
||||
<NCollapse class="mt-2"
|
||||
><NCollapseItem name="diagnostics" title="高级详情">
|
||||
><NCollapseItem name="diagnostics" title="步骤记录">
|
||||
<dl class="space-y-1 wrap-anywhere text-xs text-muted">
|
||||
<div v-if="step.startedAt">开始:{{ formatDate(step.startedAt) }}</div>
|
||||
<div v-if="step.finishedAt">完成:{{ formatDate(step.finishedAt) }}</div>
|
||||
<div v-if="step.requestId">请求编号:{{ step.requestId }}</div>
|
||||
<div v-if="step.providerRequestId">模型服务请求编号:{{ step.providerRequestId }}</div>
|
||||
<div v-if="'sourceExecutionId' in step && step.sourceExecutionId">
|
||||
复用来源执行:{{ step.sourceExecutionId }}
|
||||
</div>
|
||||
|
||||
<div v-if="'usageAttribution' in step">
|
||||
计量归属:{{
|
||||
调用方式:{{
|
||||
step.usageAttribution === 'this_execution'
|
||||
? '本次新调用'
|
||||
: step.usageAttribution === 'reused'
|
||||
@@ -79,10 +72,6 @@ function stepTitle(step: KeyframeValidationStep | ValidationExecutionStep) {
|
||||
: '未记录'
|
||||
}}
|
||||
</div>
|
||||
<div v-for="(count, unit) in step.usage" :key="unit">
|
||||
{{ validationUsageLabels[unit] }}词元:{{ count }}
|
||||
</div>
|
||||
<div v-if="!step.usage || !Object.keys(step.usage).length">未记录计量。</div>
|
||||
</dl>
|
||||
</NCollapseItem></NCollapse
|
||||
>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import { computed, onScopeDispose, ref, watch } from 'vue'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NInput, NSelect } from 'naive-ui'
|
||||
import WorkspaceSectionHeading from '../../../components/ui/WorkspaceSectionHeading.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import { useActionMessage, showActionFeedback } from '../../../components/ui/useActionMessage'
|
||||
import { ApiError, errorMessage } from '../../../lib/http'
|
||||
import { layoutApi, type ConfirmedLayout, type LayoutSupplementPreview } from '../layout-api'
|
||||
@@ -200,7 +201,7 @@ async function confirmLayout() {
|
||||
placeholder="选择当前布局"
|
||||
aria-label="待审结构布局"
|
||||
/>
|
||||
<p v-if="layout" class="wrap-anywhere text-xs text-muted">当前布局版本:{{ layout.version }}</p>
|
||||
<p v-if="layout" class="text-xs text-muted">已读取当前布局,保存前会再次核对版本。</p>
|
||||
<NInput
|
||||
v-model:value="instruction"
|
||||
type="textarea"
|
||||
@@ -218,23 +219,42 @@ async function confirmLayout() {
|
||||
:input-props="{ 'aria-label': '布局结构依据' }"
|
||||
/>
|
||||
<NButton :loading="loading" :disabled="!valid || saving" @click="loadPreview">免费预览结构约束</NButton>
|
||||
<!-- 以下是待审提示词、独立指纹与正式确认参数模块 -->
|
||||
<!-- 以下是待审画面描述与完整业务约束,版本保护仍使用原始参数。 -->
|
||||
<section v-if="preview" class="space-y-3 text-sm">
|
||||
<p>待审输入不能用于生图;需要确认布局并重新确认母版。</p>
|
||||
<NCollapse>
|
||||
<NCollapseItem name="preview" title="预览画面描述与高级详情">
|
||||
<NCollapseItem name="preview" title="预览画面描述">
|
||||
<pre class="whitespace-pre-wrap break-words text-xs">{{ preview.providerPrompt }}</pre>
|
||||
<dl class="mt-3 space-y-2 wrap-anywhere text-xs text-muted">
|
||||
<div>待审指纹:{{ preview.draftFingerprint }}</div>
|
||||
<div>可用于生产:{{ preview.productionReady ? '是' : '否' }}</div>
|
||||
<div>需要布局确认:{{ preview.requiresLayoutConfirmation ? '是' : '否' }}</div>
|
||||
<div>需要母版重新确认:{{ preview.requiresMasterReconfirmation ? '是' : '否' }}</div>
|
||||
</dl>
|
||||
<pre class="mt-3 whitespace-pre-wrap break-words text-xs">{{
|
||||
JSON.stringify(preview.layoutConfirmation, null, 2)
|
||||
}}</pre>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<RecordDetails
|
||||
title="本次完整布局约束"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{ label: '布局', value: preview.layoutConfirmation.name },
|
||||
{ label: '依据', value: preview.layoutConfirmation.evidence }
|
||||
]
|
||||
},
|
||||
...preview.layoutConfirmation.constraints.map((constraint, index) => ({
|
||||
title: `约束 ${index + 1}`,
|
||||
fields: [
|
||||
{ label: '要求', value: constraint.description },
|
||||
{ label: '来源', value: constraint.source === 'script' ? '剧本事实' : '人工美术设计' },
|
||||
{ label: '画面要求', value: constraint.keyframeInstruction },
|
||||
...(constraint.compositionRules ?? []).flatMap(rule => [
|
||||
{ label: '构图要求', value: rule.requirement },
|
||||
{ label: '验收依据', value: rule.acceptance }
|
||||
])
|
||||
]
|
||||
}))
|
||||
]"
|
||||
/>
|
||||
<WorkspaceSectionHeading
|
||||
title="正式布局确认"
|
||||
description="保存会改变布局版本。母版、场景形态及已有首帧需要重新核对,不会自动生成素材。"
|
||||
@@ -252,8 +272,6 @@ async function confirmLayout() {
|
||||
<!-- 以下是版本变化与最新母版来源影响,不自动生成或替换主图 -->
|
||||
<section v-if="confirmed" class="space-y-2 wrap-anywhere text-sm" role="status">
|
||||
<p class="font-semibold">布局已更新</p>
|
||||
<p class="text-xs">原版本:{{ confirmed.previous }}</p>
|
||||
<p class="text-xs">新版本:{{ confirmed.layout.version }}</p>
|
||||
<p>
|
||||
布局母版:{{
|
||||
layouts
|
||||
|
||||
@@ -340,7 +340,7 @@ const rules = computed(() => ({
|
||||
...sizeRules(() => formModel.value)
|
||||
}))
|
||||
/** 更多参数折叠状态。 */
|
||||
const optionsExpanded = ref<string[]>(['options'])
|
||||
const optionsExpanded = ref<string[]>([])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -497,6 +497,7 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
</NCollapse>
|
||||
<ContextNotice
|
||||
v-if="!visionHistoryRef?.authorizationAvailable && !(visionKey && action === 'validate')"
|
||||
emphasized
|
||||
type="warning"
|
||||
:show-icon="false"
|
||||
class="mt-4"
|
||||
@@ -562,7 +563,6 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
<p class="mt-3 text-xs text-muted">此为历史抽样结论,不保证当前上游素材仍然一致。</p></NCollapseItem
|
||||
></NCollapse
|
||||
>
|
||||
<p v-if="target?.kind !== 'batch'" class="mt-3 text-xs text-muted">可导出结果或查看首帧检查历史。</p>
|
||||
<!-- 以下是底栏左侧费用确认与右侧操作按钮模块 -->
|
||||
<template #footer>
|
||||
<div class="quality-dialog-footer">
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
|
||||
@@ -189,7 +188,6 @@ function exportResult() {
|
||||
<p v-for="issue in subject.issues" :key="issue">{{ issue }}</p>
|
||||
</div>
|
||||
</template>
|
||||
<RawDataDetails :value="receipt.result" />
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
</section>
|
||||
|
||||
@@ -23,7 +23,14 @@ import ConfirmAction from '../../workflows/ConfirmAction.vue'
|
||||
import { runOperation } from '../../workflows/operations'
|
||||
import { productionApi } from '../api'
|
||||
import { qualityApi } from '../quality-api'
|
||||
import { isActiveVideo, primaryKeyframe, primaryVideo, productionStatusLabel, videoRecordedValidation } from '../model'
|
||||
import {
|
||||
isActiveVideo,
|
||||
primaryKeyframe,
|
||||
primaryVideo,
|
||||
productionStatusLabel,
|
||||
videoRecordedValidation,
|
||||
keyframeDisplayNames
|
||||
} from '../model'
|
||||
import { productionIssueText, productionMessage, videoInputStaleReason } from '../production-messages'
|
||||
import type {
|
||||
GenerateKeyframeInput,
|
||||
@@ -205,6 +212,8 @@ const currentVideoInput = computed(() =>
|
||||
videoInputQuery.data.value?.shotId === key.value ? videoInputQuery.data.value : null
|
||||
)
|
||||
const keyframes = computed(() => query.data.value?.keyframes ?? [])
|
||||
/** 主图与候选共用完整记录的名称,晋升或倒序查看不重新编号。 */
|
||||
const keyframeNames = computed(() => keyframeDisplayNames(keyframes.value, props.shot.title, props.shot.shotNo))
|
||||
/** 下载回执丢失或刷新后,只用列表明确保存的恢复结果解除同镜头的保护。 */
|
||||
watch(keyframes, rows => {
|
||||
const shotId = props.shot.shotId
|
||||
@@ -857,6 +866,7 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
:shot-id="shot.shotId"
|
||||
:review-revision="reviewRevision"
|
||||
:item="currentKeyframe"
|
||||
:display-name="keyframeNames.get(currentKeyframe.id)"
|
||||
:editing="
|
||||
editSource?.id === currentKeyframe.id &&
|
||||
isOperationRunning(getOperation(projectId), `编辑镜头 ${shot.shotId} 首帧`)
|
||||
@@ -1185,12 +1195,13 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
>
|
||||
<!-- 候选图片和对应的人工复核入口按相同候选 ID 分组。 -->
|
||||
<div v-if="keyframeCandidates.length" class="asset-candidate-grid mt-4">
|
||||
<div v-for="item in keyframeCandidates" :key="item.id" class="min-w-0">
|
||||
<div v-for="item in keyframeCandidates" :key="item.id" class="min-w-0 h-full">
|
||||
<KeyframeCard
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:review-revision="reviewRevision"
|
||||
:item="item"
|
||||
:display-name="keyframeNames.get(item.id)"
|
||||
:recovering="isOperationRunning(getOperation(projectId), `恢复已生成首帧 ${item.id}`)"
|
||||
@recover="recoverSavedKeyframe(item)"
|
||||
:editing="
|
||||
@@ -1283,7 +1294,12 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
>
|
||||
</template>
|
||||
</AppDrawer>
|
||||
<AppDialog v-model:open="historyOpen" title="首帧记录" :busy="historyAuthorizationPending" wide>
|
||||
<AppDialog
|
||||
v-model:open="historyOpen"
|
||||
:title="`首帧记录 · ${keyframeNames.get(historyKeyframeId) ?? '当前图片'}`"
|
||||
:busy="historyAuthorizationPending"
|
||||
wide
|
||||
>
|
||||
<div v-if="historyOpen && historyKeyframeId" :key="historyKeyframeId" class="workspace-section-stack">
|
||||
<!-- 以下是按需读取的候选生成证据 -->
|
||||
<KeyframeInputDetails :project-id="projectId" :shot-id="shot.shotId" :keyframe-id="historyKeyframeId" />
|
||||
@@ -1364,18 +1380,6 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
.video-grid {
|
||||
@apply grid w-full max-w-[260px] grid-cols-1 gap-3;
|
||||
}
|
||||
/* 候选画面固定 260px,最多五列;列数减少时仍保持左右边缘对齐。 */
|
||||
.asset-candidate-grid {
|
||||
@apply grid w-full max-w-[1348px] items-start gap-3;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 260px));
|
||||
justify-content: space-between;
|
||||
}
|
||||
.keyframe-card {
|
||||
@apply min-w-0 overflow-hidden rounded-none bg-(--app-subtle);
|
||||
}
|
||||
.keyframe-card .asset-image {
|
||||
@apply aspect-square rounded-none;
|
||||
}
|
||||
/* 素材背景与标题铺满外层内容宽度。 */
|
||||
.video-input-section {
|
||||
width: 100%;
|
||||
@@ -1416,10 +1420,6 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
.video-grid {
|
||||
@apply max-w-none;
|
||||
}
|
||||
/* 手机候选按整行展示,避免固定 260px 造成侧边留白。 */
|
||||
.asset-candidate-grid {
|
||||
@apply max-w-none grid-cols-[minmax(0,_1fr)];
|
||||
}
|
||||
/* 窄屏优先并排展示两列;素材较少时仍等分占满可用宽度。 */
|
||||
.video-input-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import SourceApplicabilityFields from './SourceApplicabilityFields.vue'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import { computed, watch } from 'vue'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NInput, NInputNumber, NSelect } from 'naive-ui'
|
||||
import AppDrawer from '../../../components/ui/AppDrawer.vue'
|
||||
@@ -49,6 +49,33 @@ const findingOptions = [
|
||||
{ label: '通过', value: 'passed' },
|
||||
{ label: '不通过', value: 'failed' }
|
||||
]
|
||||
/** 历史人工观察只显示维度、意见和事实,保留原记录用于后续核对。 */
|
||||
const observationRecords = computed(() => {
|
||||
const review = form.record.value?.review
|
||||
if (!review) return []
|
||||
return [
|
||||
{
|
||||
fields: [
|
||||
{ label: '审核人', value: review.reviewer },
|
||||
{ label: '复核理由', value: review.reason }
|
||||
]
|
||||
},
|
||||
...review.observations.map(observation => ({
|
||||
title: `比较参考 ${observation.imageNumber}`,
|
||||
fields: [
|
||||
...Object.entries(sourceFindingLabels).map(([dimension, label]) => ({
|
||||
label,
|
||||
value:
|
||||
findingOptions.find(
|
||||
option =>
|
||||
option.value === observation.finding[dimension as keyof typeof sourceFindingLabels]
|
||||
)?.label ?? '未知/无法看清'
|
||||
})),
|
||||
{ label: '可见事实', value: observation.note }
|
||||
]
|
||||
}))
|
||||
]
|
||||
})
|
||||
/** 正式动作只从当前预检原文解析,不用编号或关键词猜测。 */
|
||||
const formalActions = computed(() => {
|
||||
const raw = form.preview.value?.applicabilityBasis?.facts.rawJson
|
||||
@@ -82,7 +109,7 @@ const referenceRoleLabels: Record<string, string> = {
|
||||
'style-scene': '场景风格',
|
||||
'style-prop': '道具风格'
|
||||
}
|
||||
/** 同图同主体合并职责,完整原始绑定仍保留在高级详情。 */
|
||||
/** 同图同主体合并职责,原始绑定继续用于来源保护。 */
|
||||
const referenceSummaries = computed(
|
||||
() =>
|
||||
new Map(
|
||||
@@ -134,6 +161,7 @@ const statusLabels: Record<string, string> = {
|
||||
title="按当前来源人工复核"
|
||||
description="人工观察、机器审核与跨镜验收分别进行;不会生图或替换主首帧。"
|
||||
:busy="busy"
|
||||
description-as-info
|
||||
>
|
||||
<div class="source-review-body">
|
||||
<!-- 以下是当前有效质量摘要,人工观察通过不代表机器质量通过 -->
|
||||
@@ -180,24 +208,32 @@ const statusLabels: Record<string, string> = {
|
||||
<WorkspaceSectionHeading
|
||||
title="保留的原主首帧"
|
||||
description="点击小图查看原图。当前参考仅用于比较,不代表原图生成时已使用。"
|
||||
description-as-info
|
||||
/>
|
||||
<p v-if="form.restored.value && form.targetMatched.value" class="text-sm text-muted">
|
||||
已读取当前有效的原观察和依据,无需重复填写或保存;只需修改变化项,未知仍保持未知。
|
||||
</p>
|
||||
<RawDataDetails
|
||||
title="历史输入、图片摘要与来源变化"
|
||||
:value="{
|
||||
originalProviderInput: form.preview.value.originalProviderInput,
|
||||
historicalVision: form.preview.value.historicalVision,
|
||||
originalPixels: form.preview.value.originalPixels,
|
||||
sourceChanges: form.preview.value.sourceChanges
|
||||
}"
|
||||
<RecordDetails
|
||||
title="原图片生成记录"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{ label: '原模型', value: form.preview.value.originalProviderInput.model },
|
||||
{
|
||||
label: '原画面描述',
|
||||
value: form.preview.value.originalProviderInput.providerPrompt
|
||||
},
|
||||
{ label: '历史审核次数', value: form.preview.value.historicalVision.length }
|
||||
]
|
||||
}
|
||||
]"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
<WorkspaceSectionHeading
|
||||
title="本次新参考与逐图观察"
|
||||
description="新参考仅是本次比较依据,不是原图的生成输入。结构看不清时保留未知,并逐项核对本镜是否需要该证据。"
|
||||
description-as-info
|
||||
/>
|
||||
<!-- 以下是正式动作和适用范围的核对依据 -->
|
||||
<section v-if="form.preview.value.applicabilityBasis" class="space-y-2 text-sm">
|
||||
@@ -208,15 +244,10 @@ const statusLabels: Record<string, string> = {
|
||||
? '固定机位'
|
||||
: '非固定或尚未确认的机位'
|
||||
}}
|
||||
· 正式动作
|
||||
{{ form.preview.value.applicabilityBasis.actionIds?.join('、') || '未提供,不能判为非阻断' }}
|
||||
· {{ formalActions.length ? `${formalActions.length} 项正式动作` : '正式动作依据待核对' }}
|
||||
</p>
|
||||
<p v-for="action in formalActions" :key="action.id">{{ action.id }}:{{ action.description }}</p>
|
||||
<p v-if="!formalActions.length">未读到完整正式动作原文,请核对高级详情;不能凭动作编号猜测依赖。</p>
|
||||
<RawDataDetails
|
||||
title="核对完整正式动作、摄影与即时状态"
|
||||
:value="form.preview.value.applicabilityBasis.facts"
|
||||
/>
|
||||
<p v-for="action in formalActions" :key="action.id">{{ action.description }}</p>
|
||||
<p v-if="!formalActions.length">缺少正式动作原文,请先核对当前分镜;不能据此豁免审核。</p>
|
||||
</section>
|
||||
<!-- 以下是逐参考的小图与核对表单,必要的未知范围按需展开 -->
|
||||
<div class="source-review-reference-grid">
|
||||
@@ -337,13 +368,7 @@ const statusLabels: Record<string, string> = {
|
||||
<p v-if="form.record.value.invalidation" class="text-sm text-muted">
|
||||
{{ userFacingText(form.record.value.invalidation) }}
|
||||
</p>
|
||||
<NCollapse
|
||||
><NCollapseItem title="原始人工观察" name="observations">
|
||||
<pre class="whitespace-pre-wrap wrap-anywhere text-xs">{{
|
||||
JSON.stringify(form.record.value.review, null, 2)
|
||||
}}</pre>
|
||||
</NCollapseItem></NCollapse
|
||||
>
|
||||
<RecordDetails title="原始人工观察" :records="observationRecords" />
|
||||
<NButton
|
||||
:loading="form.pending.value === 'plan'"
|
||||
:disabled="
|
||||
@@ -368,13 +393,6 @@ const statusLabels: Record<string, string> = {
|
||||
}}
|
||||
· 最多请求 {{ form.plan.value.steps.length }} 次
|
||||
</p>
|
||||
<NCollapse
|
||||
><NCollapseItem title="完整计划及指纹" name="plan">
|
||||
<pre class="whitespace-pre-wrap wrap-anywhere text-xs">{{
|
||||
JSON.stringify(form.plan.value, null, 2)
|
||||
}}</pre>
|
||||
</NCollapseItem></NCollapse
|
||||
>
|
||||
<NCollapse
|
||||
><NCollapseItem name="paid-approval" title="准备独立付费审核(按需展开)"
|
||||
><div class="flex flex-col gap-4">
|
||||
@@ -470,7 +488,7 @@ const statusLabels: Record<string, string> = {
|
||||
/>
|
||||
<p v-if="resultLabel" class="text-sm" role="status">{{ resultLabel }}</p>
|
||||
<!-- 以下是默认收起的历史追溯,不让已结束执行干扰当前观察 -->
|
||||
<NCollapse v-if="form.result.value || form.vision.history.data.value?.some(item => item.sourceReviewId)"
|
||||
<NCollapse v-if="form.vision.history.data.value?.some(item => item.sourceReviewId)"
|
||||
><NCollapseItem name="source-history" title="历史审核与执行记录">
|
||||
<section
|
||||
v-for="record in form.vision.history.data.value?.filter(r => r.sourceReviewId)"
|
||||
@@ -478,7 +496,7 @@ const statusLabels: Record<string, string> = {
|
||||
class="space-y-2"
|
||||
>
|
||||
<p class="wrap-anywhere text-sm">
|
||||
独立新来源审核 · 人工记录 {{ record.sourceReviewId }} · 原任务 {{ record.id }} ·
|
||||
独立新来源审核 ·
|
||||
{{ userFacingText(record.status) }}
|
||||
</p>
|
||||
<KeyframeExecutionHistory
|
||||
@@ -487,16 +505,8 @@ const statusLabels: Record<string, string> = {
|
||||
:keyframe-id="keyframeId"
|
||||
:validation-task-id="record.id"
|
||||
/>
|
||||
</section>
|
||||
<NCollapse v-if="form.result.value"
|
||||
><NCollapseItem title="本次完整回执(完成不等于通过)" name="receipt">
|
||||
<pre class="whitespace-pre-wrap wrap-anywhere text-xs">{{
|
||||
JSON.stringify(form.result.value, null, 2)
|
||||
}}</pre>
|
||||
</NCollapseItem></NCollapse
|
||||
>
|
||||
</NCollapseItem></NCollapse
|
||||
>
|
||||
</section> </NCollapseItem
|
||||
></NCollapse>
|
||||
<NButton class="self-start" :loading="form.vision.history.loading.value" @click="refreshQuality"
|
||||
>只读刷新审核历史</NButton
|
||||
>
|
||||
|
||||
@@ -3,6 +3,14 @@ import { NCollapse, NCollapseItem } from 'naive-ui'
|
||||
import { AssetImage } from '../../../components/ui'
|
||||
import { validationStepNames } from '../validation-execution-labels'
|
||||
import { validationImageUrl, type ValidationPreview } from '../validation-preview'
|
||||
/** 参考职责使用业务名称,未知职责只说明图片参考,不展示内部枚举。 */
|
||||
const referenceRoleLabels: Record<string, string> = {
|
||||
'identity-anchor': '主体外观',
|
||||
'form-primary': '形态参考',
|
||||
'layout-master': '空间布局',
|
||||
'scene-form-view': '场景机位',
|
||||
'structure-reference': '固定结构'
|
||||
}
|
||||
/** 免费普通审核计划;不提供任何自动执行入口。 */
|
||||
defineProps<{ /** 当前只读计划。 */ plan: ValidationPreview }>()
|
||||
</script>
|
||||
@@ -50,7 +58,6 @@ defineProps<{ /** 当前只读计划。 */ plan: ValidationPreview }>()
|
||||
object-fit="contain"
|
||||
preview
|
||||
/>
|
||||
<p class="wrap-anywhere text-xs">SHA:{{ plan.image.sha256 }}</p>
|
||||
</div>
|
||||
<div v-for="reference in plan.references" :key="reference.imageNumber" class="min-w-0 space-y-2">
|
||||
<p>审核图片 {{ reference.imageNumber }} · 生成参考 {{ reference.generationImageNumber }}</p>
|
||||
@@ -62,9 +69,8 @@ defineProps<{ /** 当前只读计划。 */ plan: ValidationPreview }>()
|
||||
preview
|
||||
/>
|
||||
<p v-for="(binding, index) in reference.bindings" :key="index">
|
||||
{{ binding.subjectRef }} · {{ binding.role }}
|
||||
{{ binding.subjectRef }} · {{ referenceRoleLabels[binding.role] || '图片参考' }}
|
||||
</p>
|
||||
<p class="wrap-anywhere text-xs">SHA:{{ reference.sha256 }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</NCollapseItem></NCollapse
|
||||
|
||||
@@ -1,6 +1,22 @@
|
||||
import { reactive } from 'vue'
|
||||
import type { ProductionIssueCode, ProductionSession, ShotKeyframe, ShotVideo, ShotVideoQualityStatus } from './types'
|
||||
|
||||
/**
|
||||
* 为没有独立名称字段的首帧生成展示名称,按原创建时间编号,不随列表倒序或主图切换改名。
|
||||
* @param items 同一镜头的完整图片记录
|
||||
* @param shotTitle 当前镜头名称
|
||||
* @param shotNo 镜头序号,用于名称缺失时说明归属
|
||||
* @returns 图片ID与只用于展示的名称,不写回资产
|
||||
*/
|
||||
export function keyframeDisplayNames(items: readonly ShotKeyframe[], shotTitle: string, shotNo: number) {
|
||||
const title = shotTitle.trim() || `镜头 ${shotNo}`
|
||||
return new Map(
|
||||
items
|
||||
.toSorted((a, b) => (a.createdAt ?? '').localeCompare(b.createdAt ?? '') || a.id.localeCompare(b.id))
|
||||
.map((item, index) => [item.id, `${title} · 图片 ${String(index + 1).padStart(2, '0')}`])
|
||||
)
|
||||
}
|
||||
|
||||
/** 按项目隔离生产回执,切换页面后仍能查看上一次批量操作结果。 */
|
||||
const sessions = reactive<Record<string, ProductionSession>>({})
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import { userFacingText } from '../../lib/user-facing-text'
|
||||
import { isOperationRunning } from '../workflows/operations'
|
||||
|
||||
import ContextNotice from '../../components/ui/ContextNotice.vue'
|
||||
import FieldLabel from '../../components/ui/FieldLabel.vue'
|
||||
|
||||
import AppForm from '../../components/ui/AppForm.vue'
|
||||
import { NFormItem } from 'naive-ui'
|
||||
@@ -504,7 +505,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
|
||||
fullscreen
|
||||
>
|
||||
<!-- 以下是按正式 Episode、Beat、Shot 选择的生成范围。 -->
|
||||
<section class="workspace-section-stack" aria-label="派生镜头范围">
|
||||
<section class="workspace-panel workspace-section-stack" aria-label="派生镜头范围">
|
||||
<label class="workspace-form-field"
|
||||
><span>生成范围</span
|
||||
><NSelect
|
||||
@@ -625,7 +626,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
|
||||
</AppForm>
|
||||
</section>
|
||||
<!-- 以下是完整项目进度,仅在生成配置中核对。 -->
|
||||
<p v-if="projectDesignGap" class="text-sm text-muted">
|
||||
<p v-if="projectDesignGap" class="workspace-panel text-sm text-muted">
|
||||
全项目:摄影 {{ projectDesignGap.directionCount }}/{{ projectDesignGap.shotCount }} · 画面
|
||||
{{ projectDesignGap.visualStateCount }}/{{ projectDesignGap.shotCount }}
|
||||
<span v-if="projectDesignGap.staleDirectionCount || projectDesignGap.staleVisualStateCount">
|
||||
@@ -899,13 +900,20 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
|
||||
段落 {{ 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>
|
||||
<div class="mt-2 flex items-center gap-2">
|
||||
<h3 class="text-lg font-semibold">{{ shot.title }}</h3>
|
||||
<FieldLabel
|
||||
v-if="shot.visualFocus"
|
||||
label="视觉重点"
|
||||
:description="shot.visualFocus"
|
||||
icon-only
|
||||
icon="info"
|
||||
verbatim
|
||||
/>
|
||||
</div>
|
||||
<p v-if="shot.description" class="mt-3 whitespace-pre-wrap text-sm leading-7">
|
||||
{{ shot.description }}
|
||||
</p>
|
||||
<p v-if="shot.visualFocus" class="mt-2 text-xs leading-6 text-muted">
|
||||
视觉重点:{{ shot.visualFocus }}
|
||||
</p>
|
||||
</header>
|
||||
<div>
|
||||
<NTabs v-model:value="detailTab" type="line" size="small" aria-label="镜头详情"
|
||||
|
||||
@@ -9,24 +9,41 @@ const cameraPosition = defineModel<string>('cameraPosition', { required: true })
|
||||
</script>
|
||||
<template>
|
||||
<!-- 以下是两种摄影修订共用的字段,使用真实纵向间距。 -->
|
||||
<div class="workspace-section-stack">
|
||||
<label class="workspace-form-field"
|
||||
<div class="workspace-form-stack camera-fields-layout">
|
||||
<label class="workspace-form-field camera-fields-composition"
|
||||
><span>构图</span
|
||||
><NInput
|
||||
v-model:value="composition"
|
||||
class="workspace-prose-input"
|
||||
type="textarea"
|
||||
:disabled="disabled"
|
||||
aria-label="摄影构图"
|
||||
:autosize="{ minRows: 3, maxRows: 8 }"
|
||||
/></label>
|
||||
<label class="workspace-form-field"
|
||||
><span>摄影机位置</span
|
||||
><NInput
|
||||
v-model:value="cameraPosition"
|
||||
type="textarea"
|
||||
:disabled="disabled"
|
||||
aria-label="摄影机位置"
|
||||
:autosize="{ minRows: 3, maxRows: 8 }"
|
||||
:autosize="{ minRows: 4, maxRows: 12 }"
|
||||
/></label>
|
||||
<div class="workspace-form-stack">
|
||||
<label class="workspace-form-field"
|
||||
><span>摄影机位置</span
|
||||
><NInput
|
||||
v-model:value="cameraPosition"
|
||||
class="workspace-prose-input"
|
||||
type="textarea"
|
||||
:disabled="disabled"
|
||||
aria-label="摄影机位置"
|
||||
:autosize="{ minRows: 3, maxRows: 8 }"
|
||||
/></label>
|
||||
<!-- 联合编辑可把摄影意图放在机位下方,沿用同一套摄影字段。 -->
|
||||
<slot name="intent" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
/* 宽屏缩短长文行宽,构图与机位标签对齐;窄屏保持原单列表单。 */
|
||||
@media (min-width: 1280px) {
|
||||
.camera-fields-layout {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
align-items: start;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -220,6 +220,7 @@ defineExpose({ saving, canAdopt, adopt })
|
||||
<WorkspaceSectionHeading
|
||||
title="先修订摄影"
|
||||
description="免费预检并采用摄影修改,不生成画面状态。已有下游结果时需使用原组合修订。"
|
||||
description-as-info
|
||||
/>
|
||||
<NButton :disabled="saving" :loading="source.loading.value" @click="reloadSource">重新读取正式来源</NButton>
|
||||
<p v-if="sourceConflict" role="alert">来源或原摄影版本已变化。当前输入保留,请重新读取并核对后再预检。</p>
|
||||
|
||||
@@ -15,25 +15,30 @@ const environmentFields = ['timeOfDay', 'weather', 'atmosphere', 'transientState
|
||||
</script>
|
||||
<template>
|
||||
<!-- 以下是原摄影编辑器共用字段,摄影枚举和正式动作保持只读。 -->
|
||||
<div class="workspace-section-stack">
|
||||
<div class="workspace-form-stack">
|
||||
<DirectionCameraFields
|
||||
v-model:composition="draft.direction.composition"
|
||||
v-model:camera-position="draft.direction.cameraPosition"
|
||||
:disabled="disabled"
|
||||
/>
|
||||
<label class="workspace-form-field"
|
||||
><span>摄影意图</span
|
||||
><NInput
|
||||
v-model:value="draft.direction.visualIntent"
|
||||
type="textarea"
|
||||
:disabled="disabled"
|
||||
:maxlength="4000"
|
||||
aria-label="联合摄影意图"
|
||||
/></label>
|
||||
>
|
||||
<template #intent>
|
||||
<label class="workspace-form-field"
|
||||
><span>摄影意图</span
|
||||
><NInput
|
||||
v-model:value="draft.direction.visualIntent"
|
||||
class="workspace-prose-input"
|
||||
type="textarea"
|
||||
:autosize="{ minRows: 3, maxRows: 6 }"
|
||||
:disabled="disabled"
|
||||
:maxlength="4000"
|
||||
aria-label="联合摄影意图"
|
||||
/></label>
|
||||
</template>
|
||||
</DirectionCameraFields>
|
||||
<!-- 以下是可选环境修订,完整差异及本集原文在同一联合面板核对。 -->
|
||||
<NCollapse>
|
||||
<NCollapse class="workspace-collapse" display-directive="show">
|
||||
<NCollapseItem name="environment" title="环境修订(需本集原文)">
|
||||
<div class="workspace-section-stack">
|
||||
<div class="workspace-form-stack">
|
||||
<label v-for="field in environmentFields" :key="field" class="workspace-form-field">
|
||||
<span>{{ jointFieldLabels[field] }}</span>
|
||||
<NInput
|
||||
@@ -47,33 +52,40 @@ const environmentFields = ['timeOfDay', 'weather', 'atmosphere', 'transientState
|
||||
</label>
|
||||
</div>
|
||||
</NCollapseItem>
|
||||
<!-- 以下是原正式主体的开拍状态,不能修改主体集合与形态身份。 -->
|
||||
<NCollapseItem
|
||||
v-for="subject in draft.visualState.subjects"
|
||||
:key="subject.subjectRef"
|
||||
:name="subject.subjectRef"
|
||||
:title="`${subject.formName} · ${subject.subjectRef} · 当前开拍状态`"
|
||||
>
|
||||
<section class="workspace-form-stack">
|
||||
<label v-for="field in fields" :key="field" class="workspace-form-field"
|
||||
><span>{{ jointFieldLabels[field] }}</span
|
||||
><NInput
|
||||
v-model:value="subject[field]"
|
||||
type="textarea"
|
||||
:maxlength="4000"
|
||||
:disabled="disabled"
|
||||
:aria-label="`${subject.subjectRef} · ${jointFieldLabels[field]}`"
|
||||
/></label>
|
||||
</section>
|
||||
</NCollapseItem>
|
||||
<NCollapseItem name="continuity" title="衔接与时间依据">
|
||||
<label class="workspace-form-field"
|
||||
><span>衔接与时间依据</span
|
||||
><NInput
|
||||
v-model:value="draft.visualState.continuityNote"
|
||||
type="textarea"
|
||||
:maxlength="4000"
|
||||
:disabled="disabled"
|
||||
aria-label="联合衔接与时间依据"
|
||||
/></label>
|
||||
<VisualStateContinuity
|
||||
v-if="draft.visualState.continuityNote"
|
||||
:note="draft.visualState.continuityNote"
|
||||
/>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<!-- 以下是原正式主体的开拍状态,不能修改主体集合与形态身份。 -->
|
||||
<section
|
||||
v-for="subject in draft.visualState.subjects"
|
||||
:key="subject.subjectRef"
|
||||
class="workspace-section-stack"
|
||||
>
|
||||
<h4 class="text-sm font-medium">{{ subject.formName }} · {{ subject.subjectRef }} · 当前开拍状态</h4>
|
||||
<label v-for="field in fields" :key="field" class="workspace-form-field"
|
||||
><span>{{ jointFieldLabels[field] }}</span
|
||||
><NInput
|
||||
v-model:value="subject[field]"
|
||||
type="textarea"
|
||||
:maxlength="4000"
|
||||
:disabled="disabled"
|
||||
:aria-label="`${subject.subjectRef} · ${jointFieldLabels[field]}`"
|
||||
/></label>
|
||||
</section>
|
||||
<label class="workspace-form-field"
|
||||
><span>衔接与时间依据</span
|
||||
><NInput
|
||||
v-model:value="draft.visualState.continuityNote"
|
||||
type="textarea"
|
||||
:maxlength="4000"
|
||||
:disabled="disabled"
|
||||
aria-label="联合衔接与时间依据"
|
||||
/></label>
|
||||
<VisualStateContinuity v-if="draft.visualState.continuityNote" :note="draft.visualState.continuityNote" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -2,11 +2,12 @@
|
||||
import { computed, onScopeDispose, ref, watch } from 'vue'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NInput } from 'naive-ui'
|
||||
import { WorkspaceSectionHeading } from '../../../components/ui'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import { useActionMessage } from '../../../components/ui/useActionMessage'
|
||||
import { useQuery } from '../../../composables/useQuery'
|
||||
import { ApiError, errorMessage } from '../../../lib/http'
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
import { formatDate } from '../../../lib/format'
|
||||
import { preparationApi } from '../../storyboard-preparation/api'
|
||||
import { currentStoryboardApproval } from '../../storyboard-preparation/model'
|
||||
import { productionApi } from '../../production/api'
|
||||
@@ -17,7 +18,7 @@ import { runOperation, getOperation } from '../../workflows/operations'
|
||||
import { storyboardApi } from '../api'
|
||||
import { mergeDesignedShots } from '../model'
|
||||
import { derivedReviewApi } from '../derived-review-api'
|
||||
import { draftFromFormal } from '../derived-review'
|
||||
import { draftFromFormal, cameraRevisionSummaries } from '../derived-review'
|
||||
import { jointDraftDifferences, jointValue } from '../joint-review'
|
||||
import type {
|
||||
DerivedReviewSelection,
|
||||
@@ -117,6 +118,20 @@ const source = useQuery(key, async (value, signal) => {
|
||||
})
|
||||
/** 原保存记录的修订和状态只由正式GET更新。 */
|
||||
const saved = computed(() => source.data.value?.saved)
|
||||
/** 联合模式保留原摄影修订历史,仅展示可读的前后变化。 */
|
||||
const cameraHistoryRecords = computed(() =>
|
||||
cameraRevisionSummaries(source.data.value?.shot.direction?.rawJson).map((event, index) => ({
|
||||
title: `第 ${index + 1} 次摄影修订`,
|
||||
fields: [
|
||||
{ label: '审核人', value: event.reviewer },
|
||||
{ label: '采用时间', value: event.adoptedAt ? formatDate(event.adoptedAt) : '未记录' },
|
||||
{ label: '原构图', value: event.beforeComposition },
|
||||
{ label: '采用后构图', value: event.afterComposition },
|
||||
{ label: '原机位', value: event.beforePosition },
|
||||
{ label: '采用后机位', value: event.afterPosition }
|
||||
]
|
||||
}))
|
||||
)
|
||||
/** 全部变化都展示,越界变化不能通过过滤后提交。 */
|
||||
const differences = computed(() =>
|
||||
source.data.value && draft.value ? jointDraftDifferences(source.data.value.formal, draft.value) : []
|
||||
@@ -499,71 +514,127 @@ async function adopt() {
|
||||
}
|
||||
/** 同一抽屉固定底栏复用当前模式操作。 */
|
||||
defineExpose({ saving, savingKind, canSave, canAdopt, save, adopt })
|
||||
/** 可见功能块依次编号;条件区域隐藏时不留下跳号,也不作为业务步骤状态。 */
|
||||
const sectionMarkers = computed(() => {
|
||||
const keys = ['source']
|
||||
if (draft.value && source.data.value) {
|
||||
keys.push('history', 'draft', 'differences')
|
||||
if (hasEnvironmentChanges.value) keys.push('environment')
|
||||
keys.push('preview', 'confirmation')
|
||||
if (formalPreview.value) keys.push('formalPreview')
|
||||
}
|
||||
const numerals = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII']
|
||||
return Object.fromEntries(keys.map((sectionKey, index) => [sectionKey, numerals[index]]))
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<!-- 以下是联合模式的来源与已保存原稿,技术版本默认收起。 -->
|
||||
<div class="workspace-section-stack">
|
||||
<WorkspaceSectionHeading
|
||||
title="摄影与开拍状态联合修订"
|
||||
description="保留主体、形态与动作事实。环境变化需本集原文依据,保存与正式采用分别执行。"
|
||||
/>
|
||||
<NButton class="self-start" :disabled="saving" :loading="source.loading.value" @click="reload"
|
||||
>重新读取正式来源与草案</NButton
|
||||
>
|
||||
<p v-if="source.loading.value" role="status">正在核对完整正式来源…</p>
|
||||
<p v-if="source.error.value" role="alert">{{ source.error.value }}</p>
|
||||
<p v-if="saved" class="text-sm">
|
||||
已保存第 {{ saved.revision }} 版 ·
|
||||
{{
|
||||
saved.status === 'current'
|
||||
? '来源当前有效'
|
||||
: saved.staleReason
|
||||
? userFacingText(saved.staleReason)
|
||||
: '原草案来源已变化,请重新核对'
|
||||
}}。保存记录不代表正式采用。
|
||||
</p>
|
||||
<p v-if="conflict" role="alert">
|
||||
来源、草案或相邻镜头版本发生冲突。当前输入已保留,请重新读取并核对后再次免费预检。
|
||||
</p>
|
||||
<p v-if="adopted" role="status">
|
||||
{{
|
||||
adopted.reused ? '同一联合修订已采用,本次为幂等回读。' : '联合修订已正式采用。'
|
||||
}}原草案和历史保留;图片生成、视觉审核及主图确认仍须分别操作。
|
||||
</p>
|
||||
<div class="workspace-section-stack workspace-numbered-sections">
|
||||
<!-- 来源、读取与草案状态为同一功能组,组内间距保持紧凑。 -->
|
||||
<section class="workspace-section-stack workspace-numbered-section">
|
||||
<WorkspaceSectionHeading
|
||||
:marker="sectionMarkers.source"
|
||||
title="摄影与开拍状态联合修订"
|
||||
description="保留主体、形态与动作事实。环境变化需本集原文依据,保存与正式采用分别执行。"
|
||||
description-as-info
|
||||
/>
|
||||
<NButton class="self-start" :disabled="saving" :loading="source.loading.value" @click="reload"
|
||||
>重新读取正式来源与草案</NButton
|
||||
>
|
||||
<p v-if="source.loading.value" role="status">正在核对完整正式来源…</p>
|
||||
<p v-if="source.error.value" role="alert">{{ source.error.value }}</p>
|
||||
<p v-if="saved" class="text-sm">
|
||||
已保存第 {{ saved.revision }} 版 ·
|
||||
{{
|
||||
saved.status === 'current'
|
||||
? '来源当前有效'
|
||||
: saved.staleReason
|
||||
? userFacingText(saved.staleReason)
|
||||
: '原草案来源已变化,请重新核对'
|
||||
}}。保存记录不代表正式采用。
|
||||
</p>
|
||||
<p v-if="conflict" role="alert">
|
||||
来源、草案或相邻镜头版本发生冲突。当前输入已保留,请重新读取并核对后再次免费预检。
|
||||
</p>
|
||||
<p v-if="adopted" role="status">
|
||||
{{
|
||||
adopted.reused ? '同一联合修订已采用,本次为幂等回读。' : '联合修订已正式采用。'
|
||||
}}原草案和历史保留;图片生成、视觉审核及主图确认仍须分别操作。
|
||||
</p>
|
||||
<NButton v-if="draft && source.data.value" class="self-start" :disabled="saving" @click="editFormal"
|
||||
>从当前正式内容重新编辑</NButton
|
||||
>
|
||||
</section>
|
||||
<template v-if="draft && source.data.value">
|
||||
<NButton class="self-start" :disabled="saving" @click="editFormal">从当前正式内容重新编辑</NButton>
|
||||
<NCollapse
|
||||
><NCollapseItem
|
||||
name="formal"
|
||||
:title="adopted ? '采用后:当前正式摄影与开拍状态' : '修改前:正式摄影与开拍状态'"
|
||||
><ShotDesign :shot="source.data.value.shot"
|
||||
/></NCollapseItem>
|
||||
<NCollapseItem name="history" title="原草案与摄影历史"
|
||||
><RawDataDetails
|
||||
:value="{ 草案: saved, 原摄影原文: source.data.value.shot.direction?.rawJson }"
|
||||
title="高级详情" /></NCollapseItem
|
||||
></NCollapse>
|
||||
<section class="workspace-section-stack">
|
||||
<!-- 历史与正式内容为独立阅读区,不与草案输入混排。 -->
|
||||
<section class="workspace-section-stack workspace-numbered-section">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.history" title="正式内容与历史" />
|
||||
<NCollapse class="workspace-collapse"
|
||||
><NCollapseItem
|
||||
name="formal"
|
||||
:title="adopted ? '采用后:当前正式摄影与开拍状态' : '修改前:正式摄影与开拍状态'"
|
||||
><ShotDesign :shot="source.data.value.shot"
|
||||
/></NCollapseItem>
|
||||
<NCollapseItem name="history" title="原草案与摄影历史"
|
||||
><RecordDetails
|
||||
inline
|
||||
v-if="saved"
|
||||
title="原草案记录"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{ label: '草案版本', value: saved.revision },
|
||||
{ label: '保存时间', value: new Date(saved.updatedAt).toLocaleString() },
|
||||
{
|
||||
label: '来源状态',
|
||||
value: saved.status === 'current' ? '当前来源有效' : '来源已变化'
|
||||
},
|
||||
{ label: '原构图', value: saved.draft.direction.composition },
|
||||
{ label: '原机位', value: saved.draft.direction.cameraPosition }
|
||||
]
|
||||
}
|
||||
]" /><RecordDetails
|
||||
inline
|
||||
title="摄影修订记录"
|
||||
:records="cameraHistoryRecords" /></NCollapseItem
|
||||
></NCollapse>
|
||||
</section>
|
||||
<!-- 完整编辑表单独立分组,以交替底面区分历史和差异。 -->
|
||||
<section class="workspace-section-stack workspace-numbered-section">
|
||||
<WorkspaceSectionHeading
|
||||
:marker="sectionMarkers.draft"
|
||||
:title="adopted ? '已采用的完整草案' : '修改后:待审完整草案'"
|
||||
/><JointDraftFields v-model="draft" :disabled="saving || !!adopted" />
|
||||
/>
|
||||
<!-- 同级序标与正文共用当前功能区的内边距,不再嵌套第二块底面。 -->
|
||||
<JointDraftFields v-model="draft" :disabled="saving || !!adopted" />
|
||||
</section>
|
||||
<!-- 以下是全部字段前后差异,越界项明确阻止联合采用。 -->
|
||||
<section class="workspace-section-stack" aria-label="完整联合差异">
|
||||
<WorkspaceSectionHeading :title="`完整字段差异(${differences.length} 项)`" />
|
||||
<p v-if="boundaryNotice" class="text-sm" role="status">{{ boundaryNotice }}</p>
|
||||
<p v-if="!differences.length" class="text-sm text-muted">与当前正式内容相同。</p>
|
||||
<article v-for="(item, index) in differences" :key="index" class="space-y-2 text-sm">
|
||||
<h4 class="font-medium">{{ item.label }}{{ item.allowed ? '' : ' · 不允许联合修改' }}</h4>
|
||||
<p class="whitespace-pre-wrap wrap-anywhere">修改前:{{ item.before || '(空)' }}</p>
|
||||
<p class="whitespace-pre-wrap wrap-anywhere">修改后:{{ item.after || '(空)' }}</p>
|
||||
</article>
|
||||
<section class="workspace-section-stack workspace-numbered-section" aria-label="完整联合差异">
|
||||
<WorkspaceSectionHeading
|
||||
:marker="sectionMarkers.differences"
|
||||
:title="`完整字段差异(${differences.length} 项)`"
|
||||
/>
|
||||
<div class="workspace-section-stack">
|
||||
<p v-if="boundaryNotice" class="text-sm" role="status">{{ boundaryNotice }}</p>
|
||||
<p v-if="!differences.length" class="text-sm text-muted">与当前正式内容相同。</p>
|
||||
<article v-for="(item, index) in differences" :key="index" class="space-y-2 text-sm">
|
||||
<h4 class="font-medium">{{ item.label }}{{ item.allowed ? '' : ' · 不允许联合修改' }}</h4>
|
||||
<p class="whitespace-pre-wrap wrap-anywhere">修改前:{{ item.before || '(空)' }}</p>
|
||||
<p class="whitespace-pre-wrap wrap-anywhere">修改后:{{ item.after || '(空)' }}</p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
<!-- 以下是存在环境差异时的本集正式全文与人工证据,技术版本默认收起。 -->
|
||||
<section v-if="hasEnvironmentChanges" class="workspace-section-stack" aria-label="本集原文依据">
|
||||
<section
|
||||
v-if="hasEnvironmentChanges"
|
||||
class="workspace-section-stack workspace-numbered-section"
|
||||
aria-label="本集原文依据"
|
||||
>
|
||||
<WorkspaceSectionHeading
|
||||
:marker="sectionMarkers.environment"
|
||||
title="本集原文依据"
|
||||
description="原文及版本匹配不等于机器语义审核通过,请人工核对环境变化。"
|
||||
description-as-info
|
||||
/>
|
||||
<NButton
|
||||
class="self-start"
|
||||
@@ -577,7 +648,7 @@ defineExpose({ saving, savingKind, canSave, canAdopt, save, adopt })
|
||||
{{ environmentSource.error.value }}
|
||||
</p>
|
||||
<template v-if="environmentSource.data.value">
|
||||
<NCollapse
|
||||
<NCollapse class="workspace-collapse"
|
||||
><NCollapseItem
|
||||
name="episode-original"
|
||||
:title="`第 ${episodeNo} 集 · ${environmentSource.data.value.title} · 完整原文`"
|
||||
@@ -587,13 +658,6 @@ defineExpose({ saving, savingKind, canSave, canAdopt, save, adopt })
|
||||
</p>
|
||||
</NCollapseItem></NCollapse
|
||||
>
|
||||
<RawDataDetails
|
||||
:value="{
|
||||
episodeId: environmentSource.data.value.episodeId,
|
||||
expectedContentFingerprint: environmentSource.data.value.expectedContentFingerprint
|
||||
}"
|
||||
title="本集身份与正文版本"
|
||||
/>
|
||||
</template>
|
||||
<label class="workspace-form-field"
|
||||
><span>本集原文片段(逐字引用)</span>
|
||||
@@ -613,79 +677,89 @@ defineExpose({ saving, savingKind, canSave, canAdopt, save, adopt })
|
||||
填写匹配的本集片段后可免费预检。
|
||||
</p>
|
||||
</section>
|
||||
<NButton
|
||||
class="self-start"
|
||||
:disabled="saving || !savedMatches || !bounded || !!adopted"
|
||||
:loading="previewing && previewKind === 'input'"
|
||||
@click="loadPreview"
|
||||
>免费核对草案画面输入</NButton
|
||||
>
|
||||
<!-- 以下是邻镜正式版本及静态衔接依据,不当作真实视频末态。 -->
|
||||
<section v-if="preview" class="workspace-section-stack" aria-label="联合相邻镜头依据">
|
||||
<WorkspaceSectionHeading
|
||||
title="相邻镜头依据"
|
||||
description="下列是正式静态输入与版本,不能证明尚未验证的真实视频末态。"
|
||||
/>
|
||||
<p v-if="!preview.adjacentDerivedVersions?.length" class="text-sm">本镜没有同集紧邻镜头。</p>
|
||||
<article
|
||||
v-for="neighbor in preview.adjacentDerivedVersions"
|
||||
:key="neighbor.shotId"
|
||||
class="space-y-2 text-sm"
|
||||
<!-- 免费画面预览与相邻镜头依据共用一个功能块。 -->
|
||||
<section class="workspace-section-stack workspace-numbered-section">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.preview" title="画面预览与相邻镜头" />
|
||||
<NButton
|
||||
class="self-start"
|
||||
:disabled="saving || !savedMatches || !bounded || !!adopted"
|
||||
:loading="previewing && previewKind === 'input'"
|
||||
@click="loadPreview"
|
||||
>免费核对草案画面输入</NButton
|
||||
>
|
||||
<p>
|
||||
镜头 {{ props.shots.find(shot => shot.shotId === neighbor.shotId)?.beatNo ?? '待确认' }}.{{
|
||||
props.shots.find(shot => shot.shotId === neighbor.shotId)?.shotNo ?? '待确认'
|
||||
}}
|
||||
</p>
|
||||
<p class="whitespace-pre-wrap">
|
||||
{{
|
||||
source.data.value.rows.find(shot => shot.shotId === neighbor.shotId)?.visualState
|
||||
?.continuityNote || '尚无已保存衔接说明。'
|
||||
}}
|
||||
</p>
|
||||
<RawDataDetails :value="neighbor" title="相邻镜头版本详情" />
|
||||
</article>
|
||||
<!-- 以下是邻镜正式版本及静态衔接依据,不当作真实视频末态。 -->
|
||||
<section v-if="preview" class="workspace-section-stack" aria-label="联合相邻镜头依据">
|
||||
<WorkspaceSectionHeading
|
||||
title="相邻镜头依据"
|
||||
description="下列是正式静态输入与版本,不能证明尚未验证的真实视频末态。"
|
||||
description-as-info
|
||||
/>
|
||||
<p v-if="!preview.adjacentDerivedVersions?.length" class="text-sm">本镜没有同集紧邻镜头。</p>
|
||||
<article
|
||||
v-for="neighbor in preview.adjacentDerivedVersions"
|
||||
:key="neighbor.shotId"
|
||||
class="space-y-2 text-sm"
|
||||
>
|
||||
<p>
|
||||
镜头 {{ props.shots.find(shot => shot.shotId === neighbor.shotId)?.beatNo ?? '待确认' }}.{{
|
||||
props.shots.find(shot => shot.shotId === neighbor.shotId)?.shotNo ?? '待确认'
|
||||
}}
|
||||
</p>
|
||||
<p class="whitespace-pre-wrap">
|
||||
{{
|
||||
source.data.value.rows.find(shot => shot.shotId === neighbor.shotId)?.visualState
|
||||
?.continuityNote || '尚无已保存衔接说明。'
|
||||
}}
|
||||
</p>
|
||||
</article>
|
||||
<ImageGenerationPreview
|
||||
:preview="{ ...preview, previewFingerprint: preview.draftFingerprint }"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
</section>
|
||||
</section>
|
||||
<!-- 审核依据与审核人为同一提交表单,使用统一字段间距。 -->
|
||||
<section class="workspace-form-stack workspace-numbered-section">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.confirmation" title="审核与正式采用" />
|
||||
<label class="workspace-form-field"
|
||||
><span>联合修订与剪辑依据</span
|
||||
><NInput
|
||||
v-model:value="reason"
|
||||
type="textarea"
|
||||
:maxlength="4000"
|
||||
:disabled="saving"
|
||||
aria-label="联合修订依据"
|
||||
/></label>
|
||||
<label class="workspace-form-field"
|
||||
><span>审核人</span
|
||||
><NInput v-model:value="reviewer" :maxlength="120" :disabled="saving" aria-label="联合审核人"
|
||||
/></label>
|
||||
<NButton
|
||||
class="self-start"
|
||||
:disabled="
|
||||
!preview || !bounded || !savedMatches || !environmentReady || saving || conflict || !!adopted
|
||||
"
|
||||
:loading="previewing && previewKind === 'adoption'"
|
||||
@click="preflight"
|
||||
>免费预检联合采用</NButton
|
||||
>
|
||||
<NCheckbox v-if="checked" v-model:checked="acknowledged" :disabled="saving"
|
||||
>我已核对全部差异、相邻镜头版本和剪辑依据,确认采用这份草案。</NCheckbox
|
||||
>
|
||||
</section>
|
||||
<section v-if="formalPreview" class="workspace-section-stack workspace-numbered-section">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.formalPreview" title="采用后的首帧预览" />
|
||||
<ImageGenerationPreview
|
||||
:preview="{ ...preview, previewFingerprint: preview.draftFingerprint }"
|
||||
:preview="formalPreview"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
</section>
|
||||
<label class="workspace-form-field"
|
||||
><span>联合修订与剪辑依据</span
|
||||
><NInput
|
||||
v-model:value="reason"
|
||||
type="textarea"
|
||||
:maxlength="4000"
|
||||
:disabled="saving"
|
||||
aria-label="联合修订依据"
|
||||
/></label>
|
||||
<label class="workspace-form-field"
|
||||
><span>审核人</span
|
||||
><NInput v-model:value="reviewer" :maxlength="120" :disabled="saving" aria-label="联合审核人"
|
||||
/></label>
|
||||
<NButton
|
||||
class="self-start"
|
||||
:disabled="
|
||||
!preview || !bounded || !savedMatches || !environmentReady || saving || conflict || !!adopted
|
||||
"
|
||||
:loading="previewing && previewKind === 'adoption'"
|
||||
@click="preflight"
|
||||
>免费预检联合采用</NButton
|
||||
>
|
||||
<NCheckbox v-if="checked" v-model:checked="acknowledged" :disabled="saving"
|
||||
>我已核对全部差异、相邻镜头版本和剪辑依据,确认采用这份草案。</NCheckbox
|
||||
>
|
||||
<ImageGenerationPreview
|
||||
v-if="formalPreview"
|
||||
:preview="formalPreview"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
</template>
|
||||
<p v-if="validation" role="alert" class="text-sm">{{ validation }}</p>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NInput, NInputNumber, NSelect, NTag } from 'naive-ui'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import { AppDialog, AssetImage } from '../../../components/ui'
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
import FeedbackMessage from '../../../components/ui/FeedbackMessage.vue'
|
||||
@@ -96,6 +96,18 @@ const taskIssues = computed(() =>
|
||||
})
|
||||
: []
|
||||
)
|
||||
/** 原审核只展示已有的业务问题文字,不把完整接口对象转为说明。 */
|
||||
const candidateIssues = computed(() => {
|
||||
const issues = state.failedCandidate.value?.qualityFailure?.issues
|
||||
if (!Array.isArray(issues)) return []
|
||||
return issues.flatMap((item: unknown) => {
|
||||
if (typeof item === 'string') return [userFacingText(item)]
|
||||
if (!item || typeof item !== 'object') return []
|
||||
if ('message' in item && typeof item.message === 'string') return [userFacingText(item.message)]
|
||||
if ('description' in item && typeof item.description === 'string') return [userFacingText(item.description)]
|
||||
return []
|
||||
})
|
||||
})
|
||||
/** 完成状态与通过语义分别显示。 */
|
||||
const taskLabel = computed(() =>
|
||||
!record.value
|
||||
@@ -149,6 +161,7 @@ function updateRefs(index: number, value: string) {
|
||||
title="人工动作修订"
|
||||
description="免费检查并保存,再付费检查起始画面。通过后可启用修订。"
|
||||
wide
|
||||
description-as-info
|
||||
>
|
||||
<div class="motion-revision-layout">
|
||||
<FeedbackMessage v-if="error" :message="error" />
|
||||
@@ -157,7 +170,7 @@ function updateRefs(index: number, value: string) {
|
||||
state.context.error.value || error
|
||||
}}</ContextNotice>
|
||||
<!-- 以下是集中展示版本与本次主首帧的上下文模块 -->
|
||||
<section class="motion-revision-context" aria-label="修订版本与主首帧">
|
||||
<section class="workspace-panel motion-revision-context" aria-label="修订版本与主首帧">
|
||||
<div class="motion-revision-section-heading">
|
||||
<div>
|
||||
<h3>修订版本</h3>
|
||||
@@ -169,10 +182,32 @@ function updateRefs(index: number, value: string) {
|
||||
>刷新版本与主首帧</NButton
|
||||
>
|
||||
</div>
|
||||
<RawDataDetails
|
||||
v-if="state.context.data.value"
|
||||
:value="state.context.data.value.history"
|
||||
title="完整修订历史与采用指针"
|
||||
<RecordDetails
|
||||
title="修订历史"
|
||||
:records="
|
||||
(state.context.data.value?.history.revisions ?? []).map((item, index) => ({
|
||||
title: `第 ${index + 1} 版 · ${formatDate(item.createdAt)}`,
|
||||
fields: [
|
||||
{
|
||||
label: '来源',
|
||||
value:
|
||||
item.source === 'failed_candidate'
|
||||
? '失败候选原稿'
|
||||
: item.source === 'manual'
|
||||
? '人工修订'
|
||||
: '原始规划'
|
||||
},
|
||||
{ label: '采用状态', value: item.isActive ? '已采用' : '未采用' },
|
||||
{
|
||||
label: '修订说明',
|
||||
value:
|
||||
item.source === 'failed_candidate'
|
||||
? '原质量未通过,保留作为人工修订起点'
|
||||
: item.reason
|
||||
}
|
||||
]
|
||||
}))
|
||||
"
|
||||
/>
|
||||
<label v-if="options.length" class="motion-revision-field">
|
||||
<span>编辑来源</span>
|
||||
@@ -203,16 +238,17 @@ function updateRefs(index: number, value: string) {
|
||||
<dl class="motion-revision-source-details">
|
||||
<div>
|
||||
<dt>当前主首帧</dt>
|
||||
<dd>{{ state.context.data.value?.primary?.id ?? '尚无有效主首帧' }}</dd>
|
||||
<dd>{{ state.context.data.value?.primary ? '已设置,见左侧画面' : '尚无有效主首帧' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>当前生效版本</dt>
|
||||
<dd>
|
||||
{{
|
||||
state.context.data.value?.history.activeRevisionId ??
|
||||
(state.context.data.value?.preview.motionPlanAvailable
|
||||
? 'AI 原始规划'
|
||||
: '尚无正式采用版本')
|
||||
state.context.data.value?.history.activeRevisionId
|
||||
? '已采用修订(见版本历史)'
|
||||
: state.context.data.value?.preview.motionPlanAvailable
|
||||
? 'AI 原始规划'
|
||||
: '尚无正式采用版本'
|
||||
}}
|
||||
</dd>
|
||||
</div>
|
||||
@@ -227,13 +263,20 @@ function updateRefs(index: number, value: string) {
|
||||
>
|
||||
<h3 class="text-sm font-semibold">原失败动作候选</h3>
|
||||
<template v-if="state.requiresCandidate.value">
|
||||
<label class="workspace-form-field"
|
||||
><span>原Task(可选,留空查当前任务)</span
|
||||
><NInput
|
||||
v-model:value="state.failedTaskId.value"
|
||||
:disabled="blocked || state.candidateLoading.value"
|
||||
aria-label="原失败动作Task"
|
||||
/></label>
|
||||
<!-- 默认读取当前失败结果,仅在查找指定历史时填写原任务。 -->
|
||||
<NCollapse display-directive="show">
|
||||
<NCollapseItem name="historical-task" title="查找指定历史任务">
|
||||
<label class="workspace-form-field">
|
||||
<span>历史任务编号(可选)</span>
|
||||
<NInput
|
||||
v-model:value="state.failedTaskId.value"
|
||||
:disabled="blocked || state.candidateLoading.value"
|
||||
aria-label="原失败动作Task"
|
||||
placeholder="留空读取当前失败结果"
|
||||
/>
|
||||
</label>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<NButton
|
||||
class="self-start"
|
||||
:loading="state.candidateLoading.value"
|
||||
@@ -243,20 +286,30 @@ function updateRefs(index: number, value: string) {
|
||||
>
|
||||
</template>
|
||||
<p v-if="state.failedCandidate.value" class="text-sm">
|
||||
原Task {{ state.failedCandidate.value.taskId }} · 原Workflow
|
||||
{{ state.failedCandidate.value.executionId }} · 原质量
|
||||
{{ state.failedCandidate.value.status === 'failed' ? '未通过' : '不可作为当前失败候选' }}
|
||||
原动作质量{{
|
||||
state.failedCandidate.value.status === 'failed' ? '未通过' : '不可作为当前失败候选'
|
||||
}};可展开查看原审核记录。
|
||||
</p>
|
||||
<RawDataDetails
|
||||
<RecordDetails
|
||||
v-if="state.failedCandidate.value"
|
||||
:value="state.failedCandidate.value"
|
||||
title="原模型候选、质量与公开回执"
|
||||
/>
|
||||
<RawDataDetails
|
||||
v-if="state.candidateOrigin.value"
|
||||
:value="state.candidateOrigin.value"
|
||||
title="失败根版本来源证明"
|
||||
title="原候选审核记录"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{
|
||||
label: '原结论',
|
||||
value: state.failedCandidate.value.status === 'failed' ? '未通过' : '当前不可承接'
|
||||
},
|
||||
{
|
||||
label: '来源状态',
|
||||
value: state.failedCandidate.value.current ? '当前来源匹配' : '来源已变化,仅供查看'
|
||||
},
|
||||
{ label: '问题说明', value: candidateIssues.join(';') || '请核对原动作规划' }
|
||||
]
|
||||
}
|
||||
]"
|
||||
/>
|
||||
|
||||
<NButton
|
||||
v-if="state.candidateOrigin.value && !state.failedCandidate.value"
|
||||
class="self-start"
|
||||
@@ -462,16 +515,6 @@ function updateRefs(index: number, value: string) {
|
||||
{{ preview.startStatePlan.feeEstimate.amount ?? '未知' }}
|
||||
{{ preview.startStatePlan.feeEstimate.currency }}
|
||||
</p>
|
||||
<RawDataDetails
|
||||
v-if="preview.source"
|
||||
:value="{
|
||||
source: preview.source,
|
||||
sourceFingerprint: preview.sourceFingerprint,
|
||||
previewFingerprint: preview.previewFingerprint,
|
||||
startStatePlan: preview.startStatePlan
|
||||
}"
|
||||
title="当前来源、版本与精确起点计划"
|
||||
/>
|
||||
</section>
|
||||
<!-- 以下是收费视觉校验与激活模块,费用说明和操作成组排列 -->
|
||||
<section class="workspace-panel motion-revision-section" aria-label="动作起点视觉校验">
|
||||
@@ -495,7 +538,27 @@ function updateRefs(index: number, value: string) {
|
||||
<NButton type="primary" :disabled="!canActivate" @click="state.activate">激活此修订</NButton>
|
||||
</div>
|
||||
<div v-if="record || state.execution.query.error.value" class="motion-revision-feedback">
|
||||
<p v-if="record" role="status">{{ taskLabel }} · {{ record.id }}</p>
|
||||
<p v-if="record" role="status">{{ taskLabel }}</p>
|
||||
<RecordDetails
|
||||
v-if="record"
|
||||
title="起点审核记录"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{ label: '当前结论', value: taskLabel },
|
||||
{
|
||||
label: '开始时间',
|
||||
value: record.startedAt ? formatDate(record.startedAt) : '未记录'
|
||||
},
|
||||
{
|
||||
label: '结束时间',
|
||||
value: record.completedAt ? formatDate(record.completedAt) : '尚未结束'
|
||||
},
|
||||
{ label: '费用', value: '按原独立审核记录核对,不以任务结束推断为零费用' }
|
||||
]
|
||||
}
|
||||
]"
|
||||
/>
|
||||
<p v-if="state.execution.query.error.value" class="text-danger">
|
||||
{{ state.execution.query.error.value }}
|
||||
</p>
|
||||
@@ -527,7 +590,7 @@ function updateRefs(index: number, value: string) {
|
||||
.motion-revision-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: calc(var(--app-content-gap) * 2);
|
||||
gap: var(--app-content-gap);
|
||||
}
|
||||
.motion-revision-layout > .workspace-panel {
|
||||
margin: 0;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import type { ShotContinuityEvidence } from '../generation-spec.types'
|
||||
/** Storyboard及首帧共用正式人工规划依据,不复制或改写尾态与质量。 */
|
||||
const props = defineProps<{ /** 当前正式编译的连续性证据。 */ continuity?: ShotContinuityEvidence | null }>()
|
||||
@@ -22,6 +21,5 @@ const transition = computed(() => {
|
||||
<!-- 以下是人工规划确认与尚未验证的视频末态,使用中性展示。 -->
|
||||
<section v-if="transition" class="space-y-2 text-xs" aria-label="人工规划衔接">
|
||||
<p>人工规划衔接已确认,视频末态尚未验证</p>
|
||||
<RawDataDetails :value="transition" title="衔接规划来源详情" />
|
||||
</section>
|
||||
</template>
|
||||
@@ -4,13 +4,14 @@ import JointDraftReviewPanel from './JointDraftReviewPanel.vue'
|
||||
import ShotDesign from './ShotDesign.vue'
|
||||
import SceneTransitionEvidence from './SceneTransitionEvidence.vue'
|
||||
import KeyframeCard from '../../production/components/KeyframeCard.vue'
|
||||
import { keyframeDisplayNames } from '../../production/model'
|
||||
import KeyframeValidationHistory from '../../production/components/KeyframeValidationHistory.vue'
|
||||
import { jointDraftDifferences } from '../joint-review'
|
||||
import DirectionCameraFields from './DirectionCameraFields.vue'
|
||||
import DirectionStageReview from './DirectionStageReview.vue'
|
||||
import { computed, onScopeDispose, ref, watch } from 'vue'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NInput, NSelect, NTag } from 'naive-ui'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import { AppDrawer, WorkspaceSectionHeading } from '../../../components/ui'
|
||||
import { useActionMessage } from '../../../components/ui/useActionMessage'
|
||||
import { useQuery } from '../../../composables/useQuery'
|
||||
@@ -29,7 +30,7 @@ import GenerationModelControls from '../../generation-config/components/Generati
|
||||
import type { GenerationOptions } from '../../generation-config/types'
|
||||
import { storyboardApi } from '../api'
|
||||
import { derivedReviewApi } from '../derived-review-api'
|
||||
import { draftFromFormal, reviseSubjectGaze } from '../derived-review'
|
||||
import { draftFromFormal, reviseSubjectGaze, cameraRevisionSummaries } from '../derived-review'
|
||||
import type {
|
||||
DerivedReviewSelection,
|
||||
DraftProviderInput,
|
||||
@@ -153,6 +154,10 @@ const cameraAssets = useQuery(cameraAssetKey, async (value, signal) => {
|
||||
if (!Array.isArray(rows) || rows.some(row => row.shotId !== shotId)) throw new Error('图片候选不属于当前镜头。')
|
||||
return rows
|
||||
})
|
||||
/** 与首帧候选管理使用相同镜头名称及图片编号。 */
|
||||
const cameraAssetNames = computed(() =>
|
||||
keyframeDisplayNames(cameraAssets.data.value ?? [], props.shot.title, props.shot.shotNo)
|
||||
)
|
||||
/** 当前可查看的原稿,保留过期草案的全部内容。 */
|
||||
const savedDraftText = computed(() =>
|
||||
savedDraft.data.value ? JSON.stringify(savedDraft.data.value.draft, null, 2) : ''
|
||||
@@ -203,14 +208,7 @@ const configuration = useQuery(key, async (id, signal) => {
|
||||
/** 正式场景衔接证据;不会用前镜首帧冒充尾态。 */
|
||||
const continuity = computed(() => formalQuery.data.value?.generation.continuity)
|
||||
/** 原摄影修订事件仅只读展示,不能回写历史。 */
|
||||
const cameraHistory = computed<unknown[]>(() => {
|
||||
try {
|
||||
const raw = JSON.parse(formalQuery.data.value?.shot.direction?.rawJson ?? 'null')
|
||||
return Array.isArray(raw?.cameraRevisionHistory) ? raw.cameraRevisionHistory : []
|
||||
} catch {
|
||||
return []
|
||||
}
|
||||
})
|
||||
const cameraHistory = computed(() => cameraRevisionSummaries(formalQuery.data.value?.shot.direction?.rawJson))
|
||||
/** 普通摄影完整差异,保存草案中的越界项也不能隐藏。 */
|
||||
const cameraDifferences = computed(() => {
|
||||
const value = formalQuery.data.value,
|
||||
@@ -695,6 +693,22 @@ async function adopt() {
|
||||
saving.value = false
|
||||
}
|
||||
}
|
||||
/** 原摄影模式按实际可见功能块编号,与联合模式使用同一视觉层级。 */
|
||||
const sectionMarkers = computed(() => {
|
||||
const sections = ['approval']
|
||||
if (formal.value) {
|
||||
sections.push('formal')
|
||||
if (mode.value === 'camera' && cameraDifferences.value.length) sections.push('differences')
|
||||
if (cameraAdoptionNotice.value || cameraFormalPreview.value || cameraFeePlan.value?.billingBlocked)
|
||||
sections.push('adopted')
|
||||
}
|
||||
sections.push('saved')
|
||||
if (reviewed.value?.selection.draft.subjectStateRevision) sections.push('gazeScope')
|
||||
if (!useSaved.value) sections.push('edit')
|
||||
sections.push('preview')
|
||||
const numerals = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX']
|
||||
return Object.fromEntries(sections.map((sectionKey, index) => [sectionKey, numerals[index]]))
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -732,131 +746,165 @@ async function adopt() {
|
||||
:disabled="disabled"
|
||||
@adopted="directionAdopted"
|
||||
/>
|
||||
<div v-else class="workspace-section-stack workspace-section-stack-spacious">
|
||||
<div v-else class="workspace-section-stack workspace-numbered-sections">
|
||||
<!-- 以下是当前分镜来源、质量诊断与人工确认状态 -->
|
||||
<section v-if="preflight.data.value" class="space-y-2 text-sm">
|
||||
<WorkspaceSectionHeading title="正式分镜审核" />
|
||||
<p>
|
||||
{{ preflight.data.value.current.valid ? '已审核' : '待审核' }} ·
|
||||
{{ preflight.data.value.quality.coverage.episodeCount }} 集 ·
|
||||
{{ preflight.data.value.quality.coverage.shotCount }} 镜 ·
|
||||
{{ preflight.data.value.quality.preflightEligible ? '检查通过' : '有待处理项' }}
|
||||
<section class="workspace-numbered-section workspace-section-stack text-sm">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.approval" title="正式分镜审核" />
|
||||
<template v-if="preflight.data.value">
|
||||
<p>
|
||||
{{ preflight.data.value.current.valid ? '已审核' : '待审核' }} ·
|
||||
{{ preflight.data.value.quality.coverage.episodeCount }} 集 ·
|
||||
{{ preflight.data.value.quality.coverage.shotCount }} 镜 ·
|
||||
{{ preflight.data.value.quality.preflightEligible ? '检查通过' : '有待处理项' }}
|
||||
</p>
|
||||
<p v-if="!preflight.data.value.current.valid" class="text-muted">请先在制作准备中审核分镜。</p>
|
||||
<NCollapse class="workspace-collapse">
|
||||
<NCollapseItem name="audit" title="审核详情">
|
||||
<ul v-if="issues.length" class="mt-2 space-y-1 text-xs">
|
||||
<li v-for="issue in issues" :key="issue">{{ userFacingText(issue) }}</li>
|
||||
</ul>
|
||||
<p v-else class="mt-2 text-xs text-muted">暂无待处理项。</p>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
</template>
|
||||
<p v-else-if="preflight.loading.value" role="status" class="text-sm text-muted">
|
||||
正在读取正式审核状态…
|
||||
</p>
|
||||
<p v-if="!preflight.data.value.current.valid" class="text-muted">请先在制作准备中审核分镜。</p>
|
||||
<NCollapse>
|
||||
<NCollapseItem name="audit" title="审核详情">
|
||||
<p class="wrap-anywhere text-xs">
|
||||
分镜版本:{{ preflight.data.value.current.evidence.shotFingerprint }}
|
||||
</p>
|
||||
<ul v-if="issues.length" class="mt-2 space-y-1 text-xs">
|
||||
<li v-for="issue in issues" :key="issue">{{ userFacingText(issue) }}</li>
|
||||
</ul>
|
||||
<p v-else class="mt-2 text-xs text-muted">暂无待处理项。</p>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<NButton v-if="preflight.error.value" @click="preflight.refresh">重新读取审核状态</NButton>
|
||||
</section>
|
||||
<p v-else-if="preflight.loading.value" role="status" class="text-sm text-muted">正在读取正式审核状态…</p>
|
||||
<NButton v-if="preflight.error.value" @click="preflight.refresh">重新读取审核状态</NButton>
|
||||
<!-- 以下是原摄影、完整差异及历史,只读按需展开,不创建第二套摄影编辑器。 -->
|
||||
<template v-if="formal">
|
||||
<NButton
|
||||
class="self-start"
|
||||
:disabled="saving || savingDraft"
|
||||
:loading="formalQuery.loading.value"
|
||||
@click="formalQuery.refresh"
|
||||
>刷新正式摄影与来源</NButton
|
||||
>
|
||||
<p v-if="formalQuery.error.value" role="alert" class="text-sm">{{ formalQuery.error.value }}</p>
|
||||
<NCollapse v-model:expanded-names="cameraExpanded">
|
||||
<NCollapseItem name="camera-formal" title="当前正式摄影与状态"
|
||||
><ShotDesign
|
||||
v-if="formalQuery.data.value && !formalQuery.error.value"
|
||||
:shot="formalQuery.data.value.shot"
|
||||
/></NCollapseItem>
|
||||
<NCollapseItem name="camera-history" title="摄影修订历史"
|
||||
><p v-if="!cameraHistory.length" class="text-sm text-muted">暂无摄影修订记录。</p>
|
||||
<RawDataDetails
|
||||
v-for="(event, index) in cameraHistory"
|
||||
:key="index"
|
||||
:value="event"
|
||||
:title="`第 ${index + 1} 次摄影修订`"
|
||||
/></NCollapseItem>
|
||||
<NCollapseItem name="camera-assets" title="已有图片与质量(只读)">
|
||||
<p v-if="cameraAssets.loading.value" role="status">正在读取原图片与审核…</p>
|
||||
<p v-if="cameraAssets.error.value" role="alert">{{ cameraAssets.error.value }}</p>
|
||||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3">
|
||||
<KeyframeCard
|
||||
v-for="item in cameraAssets.data.value ?? []"
|
||||
:key="item.id"
|
||||
:item="item"
|
||||
<section class="workspace-numbered-section workspace-section-stack">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.formal" title="正式摄影、图片与历史" />
|
||||
<NButton
|
||||
class="self-start"
|
||||
:disabled="saving || savingDraft"
|
||||
:loading="formalQuery.loading.value"
|
||||
@click="formalQuery.refresh"
|
||||
>刷新正式摄影与来源</NButton
|
||||
>
|
||||
<p v-if="formalQuery.error.value" role="alert" class="text-sm">{{ formalQuery.error.value }}</p>
|
||||
<NCollapse class="workspace-collapse" v-model:expanded-names="cameraExpanded">
|
||||
<NCollapseItem name="camera-formal" title="当前正式摄影与状态"
|
||||
><ShotDesign
|
||||
v-if="formalQuery.data.value && !formalQuery.error.value"
|
||||
:shot="formalQuery.data.value.shot"
|
||||
/></NCollapseItem>
|
||||
<NCollapseItem name="camera-history" title="摄影修订历史"
|
||||
><p v-if="!cameraHistory.length" class="text-sm text-muted">暂无摄影修订记录。</p>
|
||||
<RecordDetails
|
||||
inline
|
||||
title="摄影修订记录"
|
||||
:records="
|
||||
cameraHistory.map((event, index) => ({
|
||||
title: `第 ${index + 1} 次摄影修订`,
|
||||
fields: [
|
||||
{ label: '审核人', value: event.reviewer },
|
||||
{
|
||||
label: '采用时间',
|
||||
value: event.adoptedAt ? formatDate(event.adoptedAt) : '未记录'
|
||||
},
|
||||
{ label: '原构图', value: event.beforeComposition },
|
||||
{ label: '采用后构图', value: event.afterComposition },
|
||||
{ label: '原机位', value: event.beforePosition },
|
||||
{ label: '采用后机位', value: event.afterPosition }
|
||||
]
|
||||
}))
|
||||
"
|
||||
/></NCollapseItem>
|
||||
<NCollapseItem name="camera-assets" title="已有图片与质量(只读)">
|
||||
<p v-if="cameraAssets.loading.value" role="status">正在读取原图片与审核…</p>
|
||||
<p v-if="cameraAssets.error.value" role="alert">{{ cameraAssets.error.value }}</p>
|
||||
<!-- 图片与候选管理共用紧凑卡片网格,不随全屏抽屉等分放大。 -->
|
||||
<div class="asset-candidate-grid">
|
||||
<KeyframeCard
|
||||
v-for="item in cameraAssets.data.value ?? []"
|
||||
:key="item.id"
|
||||
:item="item"
|
||||
:display-name="cameraAssetNames.get(item.id)"
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:shot-no="shot.shotNo"
|
||||
:stale="false"
|
||||
:blocked="true"
|
||||
:validation-passed="null"
|
||||
:review-revision="cameraReviewRevision"
|
||||
:confirming="false"
|
||||
readonly
|
||||
@history="cameraHistoryAssetId = item.id"
|
||||
/>
|
||||
</div>
|
||||
<KeyframeValidationHistory
|
||||
v-if="cameraHistoryAssetId"
|
||||
:key="cameraHistoryAssetId + ':' + cameraReviewRevision"
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:shot-no="shot.shotNo"
|
||||
:stale="false"
|
||||
:blocked="true"
|
||||
:validation-passed="null"
|
||||
:review-revision="cameraReviewRevision"
|
||||
:confirming="false"
|
||||
readonly
|
||||
@history="cameraHistoryAssetId = item.id"
|
||||
:keyframe-id="cameraHistoryAssetId"
|
||||
initial-open
|
||||
:disabled="true"
|
||||
/>
|
||||
</div>
|
||||
<KeyframeValidationHistory
|
||||
v-if="cameraHistoryAssetId"
|
||||
:key="cameraHistoryAssetId + ':' + cameraReviewRevision"
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:keyframe-id="cameraHistoryAssetId"
|
||||
initial-open
|
||||
:disabled="true"
|
||||
/>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<SceneTransitionEvidence
|
||||
v-if="!formalQuery.error.value && !formalQuery.loading.value"
|
||||
:continuity="continuity"
|
||||
/>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<SceneTransitionEvidence
|
||||
v-if="!formalQuery.error.value && !formalQuery.loading.value"
|
||||
:continuity="continuity"
|
||||
/>
|
||||
</section>
|
||||
<section
|
||||
v-if="mode === 'camera' && cameraDifferences.length"
|
||||
class="workspace-section-stack"
|
||||
class="workspace-numbered-section workspace-section-stack"
|
||||
aria-label="摄影完整差异"
|
||||
>
|
||||
<WorkspaceSectionHeading :title="`完整字段差异(${cameraDifferences.length}项)`" />
|
||||
<WorkspaceSectionHeading
|
||||
:marker="sectionMarkers.differences"
|
||||
:title="`完整字段差异(${cameraDifferences.length}项)`"
|
||||
/>
|
||||
<article v-for="(item, index) in cameraDifferences" :key="index" class="space-y-2 text-sm">
|
||||
<h4>{{ item.label }}</h4>
|
||||
<p class="whitespace-pre-wrap wrap-anywhere">修改前:{{ item.before || '(空)' }}</p>
|
||||
<p class="whitespace-pre-wrap wrap-anywhere">修改后:{{ item.after || '(空)' }}</p>
|
||||
</article>
|
||||
</section>
|
||||
<p v-if="cameraAdoptionNotice" role="status" class="text-sm">{{ cameraAdoptionNotice }}</p>
|
||||
<ImageGenerationPreview
|
||||
v-if="cameraFormalPreview"
|
||||
:preview="cameraFormalPreview"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
<KeyframePreviewChecks v-if="cameraFormalPreview" :preview="cameraFormalPreview" />
|
||||
<RawDataDetails
|
||||
v-if="cameraFeePlan"
|
||||
:value="cameraFeePlan"
|
||||
title="新来源费用计划(不代表授权或核清)"
|
||||
/>
|
||||
<!-- 正式采用回执与只读预览独立成块,不代表生图或质量通过。 -->
|
||||
<section
|
||||
v-if="cameraAdoptionNotice || cameraFormalPreview || cameraFeePlan?.billingBlocked"
|
||||
class="workspace-numbered-section workspace-section-stack"
|
||||
>
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.adopted" title="采用结果与正式预览" />
|
||||
<p v-if="cameraAdoptionNotice" role="status" class="text-sm">{{ cameraAdoptionNotice }}</p>
|
||||
<ImageGenerationPreview
|
||||
v-if="cameraFormalPreview"
|
||||
:preview="cameraFormalPreview"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
<KeyframePreviewChecks v-if="cameraFormalPreview" :preview="cameraFormalPreview" />
|
||||
<p v-if="cameraFeePlan?.billingBlocked" class="text-sm">
|
||||
图片费用仍待核对;本次摄影采用未生成图片。
|
||||
</p>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<!-- 以下是服务端待审草案、版本和保留的原稿 -->
|
||||
<section class="space-y-3 text-sm">
|
||||
<WorkspaceSectionHeading title="已保存草案" />
|
||||
<section class="workspace-numbered-section workspace-section-stack text-sm">
|
||||
<WorkspaceSectionHeading
|
||||
:marker="sectionMarkers.saved"
|
||||
title="已保存草案"
|
||||
:description="
|
||||
savedDraft.data.value?.status === 'stale'
|
||||
? userFacingText(savedDraft.data.value.staleReason, '请刷新正式来源并重新核对。')
|
||||
: undefined
|
||||
"
|
||||
description-as-info
|
||||
/>
|
||||
<p v-if="savedDraft.loading.value" role="status" class="text-muted">正在读取草案…</p>
|
||||
<template v-if="savedDraft.data.value">
|
||||
<p>
|
||||
{{ savedDraft.data.value.status === 'stale' ? '草案来源已变化' : '待审核' }} · 第
|
||||
{{ savedDraft.data.value.revision }} 版 · {{ formatDate(savedDraft.data.value.updatedAt) }}
|
||||
</p>
|
||||
<p v-if="savedDraft.data.value.status === 'stale'" class="text-muted">
|
||||
{{ userFacingText(savedDraft.data.value.staleReason, '请刷新正式来源并重新核对。') }}
|
||||
</p>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<NButton
|
||||
v-if="!useSaved"
|
||||
@@ -870,17 +918,10 @@ async function adopt() {
|
||||
}}</NButton>
|
||||
<NButton size="small" @click="copySavedDraft">复制原稿</NButton>
|
||||
</div>
|
||||
<NCollapse v-if="useSaved">
|
||||
<NCollapse class="workspace-collapse" v-if="useSaved">
|
||||
<NCollapseItem name="saved-draft" title="查看草案">
|
||||
<p>构图:{{ savedDraft.data.value.draft.direction.composition }}</p>
|
||||
<p>摄影机位置:{{ savedDraft.data.value.draft.direction.cameraPosition }}</p>
|
||||
<RawDataDetails
|
||||
title="高级详情"
|
||||
:value="{
|
||||
草案: savedDraft.data.value.draft,
|
||||
模型参数: savedDraft.data.value.providerInput
|
||||
}"
|
||||
/>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
</template>
|
||||
@@ -896,8 +937,11 @@ async function adopt() {
|
||||
</section>
|
||||
|
||||
<!-- 以下是已审视线变更范围,不将修订解释为质量通过 -->
|
||||
<section v-if="reviewed?.selection.draft.subjectStateRevision" class="space-y-2 text-sm">
|
||||
<WorkspaceSectionHeading title="本次采用范围:主体视线" />
|
||||
<section
|
||||
v-if="reviewed?.selection.draft.subjectStateRevision"
|
||||
class="workspace-numbered-section workspace-section-stack text-sm"
|
||||
>
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.gazeScope" title="本次采用范围:主体视线" />
|
||||
<p v-for="change in reviewed.selection.draft.subjectStateRevision.changes" :key="change.subjectRef">
|
||||
{{ change.subjectRef }}:{{ change.before || '未填写' }} → {{ change.after }}
|
||||
</p>
|
||||
@@ -905,8 +949,8 @@ async function adopt() {
|
||||
<p class="text-muted">当前质量可能变为来源过期;修订不代表视觉审核通过。</p>
|
||||
</section>
|
||||
<!-- 以下是受控摄影修订与场景沿用 -->
|
||||
<section v-if="formal && !useSaved" class="space-y-3 text-sm">
|
||||
<WorkspaceSectionHeading title="待审修改" />
|
||||
<section v-if="formal && !useSaved" class="workspace-numbered-section workspace-form-stack text-sm">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.edit" title="待审修改" />
|
||||
<p v-if="formalQuery.loading.value" role="status" class="text-muted">正在读取正式摄影来源…</p>
|
||||
<NButton v-else-if="formalQuery.error.value" @click="formalQuery.refresh">重新读取正式来源</NButton>
|
||||
<template v-else-if="formalQuery.data.value">
|
||||
@@ -993,8 +1037,8 @@ async function adopt() {
|
||||
</template>
|
||||
</template>
|
||||
</section>
|
||||
<section v-else-if="!useSaved" class="space-y-3">
|
||||
<WorkspaceSectionHeading title="导入待审摄影草案" />
|
||||
<section v-else-if="!useSaved" class="workspace-numbered-section workspace-form-stack">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.edit" title="导入待审摄影草案" />
|
||||
<NInput
|
||||
v-model:value="imported"
|
||||
type="textarea"
|
||||
@@ -1006,129 +1050,139 @@ async function adopt() {
|
||||
</section>
|
||||
|
||||
<!-- 以下是沿用项目模型目录的预览参数 -->
|
||||
<section v-if="configuration.data.value && !useSaved" class="space-y-4">
|
||||
<WorkspaceSectionHeading title="预览模型" />
|
||||
<GenerationModelControls
|
||||
type="image"
|
||||
:catalog="configuration.data.value.catalog"
|
||||
:aspect-ratio="configuration.data.value.profile.aspectRatio"
|
||||
:provider="provider"
|
||||
:options="options"
|
||||
@update:provider="
|
||||
value => {
|
||||
providerEdited = true
|
||||
provider = value
|
||||
}
|
||||
"
|
||||
@update:options="
|
||||
value => {
|
||||
providerEdited = true
|
||||
options = value
|
||||
}
|
||||
"
|
||||
:disabled="saving"
|
||||
/>
|
||||
</section>
|
||||
<NButton v-if="configuration.error.value" @click="configuration.refresh">重新读取模型配置</NButton>
|
||||
<NButton
|
||||
:loading="previewing"
|
||||
:disabled="!canPreview || saving || savingDraft || previewing"
|
||||
@click="loadPreview"
|
||||
>免费预览摄影草案</NButton
|
||||
>
|
||||
|
||||
<!-- 以下是已冻结的草案、场景几何依据及实际模型输入 -->
|
||||
<section v-if="reviewed && previewDisplay" class="space-y-4 text-sm">
|
||||
<RawDataDetails
|
||||
:value="{
|
||||
formalSourceFingerprint: reviewed.selection.expectedCurrentFormalSourceFingerprint,
|
||||
currentDerivedFingerprint: reviewed.preview.currentDerivedFingerprint,
|
||||
adjacentDerivedVersions: reviewed.preview.adjacentDerivedVersions
|
||||
}"
|
||||
title="当前与相邻镜头版本"
|
||||
/>
|
||||
<WorkspaceSectionHeading title="草案预览" description="采用后可预览正式首帧。" />
|
||||
<NTag size="small" :bordered="false">{{
|
||||
reviewed.preview.productionGate.ready ? '项目制作已就绪' : '项目制作未就绪'
|
||||
}}</NTag>
|
||||
<p v-if="reviewed.preview.productionGate.reason" class="text-muted">
|
||||
{{ userFacingText(reviewed.preview.productionGate.reason) }}
|
||||
</p>
|
||||
<dl class="detail-grid">
|
||||
<dt>摄影</dt>
|
||||
<dd>
|
||||
{{ directionLabel(reviewed.selection.draft.direction.shotSize, 'shotSize') }} ·
|
||||
{{ directionLabel(reviewed.selection.draft.direction.cameraAngle, 'cameraAngle') }} ·
|
||||
{{ directionLabel(reviewed.selection.draft.direction.cameraMovement, 'cameraMovement') }}
|
||||
</dd>
|
||||
<dt>构图</dt>
|
||||
<dd>{{ reviewed.selection.draft.direction.composition }}</dd>
|
||||
<dt>机位</dt>
|
||||
<dd>{{ reviewed.selection.draft.direction.cameraPosition }}</dd>
|
||||
<dt>视觉意图</dt>
|
||||
<dd>{{ reviewed.selection.draft.direction.visualIntent }}</dd>
|
||||
<dt>环境</dt>
|
||||
<dd>
|
||||
{{
|
||||
Object.values(reviewed.selection.draft.visualState.environment)
|
||||
.filter(Boolean)
|
||||
.join(' · ') || '未指定'
|
||||
}}
|
||||
</dd>
|
||||
</dl>
|
||||
<NCollapse>
|
||||
<NCollapseItem name="visual" title="场景与角色状态">
|
||||
<VisualStateContinuity
|
||||
v-if="reviewed.selection.draft.visualState.continuityNote"
|
||||
:note="reviewed.selection.draft.visualState.continuityNote"
|
||||
class="mb-2"
|
||||
/>
|
||||
<ul class="space-y-2">
|
||||
<li
|
||||
v-for="subject in reviewed.selection.draft.visualState.subjects"
|
||||
:key="subject.subjectRef"
|
||||
>
|
||||
<strong>{{ subject.formName }} · {{ subject.subjectRef }}</strong>
|
||||
<p>
|
||||
{{
|
||||
[
|
||||
subject.expression,
|
||||
subject.pose,
|
||||
subject.gaze,
|
||||
subject.position,
|
||||
subject.transientState
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(' · ') || '无即时变化'
|
||||
}}
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<RawDataDetails
|
||||
v-if="reviewed.preview.sceneSources.length"
|
||||
title="场景参考详情"
|
||||
:value="reviewed.preview.sceneSources"
|
||||
/>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<KeyframePreviewChecks :preview="reviewed.preview" />
|
||||
<ImageGenerationPreview
|
||||
:preview="previewDisplay"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
<NInput
|
||||
v-model:value="reviewer"
|
||||
:maxlength="120"
|
||||
:disabled="saving"
|
||||
placeholder="填写审核人"
|
||||
aria-label="审核人"
|
||||
/>
|
||||
<NCheckbox v-model:checked="acknowledged" :disabled="saving"
|
||||
>我已核对本镜草案和实际参考,确认采用。</NCheckbox
|
||||
<section class="workspace-numbered-section workspace-section-stack">
|
||||
<WorkspaceSectionHeading :marker="sectionMarkers.preview" title="预览与采用确认" />
|
||||
<NCollapse
|
||||
class="workspace-collapse"
|
||||
v-if="configuration.data.value && !useSaved"
|
||||
display-directive="show"
|
||||
><NCollapseItem name="preview-model" title="预览模型与参数"
|
||||
><section class="space-y-4">
|
||||
<GenerationModelControls
|
||||
type="image"
|
||||
:catalog="configuration.data.value.catalog"
|
||||
:aspect-ratio="configuration.data.value.profile.aspectRatio"
|
||||
:provider="provider"
|
||||
:options="options"
|
||||
@update:provider="
|
||||
value => {
|
||||
providerEdited = true
|
||||
provider = value
|
||||
}
|
||||
"
|
||||
@update:options="
|
||||
value => {
|
||||
providerEdited = true
|
||||
options = value
|
||||
}
|
||||
"
|
||||
:disabled="saving"
|
||||
/></section></NCollapseItem
|
||||
></NCollapse>
|
||||
<NButton v-if="configuration.error.value" @click="configuration.refresh">重新读取模型配置</NButton>
|
||||
<NButton
|
||||
class="self-start"
|
||||
:loading="previewing"
|
||||
:disabled="!canPreview || saving || savingDraft || previewing"
|
||||
@click="loadPreview"
|
||||
>免费预览摄影草案</NButton
|
||||
>
|
||||
|
||||
<!-- 以下是已冻结的草案、场景几何依据及实际模型输入 -->
|
||||
<section v-if="reviewed && previewDisplay" class="space-y-4 text-sm">
|
||||
<RecordDetails
|
||||
title="本次核对范围"
|
||||
:records="[
|
||||
{
|
||||
fields: [
|
||||
{ label: '当前镜头', value: `${shot.beatNo}.${shot.shotNo}` },
|
||||
{
|
||||
label: '相邻镜头',
|
||||
value: `${reviewed.preview.adjacentDerivedVersions?.length ?? 0} 镜`
|
||||
},
|
||||
{ label: '来源保护', value: '正式采用时再次核对,变化后需重新确认' }
|
||||
]
|
||||
}
|
||||
]"
|
||||
/>
|
||||
<WorkspaceSectionHeading title="草案预览" description="采用后可预览正式首帧。" />
|
||||
<NTag size="small" :bordered="false">{{
|
||||
reviewed.preview.productionGate.ready ? '项目制作已就绪' : '项目制作未就绪'
|
||||
}}</NTag>
|
||||
<p v-if="reviewed.preview.productionGate.reason" class="text-muted">
|
||||
{{ userFacingText(reviewed.preview.productionGate.reason) }}
|
||||
</p>
|
||||
<dl class="detail-grid">
|
||||
<dt>摄影</dt>
|
||||
<dd>
|
||||
{{ directionLabel(reviewed.selection.draft.direction.shotSize, 'shotSize') }} ·
|
||||
{{ directionLabel(reviewed.selection.draft.direction.cameraAngle, 'cameraAngle') }} ·
|
||||
{{ directionLabel(reviewed.selection.draft.direction.cameraMovement, 'cameraMovement') }}
|
||||
</dd>
|
||||
<dt>构图</dt>
|
||||
<dd>{{ reviewed.selection.draft.direction.composition }}</dd>
|
||||
<dt>机位</dt>
|
||||
<dd>{{ reviewed.selection.draft.direction.cameraPosition }}</dd>
|
||||
<dt>视觉意图</dt>
|
||||
<dd>{{ reviewed.selection.draft.direction.visualIntent }}</dd>
|
||||
<dt>环境</dt>
|
||||
<dd>
|
||||
{{
|
||||
Object.values(reviewed.selection.draft.visualState.environment)
|
||||
.filter(Boolean)
|
||||
.join(' · ') || '未指定'
|
||||
}}
|
||||
</dd>
|
||||
</dl>
|
||||
<NCollapse class="workspace-collapse">
|
||||
<NCollapseItem name="visual" title="场景与角色状态">
|
||||
<VisualStateContinuity
|
||||
v-if="reviewed.selection.draft.visualState.continuityNote"
|
||||
:note="reviewed.selection.draft.visualState.continuityNote"
|
||||
class="mb-2"
|
||||
/>
|
||||
<ul class="space-y-2">
|
||||
<li
|
||||
v-for="subject in reviewed.selection.draft.visualState.subjects"
|
||||
:key="subject.subjectRef"
|
||||
>
|
||||
<strong>{{ subject.formName }} · {{ subject.subjectRef }}</strong>
|
||||
<p>
|
||||
{{
|
||||
[
|
||||
subject.expression,
|
||||
subject.pose,
|
||||
subject.gaze,
|
||||
subject.position,
|
||||
subject.transientState
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(' · ') || '无即时变化'
|
||||
}}
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<KeyframePreviewChecks :preview="reviewed.preview" />
|
||||
<ImageGenerationPreview
|
||||
:preview="previewDisplay"
|
||||
:loading="false"
|
||||
error=""
|
||||
stale-notice=""
|
||||
display-only
|
||||
/>
|
||||
<NInput
|
||||
v-model:value="reviewer"
|
||||
:maxlength="120"
|
||||
:disabled="saving"
|
||||
placeholder="填写审核人"
|
||||
aria-label="审核人"
|
||||
/>
|
||||
<NCheckbox v-model:checked="acknowledged" :disabled="saving"
|
||||
>我已核对本镜草案和实际参考,确认采用。</NCheckbox
|
||||
>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
<template #footer>
|
||||
|
||||
@@ -10,12 +10,12 @@ defineProps<{ shot: DesignedShot }>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :key="shot.shotId" class="workspace-section-stack workspace-section-stack-spacious">
|
||||
<section>
|
||||
<div :key="shot.shotId" class="workspace-section-stack">
|
||||
<section class="workspace-panel">
|
||||
<!-- 以下是统一的导演设计模块标题 -->
|
||||
<WorkspaceSectionHeading title="导演摄影设计" />
|
||||
<template v-if="shot.direction"
|
||||
><div class="mt-4 mb-5 flex flex-wrap gap-2">
|
||||
><div class="mt-3 mb-3 flex flex-wrap gap-2">
|
||||
<NTag
|
||||
v-for="field in [
|
||||
{ key: 'shotSize', label: '景别' },
|
||||
@@ -32,38 +32,46 @@ defineProps<{ shot: DesignedShot }>()
|
||||
</div>
|
||||
<dl class="detail-grid">
|
||||
<dt>视觉意图</dt>
|
||||
<dd>{{ shot.direction.visualIntent }}</dd>
|
||||
<dd class="line-clamp-2">{{ shot.direction.visualIntent }}</dd>
|
||||
</dl>
|
||||
<!-- 以下是按需展开的完整摄影原文,不裁剪或改写创作内容。 -->
|
||||
<NCollapse class="mt-4">
|
||||
<NCollapse class="workspace-collapse mt-4">
|
||||
<NCollapseItem name="camera-detail" title="构图与机位">
|
||||
<dl class="detail-grid">
|
||||
<dt>构图</dt>
|
||||
<dd class="whitespace-pre-wrap wrap-anywhere">{{ shot.direction.composition }}</dd>
|
||||
<dt>机位</dt>
|
||||
<dd class="whitespace-pre-wrap wrap-anywhere">{{ shot.direction.cameraPosition }}</dd>
|
||||
<dt>完整视觉意图</dt>
|
||||
<dd class="whitespace-pre-wrap wrap-anywhere">{{ shot.direction.visualIntent }}</dd>
|
||||
</dl>
|
||||
</NCollapseItem>
|
||||
</NCollapse></template
|
||||
>
|
||||
<p v-else class="mt-4 text-sm text-muted">此镜头尚无已保存的导演设计。</p>
|
||||
</section>
|
||||
<section>
|
||||
<section class="workspace-panel workspace-panel-facts">
|
||||
<!-- 以下是统一的画面状态模块标题 -->
|
||||
<WorkspaceSectionHeading title="画面状态 · 开拍0秒" />
|
||||
<template v-if="shot.visualState"
|
||||
><dl class="detail-grid mt-4">
|
||||
<dt>时间</dt>
|
||||
<dd>{{ shot.visualState.timeOfDay || '未指定' }}</dd>
|
||||
<dt>天气</dt>
|
||||
<dd>{{ shot.visualState.weather || '不适用 / 未指定' }}</dd>
|
||||
<dt>氛围</dt>
|
||||
<dd>{{ shot.visualState.atmosphere || '未指定' }}</dd>
|
||||
<dt>环境变化</dt>
|
||||
<dd>{{ shot.visualState.environmentTransientState || '无临时变化' }}</dd>
|
||||
</dl>
|
||||
<!-- 以下是完整连续依据与主体状态,普通浏览默认收起。 -->
|
||||
<NCollapse class="mt-4">
|
||||
<NCollapse class="workspace-collapse mt-4">
|
||||
<NCollapseItem name="environment" title="天气与环境变化">
|
||||
<dl class="detail-grid">
|
||||
<dt>天气</dt>
|
||||
<dd>{{ shot.visualState.weather || '不适用 / 未指定' }}</dd>
|
||||
<dt>环境变化</dt>
|
||||
<dd class="whitespace-pre-wrap wrap-anywhere">
|
||||
{{ shot.visualState.environmentTransientState || '无临时变化' }}
|
||||
</dd>
|
||||
</dl>
|
||||
</NCollapseItem>
|
||||
<NCollapseItem name="continuity" title="衔接与时间依据">
|
||||
<VisualStateContinuity
|
||||
v-if="shot.visualState.continuityNote"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import RecordDetails from '../../../components/ui/RecordDetails.vue'
|
||||
import SceneTransitionEvidence from './SceneTransitionEvidence.vue'
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
import FeedbackMessage from '../../../components/ui/FeedbackMessage.vue'
|
||||
@@ -212,7 +212,32 @@ function exportResult(kind: 'spec' | 'prompt') {
|
||||
>{{ spec.subjects.length }} 个主体 · {{ spec.durationSeconds }} 秒</span
|
||||
><NButton @click="exportResult('spec')" text size="small"><Download :size="13" />导出方案</NButton>
|
||||
</div>
|
||||
<RawDataDetails :value="spec" title="完整生成方案(高级)" />
|
||||
|
||||
<RecordDetails
|
||||
title="本镜头生成内容"
|
||||
:records="[
|
||||
{
|
||||
title: '当前环境',
|
||||
fields: [
|
||||
{ label: '时间', value: spec.environment.timeOfDay },
|
||||
{ label: '天气', value: spec.environment.weather },
|
||||
{ label: '氛围', value: spec.environment.atmosphere },
|
||||
{ label: '环境变化', value: spec.environment.transientState }
|
||||
]
|
||||
},
|
||||
...spec.subjects.map(subject => ({
|
||||
title: subject.subjectName || '主体名称未记录',
|
||||
fields: [
|
||||
{ label: '形态', value: subject.subjectFormName },
|
||||
{ label: '表情', value: subject.expression },
|
||||
{ label: '姿态', value: subject.pose },
|
||||
{ label: '视线', value: subject.gaze },
|
||||
{ label: '位置', value: subject.position },
|
||||
{ label: '临时状态', value: subject.transientState }
|
||||
]
|
||||
}))
|
||||
]"
|
||||
/>
|
||||
<SceneTransitionEvidence :continuity="spec.continuity" />
|
||||
</template>
|
||||
</section>
|
||||
|
||||
@@ -2,6 +2,63 @@ import type { KeyframeSpec } from '../production/types'
|
||||
import type { ShotReviewDraft } from './derived-review.types'
|
||||
import type { DesignedShot } from './types'
|
||||
|
||||
/** 用户需要核对的摄影修订历史,内部版本仍由原服务保存和保护。 */
|
||||
export interface CameraRevisionSummary {
|
||||
/** 审核人。 */ reviewer: string
|
||||
/** 原采用时间。 */ adoptedAt: string
|
||||
/** 原构图。 */ beforeComposition: string
|
||||
/** 采用后构图。 */ afterComposition: string
|
||||
/** 原机位。 */ beforePosition: string
|
||||
/** 采用后机位。 */ afterPosition: string
|
||||
}
|
||||
/**
|
||||
* 从正式摄影历史读取明确的业务字段,不能把未知对象直接显示给用户。
|
||||
* @param raw 正式摄影保存的原始记录
|
||||
* @returns 可读历史,不包含来源指纹或内部请求
|
||||
*/
|
||||
export function cameraRevisionSummaries(raw: string | null | undefined): CameraRevisionSummary[] {
|
||||
try {
|
||||
const parsed: unknown = JSON.parse(raw ?? 'null')
|
||||
if (
|
||||
!parsed ||
|
||||
typeof parsed !== 'object' ||
|
||||
!('cameraRevisionHistory' in parsed) ||
|
||||
!Array.isArray(parsed.cameraRevisionHistory)
|
||||
)
|
||||
return []
|
||||
return parsed.cameraRevisionHistory.flatMap((item: unknown) => {
|
||||
if (!item || typeof item !== 'object' || Array.isArray(item)) return []
|
||||
const record = item as Record<string, unknown>,
|
||||
before =
|
||||
record.before && typeof record.before === 'object'
|
||||
? (record.before as Record<string, unknown>)
|
||||
: {},
|
||||
after =
|
||||
record.after && typeof record.after === 'object' ? (record.after as Record<string, unknown>) : {}
|
||||
return [
|
||||
{
|
||||
reviewer: historyText(record.reviewer),
|
||||
adoptedAt: historyText(record.adoptedAt),
|
||||
beforeComposition: historyText(before.composition),
|
||||
afterComposition: historyText(after.composition),
|
||||
beforePosition: historyText(before.cameraPosition),
|
||||
afterPosition: historyText(after.cameraPosition)
|
||||
}
|
||||
]
|
||||
})
|
||||
} catch {
|
||||
return []
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 仅读取正式记录中的文字,不把对象和内部结构转成字符串。
|
||||
* @param value 原字段
|
||||
* @returns 原文或空值
|
||||
*/
|
||||
function historyText(value: unknown) {
|
||||
return typeof value === 'string' ? value : ''
|
||||
}
|
||||
|
||||
/**
|
||||
* 从正式记录创建受控草案,保留原来的动作、形态及环境。
|
||||
* @param shot 已保存的摄影和即时状态
|
||||
|
||||
@@ -8,8 +8,8 @@ import { referenceImageUrl } from '../../../lib/assets'
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
import type { ImageReferenceBinding } from '../generation-preview'
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import WorkspaceSectionHeading from '../../../components/ui/WorkspaceSectionHeading.vue'
|
||||
import FieldLabel from '../../../components/ui/FieldLabel.vue'
|
||||
import type { ImageGenerationPreview } from '../generation-preview'
|
||||
|
||||
/** 三个图片入口共用的最终输入与参考职责展示。 */
|
||||
@@ -90,21 +90,35 @@ const omitted = computed(
|
||||
>
|
||||
| undefined
|
||||
)
|
||||
/**
|
||||
* 机位长说明按需查看,卡片保留实际参考顺序与职责。
|
||||
* @param bindings 当前图片原始职责
|
||||
* @returns 未改写的机位说明
|
||||
*/
|
||||
function referenceNotes(bindings: ImageReferenceBinding[]) {
|
||||
return bindings
|
||||
.map(binding => binding.viewDescription)
|
||||
.filter(Boolean)
|
||||
.join('\n')
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 以下是免费实际输入预览模块,参数调整后必须重新读取 -->
|
||||
<section class="min-w-0 space-y-4" aria-label="本次生成预览">
|
||||
<WorkspaceSectionHeading v-if="!displayOnly" title="本次生成预览" description="免费查看提示词和参考图。" />
|
||||
<NButton
|
||||
v-if="!displayOnly"
|
||||
class="workspace-action-button"
|
||||
:loading="loading"
|
||||
:disabled="disabled || loading"
|
||||
@click="emit('load')"
|
||||
>
|
||||
<template #icon><Eye :size="16" /></template>预览实际生成输入
|
||||
</NButton>
|
||||
<WorkspaceSectionHeading v-if="!displayOnly" title="本次生成预览">
|
||||
<template #actions>
|
||||
<NButton
|
||||
v-if="!displayOnly"
|
||||
class="workspace-action-button"
|
||||
:loading="loading"
|
||||
:disabled="disabled || loading"
|
||||
@click="emit('load')"
|
||||
>
|
||||
<template #icon><Eye :size="16" /></template>预览实际生成输入
|
||||
</NButton>
|
||||
</template>
|
||||
</WorkspaceSectionHeading>
|
||||
<ContextNotice v-if="staleNotice" type="warning" :show-icon="false">{{ staleNotice }}</ContextNotice>
|
||||
<ContextNotice v-if="error" type="error" :show-icon="false">{{ error }}</ContextNotice>
|
||||
<div v-if="preview" class="min-w-0 space-y-3 text-xs leading-6">
|
||||
@@ -115,7 +129,7 @@ const omitted = computed(
|
||||
>
|
||||
</div>
|
||||
<!-- 以下是实际图片顺序和全部参考职责 -->
|
||||
<ul v-if="references.length" class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<ul v-if="references.length" class="image-reference-grid">
|
||||
<li v-for="item in references" :key="item.order" class="min-w-0">
|
||||
<div class="asset-image max-w-sm">
|
||||
<RevealImage
|
||||
@@ -134,21 +148,27 @@ const omitted = computed(
|
||||
: '图片无法预览'
|
||||
}}</span>
|
||||
</div>
|
||||
<p class="mt-1 font-medium">图 {{ item.order }}</p>
|
||||
<p class="mt-1 flex items-center gap-2 font-medium">
|
||||
图 {{ item.order
|
||||
}}<FieldLabel
|
||||
label="参考机位"
|
||||
:description="referenceNotes(item.bindings)"
|
||||
icon-only
|
||||
icon="info"
|
||||
verbatim
|
||||
/>
|
||||
</p>
|
||||
<p v-if="item.evidence" class="text-muted">
|
||||
{{ item.evidence.width }} × {{ item.evidence.height }}
|
||||
</p>
|
||||
<p v-for="(binding, index) in item.bindings" :key="index" class="wrap-anywhere text-muted">
|
||||
{{ roles[binding.role] ?? '图片参考'
|
||||
}}<template v-if="binding.subjectRef"> · {{ binding.subjectRef }}</template>
|
||||
<template v-if="'viewDescription' in binding && binding.viewDescription">
|
||||
· {{ binding.viewDescription }}</template
|
||||
>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p v-else class="text-muted">本次没有图片参考。</p>
|
||||
<NCollapse :default-expanded-names="['prompt']">
|
||||
<NCollapse>
|
||||
<NCollapseItem name="prompt" title="本次实际使用的画面描述">
|
||||
<p class="whitespace-pre-wrap wrap-anywhere">{{ preview.providerPrompt }}</p>
|
||||
<p
|
||||
@@ -175,14 +195,6 @@ const omitted = computed(
|
||||
</ul>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<RawDataDetails
|
||||
:value="{
|
||||
generationConfig: preview.generationConfig,
|
||||
previewFingerprint: preview.previewFingerprint,
|
||||
providerInputSnapshot: preview.providerInputSnapshot
|
||||
}"
|
||||
title="生成参数与参考图详情"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
@@ -479,7 +479,7 @@ function isInputMode(value: unknown, inputMode: string): boolean {
|
||||
: '正在准备本次任务'
|
||||
}}</template>
|
||||
<template v-if="execution.currentResourceId && !scriptCreation && !breakdownTask && !derivedTask">
|
||||
· 当前镜头 <code>{{ execution.currentResourceId }}</code></template
|
||||
· 正在处理当前镜头</template
|
||||
>
|
||||
</p>
|
||||
<ContextNotice
|
||||
@@ -674,17 +674,12 @@ function isInputMode(value: unknown, inputMode: string): boolean {
|
||||
<!-- 以下是首帧工作流中断后的人工核查说明 -->
|
||||
<p v-if="keyframeRecovery" class="mt-3 text-xs leading-6">首帧任务已中断,请先核对候选和费用。</p>
|
||||
<!-- 以下是非拆解任务的 Naive 详情折叠模块 -->
|
||||
<NCollapse v-if="!breakdownTask && !embedded" class="mt-3 text-xs text-muted">
|
||||
<NCollapse
|
||||
v-if="!breakdownTask && !embedded && (recoveryKey || (videoQuality && settledItems.length))"
|
||||
class="mt-3 text-xs text-muted"
|
||||
>
|
||||
<NCollapseItem name="task-details" title="任务详情">
|
||||
<p class="mt-2 break-all font-mono">任务编号 · {{ execution.id }}</p>
|
||||
<pre v-if="derivedTask && claims.length" class="mt-2 whitespace-pre-wrap wrap-anywhere">{{
|
||||
JSON.stringify(claims, null, 2)
|
||||
}}</pre>
|
||||
<pre
|
||||
v-if="derivedTask && (execution.error || result.episodes)"
|
||||
class="mt-2 whitespace-pre-wrap wrap-anywhere"
|
||||
>{{ JSON.stringify({ error: execution.error, result: execution.result }, null, 2) }}</pre>
|
||||
<p v-if="recoveryKey" class="mt-2 break-all">原执行 · {{ execution.metadata?.recoveryOf }}</p>
|
||||
<p v-if="recoveryKey" class="mt-2">本次从原任务继续处理,原记录仍保留。</p>
|
||||
<!-- 以下是逐镜已结束质量任务的持久化状态模块 -->
|
||||
<ul v-if="videoQuality && settledItems.length" class="mt-2 space-y-2">
|
||||
<li v-for="item in settledItems" :key="item.shotId" class="break-all">
|
||||
@@ -693,7 +688,7 @@ function isInputMode(value: unknown, inputMode: string): boolean {
|
||||
class="text-button"
|
||||
>查看镜头</a
|
||||
>
|
||||
· {{ executionStageLabel(item.status) }} · 视频 {{ item.videoId }}
|
||||
· {{ executionStageLabel(item.status) }}
|
||||
</li>
|
||||
</ul>
|
||||
</NCollapseItem>
|
||||
|
||||
Reference in new issue
Block a user