fix(short-drama-agent-front): 修正分镜诊断状态与响应式布局
This commit is contained in:
1 parent
1da56e0d46
commit
b34dc02e39
23 files changed
+796
-273
No files matched your search
@@ -4,6 +4,7 @@ import { NFormItem } from 'naive-ui'
|
||||
import { integerRule, fieldRule } from '../../lib/form-rules'
|
||||
import WorkspacePage from '../../components/ui/WorkspacePage.vue'
|
||||
import WorkspaceExportButton from '../../components/ui/WorkspaceExportButton.vue'
|
||||
import WorkspaceActionTooltip from '../../components/ui/WorkspaceActionTooltip.vue'
|
||||
import { NScrollbar, NButton, NCheckbox, NCollapse, NCollapseItem, NInputNumber, NTab, NTable, NTabs } from 'naive-ui'
|
||||
import { computed, h, nextTick, onScopeDispose, ref, watch } from 'vue'
|
||||
import { useActionMessage } from '../../components/ui/useActionMessage'
|
||||
@@ -122,11 +123,12 @@ function openShotDiagnosis(location: DiagnosisLocation) {
|
||||
diagnosisPanel.value?.open(location)
|
||||
}
|
||||
/**
|
||||
* 诊断问题定位到分镜正文,必要时切换到对应剧集。
|
||||
* 诊断列表定位到分镜正文,只有实际问题才使用错误提示。
|
||||
* @param location 待定位的分镜坐标
|
||||
* @param problem 当前镜头是否有明确问题
|
||||
*/
|
||||
function locateDiagnosisShot(location: DiagnosisLocation) {
|
||||
void storyboardList.value?.locate(location)
|
||||
function locateDiagnosisShot(location: DiagnosisLocation, problem = false) {
|
||||
void storyboardList.value?.locate(location, { problem })
|
||||
}
|
||||
const backgroundExecution = useWorkflowExecution(projectId, 'breakdown')
|
||||
const recovery = computed(() => recoveryOptions(checkpoints.value))
|
||||
@@ -206,7 +208,7 @@ async function locateIssue(issue: ShotValidation['issues'][number]) {
|
||||
episodeNo: issue.episodeNo,
|
||||
beatNo: issue.beatNo,
|
||||
...(issue.shotNo ? { shotNo: issue.shotNo } : {})
|
||||
})
|
||||
}, { problem: true })
|
||||
}
|
||||
const taskStopped = computed(() => execution.value?.status === 'failed' || execution.value?.status === 'completed')
|
||||
/** 后续候选修订已替代旧任务结果时,只在明确的历史记录中展示回执。 */
|
||||
@@ -762,17 +764,18 @@ const rules = {
|
||||
<template #icon><CircleAlert :size="15" aria-hidden="true" /></template>
|
||||
</NButton>
|
||||
<!-- 以下是手机分类导航中的拆解设置入口,共用原有设置弹窗 -->
|
||||
<WorkspaceActionTooltip label="拆解设置">
|
||||
<NButton
|
||||
quaternary
|
||||
class="icon-button breakdown-mobile-tools"
|
||||
aria-label="拆解设置"
|
||||
title="拆解设置"
|
||||
aria-haspopup="dialog"
|
||||
:aria-expanded="toolsOpen"
|
||||
@click="toolsOpen = true"
|
||||
>
|
||||
<template #icon><Settings2 :size="15" /></template>
|
||||
<template #icon><Settings2 :size="15" aria-hidden="true" /></template>
|
||||
</NButton>
|
||||
</WorkspaceActionTooltip>
|
||||
<!-- 以下是拆解快照直接导出模块,与剧本创作共用图标和悬浮说明 -->
|
||||
<WorkspaceExportButton
|
||||
label="导出拆解结果"
|
||||
@@ -1101,11 +1104,16 @@ const rules = {
|
||||
.breakdown-workspace-page .breakdown-mobile-tools.n-button,
|
||||
.breakdown-workspace-page .breakdown-mobile-issues.n-button {
|
||||
display: inline-flex;
|
||||
width: 44px;
|
||||
min-width: 44px;
|
||||
height: 44px;
|
||||
width: var(--app-toolbar-icon-size, 44px);
|
||||
min-width: var(--app-toolbar-icon-size, 44px);
|
||||
height: var(--app-toolbar-icon-size, 44px);
|
||||
padding: 0;
|
||||
}
|
||||
/* 上下两组手机工具栏采用相同间距,保持两列图标对齐。 */
|
||||
.breakdown-workspace-page .breakdown-toolbar-actions {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
/* 分类导航与设置共用完整吸顶背景,正文不会从导航区域透出。 */
|
||||
.breakdown-workspace-page .breakdown-results-section > .result-toolbar {
|
||||
position: sticky;
|
||||
|
||||
Reference in new issue
Block a user