fix(short-drama-agent-front): 修复B01分镜与历史失败状态
This commit is contained in:
1 parent
ecb0423153
commit
75e86f7486
4 files changed
+123
-31
No files matched your search
@@ -62,10 +62,7 @@ const derivedEpisodes = computed(() => {
|
||||
})
|
||||
/** 只改变旧记录的展示语义,不改写原始任务或审核结果。 */
|
||||
const historical = computed(
|
||||
() =>
|
||||
props.resultIsHistorical &&
|
||||
props.execution?.workflowName === 'create-drama' &&
|
||||
['completed', 'failed'].includes(props.execution.status)
|
||||
() => props.resultIsHistorical && ['completed', 'failed'].includes(props.execution?.status ?? '')
|
||||
)
|
||||
/** 动作诊断执行结束仅表示分析完成,不能套用素材生成的通过文案。 */
|
||||
const diagnosisTask = computed(() => props.execution?.workflowName === 'storyboard-legacy-action-diagnosis')
|
||||
@@ -102,6 +99,7 @@ const breakdownNeedsReview = computed(
|
||||
)
|
||||
/** 拆解卡片区分真实成功、待修复、运行中和结果待确认。 */
|
||||
const breakdownState = computed<'success' | 'error' | 'running' | 'unknown'>(() => {
|
||||
if (historical.value) return 'unknown'
|
||||
if (props.error || props.execution?.status === 'failed') return 'error'
|
||||
if (props.execution?.status === 'pending' || props.execution?.status === 'running') return 'running'
|
||||
if (props.execution?.status !== 'completed') return 'unknown'
|
||||
@@ -120,7 +118,8 @@ const progressLabel = computed(() =>
|
||||
const statusLabel = computed(() => {
|
||||
const labels = { pending: '等待开始', running: '执行中', completed: '已完成', failed: '失败' }
|
||||
if (!props.execution) return ''
|
||||
if (historical.value) return '历史执行记录'
|
||||
if (historical.value)
|
||||
return breakdownTask.value && props.execution.status === 'failed' ? '历史执行记录 · 失败' : '历史执行记录'
|
||||
if (derivedTask.value && ['completed', 'failed'].includes(props.execution.status))
|
||||
return props.execution.status === 'failed' || derivedNeedsReview.value
|
||||
? '执行结束 · 需核对部分结果'
|
||||
@@ -322,7 +321,7 @@ function isInputMode(value: unknown, inputMode: string): boolean {
|
||||
<!-- 以下是拆解任务的直接可见摘要,替代折叠详情和重复进度说明 -->
|
||||
<dl v-if="breakdownTask" class="mt-4 grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<div>
|
||||
<dt class="text-xs text-muted">当前阶段</dt>
|
||||
<dt class="text-xs text-muted">{{ historical ? '历史阶段' : '当前阶段' }}</dt>
|
||||
<dd class="mt-2 text-sm">{{ executionStageLabel(execution.stage) }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user