feat: Production Plan 展示完整阶段与自动执行状态
This commit is contained in:
1 parent
4b396a8b47
commit
61768236e0
1 file changed
+15
-1
@@ -6,6 +6,8 @@ import type { ProductionPlan, ProjectProductionStatus } from '../types'
|
|||||||
/** 展示后端只读执行计划与真实资产状态,不自行推断阻塞是否可自动解除。 */
|
/** 展示后端只读执行计划与真实资产状态,不自行推断阻塞是否可自动解除。 */
|
||||||
const props = defineProps<{ plan: ProductionPlan; status: ProjectProductionStatus }>()
|
const props = defineProps<{ plan: ProductionPlan; status: ProjectProductionStatus }>()
|
||||||
const rows = computed(() => [
|
const rows = computed(() => [
|
||||||
|
...(props.plan.characterIdentity ? [{ label: '角色身份', stage: props.plan.characterIdentity }] : []),
|
||||||
|
...(props.plan.stableIdentityAnchors ? [{ label: '稳定身份锚点', stage: props.plan.stableIdentityAnchors }] : []),
|
||||||
{ label: '主体参考图', stage: props.plan.subjectImages },
|
{ label: '主体参考图', stage: props.plan.subjectImages },
|
||||||
{ label: '首帧质量', stage: props.plan.keyframes },
|
{ label: '首帧质量', stage: props.plan.keyframes },
|
||||||
{ label: '视频提示词', stage: props.plan.videoPrompts },
|
{ label: '视频提示词', stage: props.plan.videoPrompts },
|
||||||
@@ -40,6 +42,12 @@ const problems = computed(() => [
|
|||||||
<template>
|
<template>
|
||||||
<section class="surface-inset mt-3 p-4" aria-label="制作执行计划">
|
<section class="surface-inset mt-3 p-4" aria-label="制作执行计划">
|
||||||
<h3 class="text-sm font-semibold">执行计划 · 仅检查,不产生生成费用</h3>
|
<h3 class="text-sm font-semibold">执行计划 · 仅检查,不产生生成费用</h3>
|
||||||
|
<div class="mt-3 flex flex-wrap gap-2 text-xs" role="status">
|
||||||
|
<span class="status-chip">入口:{{ plan.canStart ? '可启动' : '未就绪' }}</span>
|
||||||
|
<span class="status-chip">自动执行:{{ plan.canAutoRun ? '可继续' : '需处理阻塞' }}</span>
|
||||||
|
<span class="status-chip">图片:{{ plan.providers.image }}</span>
|
||||||
|
<span class="status-chip">视频:{{ plan.providers.video }}</span>
|
||||||
|
</div>
|
||||||
<p class="mt-2 text-xs" role="status">
|
<p class="mt-2 text-xs" role="status">
|
||||||
当前制作状态:{{ status.completed ? '制作已完成' : `待完成${stageNames[status.stage]}` }} · 有效主体图
|
当前制作状态:{{ status.completed ? '制作已完成' : `待完成${stageNames[status.stage]}` }} · 有效主体图
|
||||||
{{ status.subjectImages.current }}/{{ status.subjectImages.total }} · 有效首帧
|
{{ status.subjectImages.current }}/{{ status.subjectImages.total }} · 有效首帧
|
||||||
@@ -76,7 +84,7 @@ const problems = computed(() => [
|
|||||||
</table>
|
</table>
|
||||||
</NScrollbar>
|
</NScrollbar>
|
||||||
<p class="mt-2 text-xs text-muted">
|
<p class="mt-2 text-xs text-muted">
|
||||||
计划按当前资产估算,前置生成后会重新检查。视频“跳过”包含已有有效视频和进行中的任务。已有过期主体主图生成新候选后,仍需在形态图库确认新主图。
|
计划按当前资产估算,前置生成后会重新检查。视频“跳过”包含已有有效视频和进行中的任务。Production 会自动晋升重新生成的过期主体主图;人工生成的候选仍由形态图库确认主图。
|
||||||
</p>
|
</p>
|
||||||
<NAlert v-if="plan.hasManualBlockers" type="warning" :show-icon="false" class="mt-3">
|
<NAlert v-if="plan.hasManualBlockers" type="warning" :show-icon="false" class="mt-3">
|
||||||
各阶段合计
|
各阶段合计
|
||||||
@@ -122,4 +130,10 @@ const problems = computed(() => [
|
|||||||
.production-plan-table tbody tr:nth-child(even) {
|
.production-plan-table tbody tr:nth-child(even) {
|
||||||
background: var(--app-subtle);
|
background: var(--app-subtle);
|
||||||
}
|
}
|
||||||
|
.status-chip {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 4px 8px;
|
||||||
|
background: var(--app-subtle);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user