feat(short-drama-agent-front): 支持母版复用并优化生成交互
This commit is contained in:
1 parent
49fb9c7a27
commit
ee5e49957a
28 files changed
+634
-326
No files matched your search
@@ -94,52 +94,54 @@ function exportScript() {
|
||||
<Check v-if="stage.done" :size="15" /><Circle v-else :size="13" /><span>{{ stage.label }}</span
|
||||
><ArrowRight v-if="index < stages.length - 1" :size="13" class="stage-arrow" />
|
||||
</div>
|
||||
</div></div
|
||||
></template>
|
||||
<WorkflowExecutionPanel
|
||||
v-if="backgroundExecution.executionId.value"
|
||||
title="剧本创作任务"
|
||||
:execution="backgroundExecution.query.data.value"
|
||||
:loading="backgroundExecution.query.loading.value"
|
||||
:error="backgroundExecution.query.error.value"
|
||||
@refresh="backgroundExecution.query.refresh"
|
||||
@dismiss="backgroundExecution.dismiss"
|
||||
/>
|
||||
<div v-if="!complete" class="mt-5 flex flex-wrap items-center justify-between gap-4">
|
||||
<p class="text-sm text-muted">
|
||||
已写入 {{ episodes.length }}<span v-if="total"> / {{ total }}</span> 集<span v-if="!total">
|
||||
· 等待计划集数</span
|
||||
>。{{
|
||||
project?.status === 'generating'
|
||||
? '剧本仍在生成,请等待状态更新。'
|
||||
: '如中途停止,可从当前阶段继续。'
|
||||
}}
|
||||
</p>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<ConfirmAction
|
||||
label="恢复生成"
|
||||
description="用于剧集尚未写完的情况。系统会从已保存的角色、世界观和剧集进度继续生成。"
|
||||
acknowledgement
|
||||
:disabled="!canGenerate || operation.pending || backgroundExecution.active.value || !!error"
|
||||
@confirm="resume('resume-generation')"
|
||||
/><ConfirmAction
|
||||
label="恢复改写"
|
||||
description="用于剧集已齐全但审核未通过的情况。系统会从已保存的改写进度继续审核和调整。"
|
||||
acknowledgement
|
||||
:disabled="!canRewrite || operation.pending || backgroundExecution.active.value || !!error"
|
||||
@confirm="resume('resume-rewrite')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<NProgress
|
||||
v-if="total && !complete"
|
||||
aria-label="已写入剧集数量"
|
||||
type="line"
|
||||
:show-indicator="false"
|
||||
:height="4"
|
||||
:percentage="Math.min(100, Math.max(0, (Math.min(episodes.length, total) / Math.max(1, total)) * 100))"
|
||||
class="mt-4"
|
||||
></NProgress>
|
||||
<!-- 以下是唯一的创作任务进度与恢复操作模块,随标题区滚动 -->
|
||||
<WorkflowExecutionPanel
|
||||
v-if="backgroundExecution.executionId.value"
|
||||
title="剧本创作任务"
|
||||
:execution="backgroundExecution.query.data.value"
|
||||
:loading="backgroundExecution.query.loading.value"
|
||||
:error="backgroundExecution.query.error.value"
|
||||
@refresh="backgroundExecution.query.refresh"
|
||||
@dismiss="backgroundExecution.dismiss"
|
||||
/>
|
||||
<div v-if="!complete" class="mt-5 flex flex-wrap items-center justify-between gap-4">
|
||||
<p class="text-sm text-muted">
|
||||
已写入 {{ episodes.length }}<span v-if="total"> / {{ total }}</span> 集<span v-if="!total">
|
||||
· 等待计划集数</span
|
||||
>。{{
|
||||
project?.status === 'generating'
|
||||
? '剧本仍在生成,请等待状态更新。'
|
||||
: '如中途停止,可从当前阶段继续。'
|
||||
}}
|
||||
</p>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<ConfirmAction
|
||||
label="恢复生成"
|
||||
description="用于剧集尚未写完的情况。系统会从已保存的角色、世界观和剧集进度继续生成。"
|
||||
acknowledgement
|
||||
:disabled="!canGenerate || operation.pending || backgroundExecution.active.value || !!error"
|
||||
@confirm="resume('resume-generation')"
|
||||
/><ConfirmAction
|
||||
label="恢复改写"
|
||||
description="用于剧集已齐全但审核未通过的情况。系统会从已保存的改写进度继续审核和调整。"
|
||||
acknowledgement
|
||||
:disabled="!canRewrite || operation.pending || backgroundExecution.active.value || !!error"
|
||||
@confirm="resume('resume-rewrite')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<NProgress
|
||||
v-if="total && !complete"
|
||||
aria-label="已写入剧集数量"
|
||||
type="line"
|
||||
:show-indicator="false"
|
||||
:height="4"
|
||||
:percentage="Math.min(100, Math.max(0, (Math.min(episodes.length, total) / Math.max(1, total)) * 100))"
|
||||
class="mt-4"
|
||||
></NProgress>
|
||||
</template>
|
||||
<div class="script-section">
|
||||
<!-- 以下是剧本内容标签与直接导出模块 -->
|
||||
<div class="tabs-toolbar">
|
||||
@@ -271,7 +273,7 @@ function exportScript() {
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
/* 手机直接通过内容 Tab 查看结果,隐藏重复的流程进度行以增加正文空间。 */
|
||||
.script-workspace-page .workspace-heading-scroll {
|
||||
.script-workspace-page .stage-strip {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -327,7 +329,17 @@ function exportScript() {
|
||||
/* 标签栏下方使用与页面上方相同的模块间距。 */
|
||||
margin-top: var(--app-content-gap);
|
||||
}
|
||||
.script-workspace-page .workspace-split > :not(.script-section) {
|
||||
@apply shrink-0;
|
||||
/* 任务详情与恢复操作在有界提示区滚动,为正文保留可用高度。 */
|
||||
.script-workspace-page .workspace-heading-scroll {
|
||||
max-height: min(40dvh, 320px);
|
||||
}
|
||||
.script-workspace-page .workspace-heading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--app-content-gap);
|
||||
}
|
||||
.script-workspace-page .workspace-heading > * {
|
||||
margin-block: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user