refactor: Production 计划改为制作语义文案
This commit is contained in:
1 parent
64aa048807
commit
8d98365d3c
1 file changed
+6
-6
@@ -3,7 +3,7 @@ import { computed } from 'vue'
|
||||
import { NAlert, NCollapse, NCollapseItem, NScrollbar } from 'naive-ui'
|
||||
import type { ProductionPlan, ProjectProductionStatus } from '../types'
|
||||
|
||||
/** 展示后端只读执行计划与真实资产状态,不自行推断阻塞是否可自动解除。 */
|
||||
/** 展示当前制作计划与真实资产状态,不在页面重复推断业务规则。 */
|
||||
const props = defineProps<{ plan: ProductionPlan; status: ProjectProductionStatus }>()
|
||||
const rows = computed(() => [
|
||||
...(props.plan.characterIdentity ? [{ label: '角色身份', stage: props.plan.characterIdentity }] : []),
|
||||
@@ -45,8 +45,8 @@ const problems = computed(() => [
|
||||
<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>
|
||||
<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">
|
||||
当前制作状态:{{ status.completed ? '制作已完成' : `待完成${stageNames[status.stage]}` }} · 有效主体图
|
||||
@@ -67,7 +67,7 @@ const problems = computed(() => [
|
||||
<th scope="col">总数</th>
|
||||
<th scope="col">可执行</th>
|
||||
<th scope="col">跳过</th>
|
||||
<th scope="col">前置完成后可执行</th>
|
||||
<th scope="col">准备完成后可执行</th>
|
||||
<th scope="col">需人工处理</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -84,7 +84,7 @@ const problems = computed(() => [
|
||||
</table>
|
||||
</NScrollbar>
|
||||
<p class="mt-2 text-xs text-muted">
|
||||
计划按当前资产估算,前置生成后会重新检查。视频“跳过”包含已有有效视频和进行中的任务。Production 会自动晋升重新生成的过期主体主图;人工生成的候选仍由形态图库确认主图。
|
||||
计划会根据当前素材自动更新。已有有效结果会直接复用;重新生成的过期主体图会自动设为当前主图,手动生成的候选仍可在形态图片页自行确认。
|
||||
</p>
|
||||
<NAlert v-if="plan.hasManualBlockers" type="warning" :show-icon="false" class="mt-3">
|
||||
各阶段合计
|
||||
@@ -92,7 +92,7 @@ const problems = computed(() => [
|
||||
项需人工处理(同一镜头可能重复计数)。可先生成就绪的主体参考图;成功结果会保留,遇到阻塞时后续阶段可能暂停。
|
||||
</NAlert>
|
||||
<NCollapse v-if="problems.length" class="mt-3" :default-expanded-names="['issues']">
|
||||
<NCollapseItem name="issues" title="查看前置条件与阻塞原因">
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user