feat(short-drama-agent-front): 接入素材预览审核并完善创作流程

This commit is contained in:
GJ committed 2026-11-02 10:16:10 +08:00
1 parent f8b0fbb8ca
commit dc8bb17a23
66 files changed
+2864 -632

No files matched your search

@@ -10,6 +10,7 @@ import { useQuery } from '../../../composables/useQuery'
import { useProjectContext } from '../../projects/context'
import { workflowCheckpoints } from '../../workflows/selectors'
import DramaRewriteAction from './DramaRewriteAction.vue'
import DramaSystemReviewAction from './DramaSystemReviewAction.vue'
import ManualReviewIssueEditor from './ManualReviewIssueEditor.vue'
import ReviewUncertaintyCard from './ReviewUncertaintyCard.vue'
import { reviewCategoryOptions, suggestionForUncertainty, savedReviewDecisions } from './model'
@@ -87,12 +88,12 @@ const hasRewriteTargets = computed(
)
)
/** 当前有效预检只强调一个下一步入口,配色不代替服务端操作权限。 */
const primaryAction = computed<'confirm' | 'rewrite' | null>(() => {
const primaryAction = computed<'review' | 'rewrite' | null>(() => {
if (flow.locked.value || rewriteQuery.loading.value || rewriteQuery.error.value || latest.value?.passed !== false)
return null
if (currentRewrite.value?.status === 'blocked' || currentRewrite.value?.status === 'stale') return null
if (hasRewriteTargets.value) return currentRewrite.value?.ready === true ? 'rewrite' : null
return hasManualIssues.value ? 'confirm' : null
return hasManualIssues.value ? 'review' : null
})
/** 剧集范围同样读取真实改写预检,设定单独改写不伪造成剧集任务。 */
const rewriteEpisodeSummary = computed(() => {
@@ -117,9 +118,9 @@ const nextStep = computed(() => {
description: `${scope}已有改写依据。点击“改写预检”核对范围${hasManualIssues.value ? ';待确认问题仍可继续人工处理' : ''}。开始改写前会再次确认费用。`
}
: {
title: '请先核对审核问题',
title: '可由系统继续核查',
description:
'点击“人工确认”对照原文逐项处理。确认后如需改写,会显示“改写预检”入口;所有处理都需要你确认。'
'点击“系统重新核查”检查已保存正文,系统会优先复核疑点。只有仍无法确认的关键问题才需要人工处理。'
}
})
/** 正式正文的当前阅读集号。 */
@@ -283,10 +284,16 @@ function editorClosed() {
:disabled="flow.writing.value"
@refresh="flow.query.refresh"
/>
<DramaSystemReviewAction
v-if="latest?.passed === false"
:project-id="projectId"
:primary="primaryAction === 'review'"
:disabled="disabled || flow.locked.value"
@started="context.refresh"
/>
<NButton
v-if="hasManualIssues"
:class="{ 'workspace-action-button': primaryAction !== 'confirm' }"
:type="primaryAction === 'confirm' ? 'primary' : 'default'"
class="workspace-action-button"
aria-label="人工确认"
:disabled="!latest || latest.passed || flow.writing.value"
@click="flow.openEditor"
@@ -321,6 +328,15 @@ function editorClosed() {
reviewUncertain ? '审核状态待核对' : latest.passed ? '当前审核已通过' : '当前审核尚未通过'
}}</NTag>
</div>
<!-- 以下是系统已完成的逐项复核摘要,保留关键待核对数 -->
<p v-if="latest.automaticQualityResolution" class="text-sm text-muted">
<template v-if="latest.automaticQualityResolution.status === 'completed'">
系统复核了 {{ latest.automaticQualityResolution.candidateCount }} 项初审疑点, 其中
{{ latest.automaticQualityResolution.resolvedCount }} 项已有依据,
{{ latest.automaticQualityResolution.remainingCount }} 项仍需核对。
</template>
<template v-else>系统复核未完成,原审核疑点已保留。</template>
</p>
<!-- 以下是当前审核的下一步引导,仅在来源有效且读取完成后显示 -->
<ContextNotice
v-if="