feat: 剧本创作页面展示整剧时长模式与目标
This commit is contained in:
1 parent
a9370cdf50
commit
bf09e44dd5
1 file changed
+8
-1
@@ -21,7 +21,9 @@ const tab = ref('episodes')
|
|||||||
const dramaRecords = computed(() => workflowCheckpoints(checkpoints.value, 'create-drama'))
|
const dramaRecords = computed(() => workflowCheckpoints(checkpoints.value, 'create-drama'))
|
||||||
const state = computed(() => dramaRecords.value.at(-1)?.state)
|
const state = computed(() => dramaRecords.value.at(-1)?.state)
|
||||||
const episodes = computed(() => project.value?.episodes ?? [])
|
const episodes = computed(() => project.value?.episodes ?? [])
|
||||||
const total = computed(() => state.value?.episodeCount)
|
const total = computed(() => project.value?.episodeCount ?? state.value?.episodeCount)
|
||||||
|
/** 整剧目标时长仅作展示,不影响生成状态。 */
|
||||||
|
const targetMinutes = computed(() => project.value?.targetDurationSeconds == null ? null : Math.round(project.value.targetDurationSeconds / 60))
|
||||||
const projectId = computed(() => project.value?.id ?? '')
|
const projectId = computed(() => project.value?.id ?? '')
|
||||||
const operation = computed(() => getOperation(projectId.value))
|
const operation = computed(() => getOperation(projectId.value))
|
||||||
const backgroundExecution = useWorkflowExecution(projectId, 'create-drama')
|
const backgroundExecution = useWorkflowExecution(projectId, 'create-drama')
|
||||||
@@ -96,6 +98,11 @@ function exportScript() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="project" class="mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted">
|
||||||
|
<span>计划 {{ total ?? '—' }} 集</span>
|
||||||
|
<span>时长规划:{{ project.durationMode === 'auto' ? '自动' : project.durationMode === 'fixed_episode_count' ? '固定集数' : '弹性集数' }}</span>
|
||||||
|
<span v-if="targetMinutes !== null">整剧目标约 {{ targetMinutes }} 分钟</span>
|
||||||
|
</div>
|
||||||
<!-- 以下是唯一的创作任务进度与恢复操作模块,随标题区滚动 -->
|
<!-- 以下是唯一的创作任务进度与恢复操作模块,随标题区滚动 -->
|
||||||
<WorkflowExecutionPanel
|
<WorkflowExecutionPanel
|
||||||
v-if="backgroundExecution.executionId.value"
|
v-if="backgroundExecution.executionId.value"
|
||||||
|
|||||||
Reference in new issue
Block a user