feat: 同步动作与首帧编辑能力并统一工作区反馈
接入动作时间轴、密度审计、人工视线目标和后台首帧编辑;独立读取已保存提示词,并在首帧晋升前重新核对持久化质量状态。 统一 NMessage 结果反馈、局部 loading 和业务说明间距,保留真实长任务进度与部分失败语义。 验证:pnpm check(49 个文件、393 项测试)、pnpm build;当前环境无法完成 localhost 浏览器验收及真实后端联调。
This commit is contained in:
1 parent
83482a70c5
commit
7a60db3ced
76 files changed
+2485
-457
No files matched your search
@@ -1,19 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import FeedbackMessage from '../../../components/ui/FeedbackMessage.vue'
|
||||
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
|
||||
import AppForm from '../../../components/ui/AppForm.vue'
|
||||
import { NFormItem } from 'naive-ui'
|
||||
import { integerRule, sizeRules } from '../../../lib/form-rules'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import {
|
||||
NAlert,
|
||||
NButton,
|
||||
NCheckbox,
|
||||
NCollapse,
|
||||
NCollapseItem,
|
||||
NInput,
|
||||
NInputNumber,
|
||||
NRadioButton,
|
||||
NRadioGroup
|
||||
} from 'naive-ui'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NInput, NInputNumber, NRadioButton, NRadioGroup } from 'naive-ui'
|
||||
import { AppDialog } from '../../../components/ui'
|
||||
import { allowedTextLines, validQualityInput } from '../quality'
|
||||
import type { QualityAction, QualityInput, QualityTarget } from '../quality.types'
|
||||
@@ -243,8 +237,8 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
target?.kind === 'video' ? '生成修复候选' : '校验并修复'
|
||||
}}</NRadioButton>
|
||||
</NRadioGroup>
|
||||
<NAlert v-if="target?.kind === 'video'" type="info" :show-icon="false" class="mt-4"
|
||||
>视频校验会按镜头启用抽样帧、运动及道具专项检查,不含音频和口型。普通候选只校验;修复候选复检通过后会自动设为主视频。</NAlert
|
||||
<ContextNotice v-if="target?.kind === 'video'" type="info" :show-icon="false" class="mt-4"
|
||||
>视频校验会按镜头启用抽样帧、运动及道具专项检查,不含音频和口型。普通候选只校验;修复候选复检通过后会自动设为主视频。</ContextNotice
|
||||
>
|
||||
<div v-if="generating" class="quality-fields mt-4">
|
||||
<NFormItem path="attempts" :label="videoRepair ? '修复链次数上限' : '每镜最多修复'"
|
||||
@@ -274,8 +268,8 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
<p v-if="videoRepair" class="mt-3 text-xs text-muted">
|
||||
本次仅创建一个修复视频,不自动等待或复检。完成后请打开新候选的质量检查;修复约束沿用上次失败校验,不使用额外参数。
|
||||
</p>
|
||||
<NAlert v-if="!repairAvailable" type="warning" :show-icon="false" class="mt-3"
|
||||
>请先执行视觉校验,只有未通过的视频可以创建修复候选。</NAlert
|
||||
<ContextNotice v-if="!repairAvailable" type="warning" :show-icon="false" class="mt-3"
|
||||
>请先执行视觉校验,只有未通过的视频可以创建修复候选。</ContextNotice
|
||||
>
|
||||
<NCollapse
|
||||
v-if="!videoRepair"
|
||||
@@ -326,10 +320,10 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
:aspect-ratio="modelQuery.data.value.profile.aspectRatio"
|
||||
:disabled="pending"
|
||||
/>
|
||||
<NAlert v-if="modelQuery.error.value" type="error" :show-icon="false">{{
|
||||
<ContextNotice v-if="modelQuery.error.value" type="error" :show-icon="false">{{
|
||||
modelQuery.error.value
|
||||
}}</NAlert>
|
||||
<NAlert
|
||||
}}</ContextNotice>
|
||||
<ContextNotice
|
||||
v-if="target?.kind === 'batch' && !modelReady && !modelQuery.error.value"
|
||||
type="warning"
|
||||
:show-icon="false"
|
||||
@@ -339,14 +333,14 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
? '正在读取项目模型配置,请稍候。'
|
||||
: '请先保存有效的项目图片模型配置,再选择本次模型。'
|
||||
}}
|
||||
</NAlert>
|
||||
</ContextNotice>
|
||||
<ModelCapabilities
|
||||
:shot-id="target?.shotId"
|
||||
:provider="target?.kind === 'batch' ? provider : undefined"
|
||||
/>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
<NAlert type="warning" :show-icon="false" class="mt-4">
|
||||
<ContextNotice type="warning" :show-icon="false" class="mt-4">
|
||||
<template v-if="videoRepair"
|
||||
>本次最多提交 1
|
||||
个视频生成任务,可能产生费用;生成完成不会切换主视频,需再次付费复检通过后才会晋升。</template
|
||||
@@ -365,12 +359,10 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
? '如果当前是修复候选,校验通过将替换当前主视频。'
|
||||
: '仅校验,不修改主资产。'
|
||||
}}</template>
|
||||
</NAlert>
|
||||
</ContextNotice>
|
||||
</AppForm>
|
||||
<p v-if="pending" role="status" class="mt-3 text-xs text-muted">{{ operation.label }}进行中,请勿重复提交。</p>
|
||||
<NAlert v-if="session.error" role="alert" type="error" :show-icon="false" class="mt-4">{{
|
||||
session.error
|
||||
}}</NAlert>
|
||||
<FeedbackMessage v-if="session.error" :message="session.error" />
|
||||
<!-- 以下是持久化任务进度与原目标最终回执模块 -->
|
||||
<WorkflowExecutionPanel
|
||||
v-if="execution.executionId.value"
|
||||
|
||||
Reference in new issue
Block a user