feat: 串联生产前端明确无视频测试模式
This commit is contained in:
1 parent
c74d1aa7e9
commit
10d83e570f
1 file changed
+40
-5
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { NAlert, NButton, NCollapse, NCollapseItem } from 'naive-ui'
|
||||
import { NAlert, NButton, NCheckbox, NCollapse, NCollapseItem, NInputNumber } from 'naive-ui'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import ConfirmAction from '../../workflows/ConfirmAction.vue'
|
||||
import { downloadText, formatDate } from '../../../lib/format'
|
||||
@@ -7,7 +7,19 @@ import { useAdvancedProduction } from '../useAdvancedProduction'
|
||||
import ProductionPlanPanel from './ProductionPlanPanel.vue'
|
||||
|
||||
/** 高级入口默认展示真实流程边界,但不会在挂载时触发预检或生成。 */
|
||||
const { id, operation, session, checking, error, check, blocked, preflight, start } = useAdvancedProduction()
|
||||
const {
|
||||
id,
|
||||
operation,
|
||||
session,
|
||||
checking,
|
||||
error,
|
||||
check,
|
||||
blocked,
|
||||
safeMode,
|
||||
testKeyframeLimit,
|
||||
preflight,
|
||||
start
|
||||
} = useAdvancedProduction()
|
||||
const receipt = computed(() => session.value.pipelineReceipt)
|
||||
const expanded = ref<string[]>(['advanced'])
|
||||
watch(
|
||||
@@ -35,8 +47,25 @@ function exportReceipt() {
|
||||
>依次补齐形态提示词、参考图、首帧质量校验与修复、视频提示词,再提交视频任务。视觉风格、身份母版、导演设计和即时状态仍需提前准备。</NAlert
|
||||
>
|
||||
<p class="mt-3 text-xs leading-6 text-muted">
|
||||
范围固定为全项目,跳过已有结果;不使用上方并发、覆盖、数量上限和尺寸配置。可能产生文字、图片、首帧校验与修复、视频模型费用。模型与并发由服务端配置决定。请确认其他页面没有任务;断网后先刷新制作状态,勿直接重试。
|
||||
范围固定为全项目并跳过已有有效结果。默认开启测试安全模式:允许 LLM、Vision、主体图、少量首帧和 Video Prompt,但会在视频生成前正常停止,不向视频 Provider 提交任务。
|
||||
</p>
|
||||
<div class="surface-inset mt-3 p-3">
|
||||
<NCheckbox v-model:checked="safeMode">测试安全模式(不生成视频)</NCheckbox>
|
||||
<div v-if="safeMode" class="mt-3 flex items-center gap-3 text-xs">
|
||||
<span>本轮最多生成首帧</span>
|
||||
<NInputNumber
|
||||
:value="testKeyframeLimit"
|
||||
:min="1"
|
||||
:step="1"
|
||||
class="w-28"
|
||||
@update:value="testKeyframeLimit = $event"
|
||||
/>
|
||||
<span class="text-muted">张;Video Prompt 仍会正常生成。</span>
|
||||
</div>
|
||||
<NAlert v-else type="warning" :show-icon="false" class="mt-3">
|
||||
已关闭测试安全模式。启动后会进入视频任务提交阶段并产生较高视频生成费用。
|
||||
</NAlert>
|
||||
</div>
|
||||
<div class="mt-4 flex flex-wrap items-center gap-3">
|
||||
<NButton :disabled="blocked || checking" :loading="checking" @click="preflight"
|
||||
>检查串联生产条件</NButton
|
||||
@@ -45,7 +74,11 @@ function exportReceipt() {
|
||||
label="启动串联生产"
|
||||
:disabled="blocked || checking || !check || !!check.issues.length"
|
||||
acknowledgement
|
||||
:description="`项目 ${id}:全项目串联生产,包含首帧生成、校验与有限修复,不等待异步视频完成。确认后会重新读取计划;有阻塞时先处理可执行部分,成功资产会保留。可能产生文字、图片、校验和视频模型费用。`"
|
||||
:description="
|
||||
safeMode
|
||||
? `项目 ${id}:测试安全模式将运行到 Video Prompt,并最多生成 ${testKeyframeLimit || 1} 张首帧;不会提交视频生成任务。`
|
||||
: `项目 ${id}:将执行完整串联生产并提交视频生成任务,会产生较高视频模型费用。`
|
||||
"
|
||||
@confirm="start"
|
||||
/>
|
||||
</div>
|
||||
@@ -79,7 +112,9 @@ function exportReceipt() {
|
||||
? '制作已完成'
|
||||
: receipt.dispatchCompleted
|
||||
? '任务已分发,等待视频完成'
|
||||
: '本轮未完成'
|
||||
: receipt.stopReason
|
||||
? '测试执行已正常停止'
|
||||
: '本轮未完成'
|
||||
}}
|
||||
</h3>
|
||||
<NButton text size="small" @click="exportReceipt">导出回执</NButton>
|
||||
|
||||
Reference in new issue
Block a user