diff --git a/admin/src/views/config/center/CredsPane.vue b/admin/src/views/config/center/CredsPane.vue index 17e51b6..74a5733 100644 --- a/admin/src/views/config/center/CredsPane.vue +++ b/admin/src/views/config/center/CredsPane.vue @@ -19,7 +19,7 @@ 前缀被其他租户占用的 400 detail 内联展示 - Task 5 视觉基线:三卡套 ConfigCard(图标/副标题/信息条/footer/danger 行);footer-left「出问题?回滚 →」emit navigate('versions')(父层 - 接线在后续任务);表单区双列 grid + index.vue 已接线);表单区双列 grid --> - - - - - @@ -515,6 +524,7 @@ uploadBrandAvatar, type BrandGroupValue } from '@/api/config' + import ConfigCard from './ConfigCard.vue' import PromptsPane from './PromptsPane.vue' import WallPane from './WallPane.vue' import CredsPane from './CredsPane.vue' @@ -575,12 +585,6 @@ sub: '改坏了?这里一键回滚' } - /** 全部导航项扁平表(activeGroupLabel / 查找用) */ - const ALL_NAV_ITEMS: NavItem[] = [ - ...NAV_SECTIONS.flatMap((s) => s.items), - VERSIONS_NAV - ] - /** 通用 JSON 组(终审 I-1:contact/engine/misc 走 JsonGroupPane 一份实现) */ const JSON_GROUPS = new Set(['contact', 'engine', 'misc']) @@ -597,10 +601,6 @@ activeGroup.value = index as GroupKey } - const activeGroupLabel = computed( - () => ALL_NAV_ITEMS.find((i) => i.key === activeGroup.value)?.label ?? '' - ) - // ---- 租户上下文(超管可切换;租户管理员固定自己——useTenantOptions 收拢) ---------------- const authStore = useAuthStore() @@ -1056,32 +1056,23 @@ .form-card { flex: 1; min-width: 0; + } - .card-header { - display: flex; - align-items: baseline; - justify-content: space-between; - gap: 12px; + // 表单区双列 grid(span-2 = 独占整行:头像/多选/长文本)——与 CredsPane 同款规则 + .form-grid { + display: grid; + grid-template-columns: 1fr 1fr; + column-gap: 16px; - .card-title { - font-weight: 600; - } - - .card-sub { - font-size: 12px; - color: var(--art-gray-400); - } - - // 头部右列:副标题 + 重置出厂小按钮(Task 7d) - .header-side { - display: flex; - align-items: center; - gap: 10px; - flex-shrink: 0; - } + .span-2 { + grid-column: span 2; } } + .comment-input { + width: 220px; + } + .color-row { display: flex; gap: 8px; @@ -1152,12 +1143,6 @@ font-family: ui-monospace, SFMono-Regular, Consolas, monospace; } - .save-bar { - display: flex; - justify-content: flex-end; - margin-top: 8px; - } - // ---- 右列:预览 + 嵌入 -------------------------------------------------------------- .side-col { @@ -1179,6 +1164,13 @@ font-weight: 600; } + // 预览卡标题下方副标题(Task 6——观感同 ConfigCard 的 cc-subtitle) + .card-subtitle { + margin: 2px 0 0; + font-size: 12px; + color: var(--art-gray-500, var(--el-text-color-secondary)); + } + .card-sub { font-size: 12px; color: var(--art-gray-400); @@ -1373,10 +1365,6 @@ color: var(--art-gray-400); } - .placeholder-card { - flex: 1; - } - // ---- 提示词/词表 pane 容器(Task 7b) ------------------------------------------------ .group-pane {