feat: 同步质量校验修复并精简工作台操作

This commit is contained in:
GouJ committed 2026-09-03 19:38:57 +08:00
1 parent 771b66cafc
commit 13bb6dc83b
47 files changed
+2244 -260

No files matched your search

+19 -8
View File
@@ -1,8 +1,9 @@
<script setup lang="ts">
import WorkspacePage from '../../components/ui/WorkspacePage.vue'
import ActionMenu from '../../components/ui/ActionMenu.vue'
import { NScrollbar, NAlert, NButton, NCheckbox, NInputNumber, NProgress, NTab, NTable, NTabs, NTag } from 'naive-ui'
import { computed, onScopeDispose, ref, watch } from 'vue'
import { Download, Layers, LoaderCircle, ArrowRight } from '@lucide/vue'
import { Layers, LoaderCircle, ArrowRight } from '@lucide/vue'
import { EmptyState, StatusBadge, WorkspaceTools } from '../../components/ui'
import { useProjectContext } from '../projects/context'
import { breakdownApi } from './api'
@@ -25,6 +26,7 @@ const previewBusy = ref(false)
const previewError = ref('')
const tab = ref('character')
const toolsOpen = ref(false)
const showHistory = ref(false)
const moduleOptions: { value: BreakdownModule; label: string; description: string }[] = [
{ value: 'character', label: '人物', description: '人物身份、外观与形态' },
{ value: 'scene', label: '场景', description: '故事空间与环境特征' },
@@ -398,14 +400,18 @@ function exportResult() {
><NTab name="storyboard">分镜</NTab><NTab name="tasks">任务明细</NTab>
<template #suffix
><div class="tabs-toolbar-actions">
<NButton :disabled="!snapshot" @click="exportResult" text size="small"
><Download :size="14" />导出 JSON
</NButton>
</div></template
>
<ActionMenu
label="拆解更多操作"
:items="[
{ key: 'history', label: showHistory ? '收起执行记录' : '执行记录' },
{ key: 'export', label: '导出 JSON', disabled: !snapshot }
]"
@select="$event === 'history' ? (showHistory = !showHistory) : exportResult()"
/></div
></template>
</NTabs>
</div>
<div class="content-with-history panel">
<div class="content-with-history panel" :class="{ 'history-hidden': !showHistory }">
<main class="min-w-0">
<!-- 所有结果标签共用有界的内容滚动;切换标签回到顶部,不继承上一列表的位置。 -->
<NScrollbar :key="tab" class="panel-scroll breakdown-results-scroll">
@@ -480,7 +486,12 @@ function exportResult() {
</div>
</NScrollbar>
</main>
<HistoryPanel :project-id="project?.id" :checkpoints="checkpoints" workflow="breakdown" />
<HistoryPanel
v-if="showHistory"
:project-id="project?.id"
:checkpoints="checkpoints"
workflow="breakdown"
/>
</div>
</section>
</template>