feat(short-drama-agent-front): 接入摄影审核与首帧制作
This commit is contained in:
1 parent
3503926d62
commit
751106985e
32 files changed
+1970
-153
No files matched your search
@@ -16,6 +16,10 @@ import { EmptyState } from '../../components/ui'
|
||||
import { downloadText } from '../../lib/format'
|
||||
import ConfirmAction from '../workflows/ConfirmAction.vue'
|
||||
import GenerationReceipt from './components/GenerationReceipt.vue'
|
||||
import { useQuery } from '../../composables/useQuery'
|
||||
import { productionApi } from '../production/api'
|
||||
import ShotProductionAssets from '../production/components/ShotProductionAssets.vue'
|
||||
import ShotDerivedReview from './components/ShotDerivedReview.vue'
|
||||
import ShotDesign from './components/ShotDesign.vue'
|
||||
import MotionPlanPanel from './components/MotionPlanPanel.vue'
|
||||
import MotionAuditPanel from './components/MotionAuditPanel.vue'
|
||||
@@ -64,6 +68,7 @@ const {
|
||||
data,
|
||||
episodeSourceUnavailable,
|
||||
prerequisites,
|
||||
projectAssetsReady,
|
||||
session,
|
||||
operation,
|
||||
concurrency,
|
||||
@@ -79,6 +84,16 @@ const {
|
||||
executions,
|
||||
run
|
||||
} = useStoryboard()
|
||||
/** 仅在首帧标签读取项目列表中的本镜就绪结果,独立于项目制作入口。 */
|
||||
const keyframeProject = computed(() => (detailTab.value === 'keyframes' ? id.value : ''))
|
||||
/** 按当前项目读取后端的逐镜头首帧就绪项。 */
|
||||
const keyframeReadiness = useQuery(keyframeProject, (projectId, signal) =>
|
||||
projectId ? productionApi.keyframeReadiness(projectId, true, signal) : Promise.resolve(null)
|
||||
)
|
||||
/** 只使用当前镜头对应的结果。 */
|
||||
const shotReadiness = computed(() =>
|
||||
keyframeReadiness.data.value?.items.find(item => item.shotId === shot.value?.shotId)
|
||||
)
|
||||
/** 切换详情标签后仍观察起点视觉任务,重新进入项目时恢复真实终态。 */
|
||||
useWorkflowExecution(id, 'motion-plan-start-state-validation')
|
||||
const productionReady = computed(() => directionComplete.value && visualStateComplete.value)
|
||||
@@ -634,7 +649,7 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
|
||||
<div>
|
||||
<NTabs v-model:value="detailTab" type="line" size="small" aria-label="镜头详情"
|
||||
><NTab name="design">设计与状态</NTab><NTab name="tools">参考图与提示词</NTab
|
||||
><NTab name="motion">动作与视线</NTab></NTabs
|
||||
><NTab name="motion">动作与视线</NTab><NTab name="keyframes">首帧</NTab></NTabs
|
||||
>
|
||||
<!-- 以下是统一标签内容起点与模块间距的动作和视线模块 -->
|
||||
<div
|
||||
@@ -646,25 +661,63 @@ const rules = { concurrency: integerRule('批量并发'), maxRepairAttempts: int
|
||||
:shot-id="shot.shotId"
|
||||
:revision="session.prompts[shot.shotId]?.updatedAt"
|
||||
:project-id="id"
|
||||
:disabled="blocked"
|
||||
:disabled="blocked || !projectAssetsReady"
|
||||
@changed="query.refresh"
|
||||
/>
|
||||
<SpatialBindingsPanel
|
||||
:key="shot.shotId"
|
||||
:project-id="id"
|
||||
:shot-id="shot.shotId"
|
||||
:disabled="blocked"
|
||||
:disabled="blocked || !projectAssetsReady"
|
||||
@changed="query.refresh"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="detailTab === 'design'" class="pt-6"><ShotDesign :shot="shot" /></div>
|
||||
<!-- 以下是正式摄影、即时状态与待审草案入口 -->
|
||||
<div v-if="detailTab === 'design'" class="space-y-5 pt-6">
|
||||
<ShotDerivedReview
|
||||
:key="shot.shotId"
|
||||
:project-id="id"
|
||||
:episode-no="episodeNo"
|
||||
:shot="shot"
|
||||
:shots="shots"
|
||||
:disabled="blocked"
|
||||
@changed="query.refresh"
|
||||
/>
|
||||
<ShotDesign :shot="shot" />
|
||||
</div>
|
||||
<!-- 以下是独立于项目批量制作门禁的单镜头首帧 -->
|
||||
<div v-if="detailTab === 'keyframes'" class="pt-4">
|
||||
<p
|
||||
v-if="keyframeReadiness.loading.value && !keyframeReadiness.data.value"
|
||||
role="status"
|
||||
class="text-xs text-muted"
|
||||
>
|
||||
正在检查本镜生成条件…
|
||||
</p>
|
||||
<NButton
|
||||
v-if="keyframeReadiness.error.value"
|
||||
size="small"
|
||||
@click="keyframeReadiness.refresh"
|
||||
>重新读取生成条件</NButton
|
||||
>
|
||||
<ShotProductionAssets
|
||||
:key="shot.shotId"
|
||||
:project-id="id"
|
||||
:shot="shot"
|
||||
:episode-no="episodeNo"
|
||||
:keyframe-readiness="shotReadiness"
|
||||
keyframe-only
|
||||
:disabled="blocked || !!keyframeReadiness.error.value"
|
||||
@changed="keyframeReadiness.refresh"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="detailTab === 'tools'" class="pt-6">
|
||||
<ShotTools
|
||||
:key="shot.shotId"
|
||||
:project-id="id"
|
||||
:episode-no="episodeNo"
|
||||
:shot="shot"
|
||||
:disabled="blocked"
|
||||
:disabled="blocked || !projectAssetsReady"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user