diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index bc05891..0f5e677 100644 --- a/src/features/production/components/ShotProductionAssets.vue +++ b/src/features/production/components/ShotProductionAssets.vue @@ -3,7 +3,7 @@ import ProviderInputInspector from './ProviderInputInspector.vue' import { NAlert, NButton, NCollapse, NCollapseItem, NTag } from 'naive-ui' import { computed, ref, watch } from 'vue' import { ExternalLink, ImagePlus, RefreshCw } from '@lucide/vue' -import { StatusBadge } from '../../../components/ui' +import { AssetImage, StatusBadge } from '../../../components/ui' import { usePolling } from '../../../composables/usePolling' import { mediaAssetUrl } from '../../../lib/assets' import { errorMessage } from '../../../lib/http' @@ -74,6 +74,11 @@ const promptQuery = usePolling(key, (shotId, signal) => storyboardApi.videoPromp const savedPrompt = computed(() => promptQuery.data.value?.shotId === key.value ? promptQuery.data.value : null ) +/** 当前视频生成规格的首帧和主体参考图,独立查询避免影响资产列表。 */ +const videoInputQuery = usePolling(key, (shotId, signal) => productionApi.videoGenerationSpec(shotId, signal), false) +const currentVideoInput = computed(() => + videoInputQuery.data.value?.shotId === key.value ? videoInputQuery.data.value : null +) const keyframes = computed(() => query.data.value?.keyframes ?? []) const videos = computed(() => query.data.value?.videos ?? []) const videoQualityStatus = computed(() => query.data.value?.qualityStatus ?? null) @@ -158,7 +163,7 @@ function safeVideoUrl(value: string | null): string | null { /** 重新读取单镜头资产,并通知父页刷新项目就绪状态。 */ async function refreshAll() { - await Promise.all([query.refresh(), promptQuery.refresh()]) + await Promise.all([query.refresh(), promptQuery.refresh(), videoInputQuery.refresh()]) emit('changed') } @@ -433,6 +438,46 @@ async function inspectSpecs() { {{ issueLabel(issue.code) }}:{{ issue.reason }} +
+
+
当前视频生成素材引用
+ + 主首帧 1 张 · 主体参考图 {{ currentVideoInput.references.length }} 张 + +
+

以下是当前镜头的生成输入;已生成的视频可能使用更早的素材。

+
+
+ +
+

视频输入首帧

+

模型专用变体

+
+
+
+ +
+

{{ reference.subjectName }}

+

+ {{ reference.subjectFormName }} · {{ reference.subjectRef }} +

+
+
+
+

+ 正在读取视频生成素材… +

+
+

当前生成规格尚未就绪,请检查视频提示词、主首帧与主体参考图。

+

{{ videoInputQuery.error.value }}

+ 重新读取 +
+