feat(short-drama-agent-front): 接入素材预览审核并完善创作流程
This commit is contained in:
1 parent
f8b0fbb8ca
commit
dc8bb17a23
66 files changed
+2864
-632
No files matched your search
@@ -1,12 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
import ImagePreparationPlan from './ImagePreparationPlan.vue'
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
|
||||
import { computed } from 'vue'
|
||||
import { NCollapse, NCollapseItem, NScrollbar } from 'naive-ui'
|
||||
import type { ProductionPlan, ProjectProductionStatus } from '../types'
|
||||
|
||||
/** 展示当前制作计划与真实资产状态,不在页面重复推断业务规则。 */
|
||||
const props = defineProps<{ plan: ProductionPlan; status: ProjectProductionStatus }>()
|
||||
const props = defineProps<{
|
||||
/** 当前真实计划。 */ plan: ProductionPlan
|
||||
/** 可选的已生成资产统计。 */ status?: ProjectProductionStatus
|
||||
}>()
|
||||
/** 生产阶段共享计划字段,角色身份就绪信息单独展示,避免混用不同 DTO。 */
|
||||
const rows = computed(() => [
|
||||
...(props.plan.stableIdentityAnchors ? [{ label: '稳定身份锚点', stage: props.plan.stableIdentityAnchors }] : []),
|
||||
@@ -56,7 +61,7 @@ const problems = computed(() => [
|
||||
{{ plan.characterIdentity.pending }} · 可自动补齐 {{ plan.characterIdentity.autoResolvable }} · 需人工处理
|
||||
{{ plan.characterIdentity.manualBlocked }}
|
||||
</p>
|
||||
<p class="mt-2 text-xs" role="status">
|
||||
<p v-if="status" class="mt-2 text-xs" role="status">
|
||||
当前制作状态:{{ status.completed ? '制作已完成' : `待完成${stageNames[status.stage]}` }} · 有效主体图
|
||||
{{ status.subjectImages.current }}/{{ status.subjectImages.total }} · 有效首帧
|
||||
{{ status.keyframes.skipped }}/{{ status.keyframes.total }} · 有效主视频 {{ status.videos.skipped }}/{{
|
||||
@@ -92,20 +97,22 @@ const problems = computed(() => [
|
||||
</table>
|
||||
</NScrollbar>
|
||||
<p class="mt-2 text-xs text-muted">
|
||||
计划会根据当前素材自动更新。已有有效结果会直接复用;重新生成的过期主体图会自动设为当前主图,手动生成的候选仍可在形态图片页自行确认。
|
||||
计划只反映当前准备情况。图片生成完成后仍需通过质量和来源检查;失败候选会保留,不能用重新生图自动消除质量阻断。
|
||||
</p>
|
||||
<ContextNotice v-if="plan.hasManualBlockers" type="warning" :show-icon="false" class="mt-3">
|
||||
当前有
|
||||
{{ plan.manualBlocked }}
|
||||
项独立准备问题需人工处理。上表各阶段的影响数量可能重叠,不能直接相加。可先生成就绪的主体参考图;成功结果会保留,遇到阻塞时后续阶段可能暂停。
|
||||
</ContextNotice>
|
||||
<!-- 以下是当前道具规格、共享母版依赖与质量处理入口 -->
|
||||
<div class="mt-5 grid items-start gap-6 lg:grid-cols-2"><ImagePreparationPlan :plan="plan" /></div>
|
||||
<NCollapse v-if="problems.length" class="mt-3" :default-expanded-names="['issues']">
|
||||
<NCollapseItem name="issues" title="查看还需要准备的内容">
|
||||
<ul class="space-y-3 text-xs">
|
||||
<li v-for="item in problems" :key="item.key">
|
||||
<strong class="break-all">{{ item.label }}</strong>
|
||||
<p v-for="(issue, index) in item.issues" :key="index" class="mt-1 break-words">
|
||||
{{ issue.reason
|
||||
{{ userFacingText(issue.reason)
|
||||
}}<span v-if="issue.missingSubjects?.length">
|
||||
· 关联主体:{{ issue.missingSubjects.join('、') }}</span
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user