feat(short-drama-agent-front): 同步拆解候选审核与安全提交

This commit is contained in:
GJ committed 2026-10-17 20:18:20 +08:00
1 parent cc27d463e0
commit 190333d4f9
26 files changed
+1495 -249

No files matched your search

@@ -153,10 +153,11 @@ const confirmationDescription = computed(
@dismiss="execution.dismiss"
/>
<!-- 以下是失败任务真实结果详情模块。 -->
<details v-if="failedResult" class="mt-3 text-xs">
<summary>失败任务结果详情</summary>
<NCollapse v-if="failedResult" class="mt-3 text-xs">
<NCollapseItem name="failed-result" title="失败任务结果详情">
<pre class="mt-2 whitespace-pre-wrap break-all">{{ JSON.stringify(failedResult, null, 2) }}</pre>
</details>
</NCollapseItem>
</NCollapse>
<FeedbackMessage v-if="error" :message="error" />
<ContextNotice
v-if="operation.label === '高级串联生产' && operation.error"
@@ -4,7 +4,7 @@ import FeedbackMessage from '../../../components/ui/FeedbackMessage.vue'
import ContextNotice from '../../../components/ui/ContextNotice.vue'
import { computed, ref } from 'vue'
import { NButton, NInput } from 'naive-ui'
import { NButton, NCollapse, NCollapseItem, NInput } from 'naive-ui'
import { errorMessage } from '../../../lib/http'
import ReadonlyInspection from '../../../components/ui/ReadonlyInspection.vue'
import { useQuery } from '../../../composables/useQuery'
@@ -217,10 +217,12 @@ const records = computed(() =>
{{ issue.description }}
</p>
</template>
<details class="mt-2">
<summary class="cursor-pointer text-muted">原始记录</summary>
<!-- 以下是原始校验结果的 Naive 折叠模块 -->
<NCollapse class="mt-2 text-muted">
<NCollapseItem name="raw-record" title="原始记录">
<pre class="whitespace-pre-wrap wrap-anywhere">{{ JSON.stringify(record.output, null, 2) }}</pre>
</details>
</NCollapseItem>
</NCollapse>
</article>
</ReadonlyInspection>
</template>
+3 -3
View File
@@ -6,7 +6,7 @@ import { usePolling } from '../../composables/usePolling'
import { useProjectContext } from '../projects/context'
import { currentEpisodeSource, getStoryboardSession, mergeDesignedShots } from '../storyboard/model'
import { storyboardApi } from '../storyboard/api'
import { breakdownSnapshot } from '../workflows/selectors'
import { formalBreakdownSnapshot } from '../workflows/selectors'
import { getOperation, runOperation } from '../workflows/operations'
import { useWorkflowExecution } from '../workflows/execution'
import { productionApi } from './api'
@@ -42,8 +42,8 @@ export function useProduction() {
const videoRepairAttempts = ref<number | null>(2)
/** 当前工作区的响应式状态或派生业务条件。 */
const videoInputMode = ref<VideoInputMode | 'all'>('all')
/** 当前工作区的响应式状态或派生业务条件。 */
const snapshot = computed(() => breakdownSnapshot(context.checkpoints.value))
/** 生产页只关联正式镜头和正式正文,未提交候选不能补入当前资产。 */
const snapshot = computed(() => formalBreakdownSnapshot(context.checkpoints.value))
/** 当前工作区的响应式状态或派生业务条件。 */
const sourceEpisodes = computed(
() => snapshot.value?.storyboardEpisodeShots ?? snapshot.value?.breakdownResult?.storyboardEpisodeShots ?? []