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
@@ -0,0 +1,60 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { NCollapse, NCollapseItem, NTag } from 'naive-ui'
|
||||
import { userFacingText } from '../../../lib/user-facing-text'
|
||||
import type { KeyframeGenerationPreview } from '../types'
|
||||
|
||||
/** 只展示服务端返回的画幅、尺寸和一致性门禁。 */
|
||||
const props = defineProps<{
|
||||
/** 草案和正式预览共用的检查字段。 */
|
||||
preview: Pick<
|
||||
KeyframeGenerationPreview,
|
||||
'deliveryCanvas' | 'generationConfig' | 'continuity' | 'specConsistencySummary' | 'specConsistencyIssues'
|
||||
>
|
||||
}>()
|
||||
/** 实际使用的模型尺寸来自本次服务端配置。 */
|
||||
const size = computed(() => {
|
||||
const options = props.preview.generationConfig.options
|
||||
return options && typeof options === 'object' && 'size' in options && typeof options.size === 'string'
|
||||
? options.size
|
||||
: ''
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- 以下是交付画幅与本次实际模型尺寸 -->
|
||||
<section class="space-y-2 text-xs leading-6" aria-label="首帧画幅与连续性">
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<NTag v-if="preview.deliveryCanvas" size="small" :bordered="false"
|
||||
>交付画幅 {{ preview.deliveryCanvas }}</NTag
|
||||
>
|
||||
<NTag v-if="size" size="small" :bordered="false">实际尺寸 {{ size }}</NTag>
|
||||
<NTag v-if="preview.specConsistencySummary?.blocking" type="warning" size="small" :bordered="false"
|
||||
>连续性待确认 · 暂不能生成</NTag
|
||||
>
|
||||
</div>
|
||||
<!-- 以下是具体待确认主体与规格检查问题 -->
|
||||
<ul v-if="preview.continuity?.reviewIssues.length" class="text-muted">
|
||||
<li v-for="issue in preview.continuity.reviewIssues" :key="issue.subjectRef + issue.code">
|
||||
{{ issue.subjectRef }}:{{
|
||||
issue.code === 'scene_state_transition_unconfirmed'
|
||||
? '场景即时状态衔接待确认'
|
||||
: '角色形态变化待确认'
|
||||
}}
|
||||
</li>
|
||||
</ul>
|
||||
<NCollapse v-if="preview.specConsistencyIssues?.length">
|
||||
<NCollapseItem
|
||||
name="spec-issues"
|
||||
:title="`生成规格提示(${preview.specConsistencySummary?.warningCount ?? preview.specConsistencyIssues.length})`"
|
||||
>
|
||||
<ul class="space-y-2">
|
||||
<li v-for="(issue, index) in preview.specConsistencyIssues" :key="index">
|
||||
{{ issue.subjectRef }} {{ userFacingText(issue.message) }}
|
||||
{{ userFacingText(issue.suggestion) }}
|
||||
</li>
|
||||
</ul>
|
||||
</NCollapseItem>
|
||||
</NCollapse>
|
||||
</section>
|
||||
</template>
|
||||
Reference in new issue
Block a user