From 8cdaf33936ce353ce3b2b48c18fd13a9db5e7494 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 17:16:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E9=95=9C=E5=A4=B4?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=8D=E4=B8=8E=E8=A7=86=E9=A2=91=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ShotProductionAssets.vue | 78 ++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index 4d6e8aa..f34be5e 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' @@ -81,6 +81,16 @@ const query = usePolling( }, false ) +/** 单独读取已保存的提示词,查询失败不影响首帧和视频资产展示。 */ +const promptQuery = usePolling(key, (shotId, signal) => storyboardApi.videoPrompt(shotId, signal), false) +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) @@ -166,7 +176,7 @@ function safeVideoUrl(value: string | null): string | null { /** 重新读取单镜头资产,并通知父页刷新项目就绪状态。 */ async function refreshAll() { - await query.refresh() + await Promise.all([query.refresh(), promptQuery.refresh(), videoInputQuery.refresh()]) emit('changed') } @@ -328,6 +338,29 @@ async function inspectSpecs() { {{ issueLabel(issue.code) }}:{{ issue.reason }} +
+

本镜视频提示词

+

{{ savedPrompt.videoPrompt }}

+ +

+ 此提示词已过期,请重新生成后再制作视频。 +

+
+

+ 正在读取视频提示词… +

+

+ 尚未生成本镜视频提示词。 +

+ + 提示词读取失败:{{ promptQuery.error.value }} + 重试 +
+
+
+
当前视频生成素材引用
+ + 主首帧 1 张 · 主体参考图 {{ currentVideoInput.references.length }} 张 + +
+

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

+
+
+ +
+

视频输入首帧

+

+ {{ currentVideoInput.providerInputKeyframe.source === 'provider_variant' ? '模型专用变体' : '当前主首帧' }} +

+
+
+
+ +
+

{{ reference.subjectName }}

+

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

+
+
+
+

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

+
+

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

+

{{ videoInputQuery.error.value }}

+ 重新读取 +
+