diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 9706ffde..cc504924 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -10,6 +10,14 @@
## 2026-11-20
+### 修复 · 风控看板自动封号历史
+
+- 复用运营看板折叠面板外框,展开时由分隔线连接标题和内容;保留默认展开、筛选、刷新、分页与解封行为。
+
+### 修复 · 控制台调用质量维度分布
+
+- 对齐维度页签、数据来源提示和表格间距;表格随内容增高,空态不滚动,仅数据列超宽时支持横向滚动。保留排序、下钻与前 50 项查询规则。
+
### 性能 · 开发预热与公共首屏分包
- **范围**:Vite 开发和生产配置、应用启动、首页和认证页的加载边界。
diff --git a/src/components/quality/QualityBreakdown.jsx b/src/components/quality/QualityBreakdown.jsx
index 5d2c87ae..0aa565d3 100644
--- a/src/components/quality/QualityBreakdown.jsx
+++ b/src/components/quality/QualityBreakdown.jsx
@@ -1,6 +1,7 @@
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { Select, Table, TabPane, Tabs, Tooltip } from '@/components/ui';
import { Layers } from 'lucide-react';
+import { useIsMobile } from '@/hooks/common/useIsMobile';
import {
ORDER_OPTIONS,
ORG_DIMS,
@@ -27,6 +28,8 @@ export const RateBar = ({ value }) => (
/** 维度分布:每行可点击,把该维度值加入筛选(下钻) */
const QualityBreakdown = ({ quality, t }) => {
const { scope, get, params, setFilters } = quality;
+ const isPlatform = scope !== 'org';
+ const isMobile = useIsMobile();
const dims = scope === 'org' ? ORG_DIMS : PLATFORM_DIMS;
const [dim, setDim] = useState('model');
const [orderBy, setOrderBy] = useState('total');
@@ -171,6 +174,9 @@ const QualityBreakdown = ({ quality, t }) => {
setFilters({ [dimSpec.filterKey]: row.key });
};
+ const rows = data?.rows || [];
+ const isPlatformEmpty = isPlatform && rows.length === 0;
+
return (
@@ -189,7 +195,9 @@ const QualityBreakdown = ({ quality, t }) => {
onChange={setOrderBy}
/>
-
+
{dims.map((d) => (
@@ -199,17 +207,37 @@ const QualityBreakdown = ({ quality, t }) => {
)}
{error ? (
- {qualityErrorText(t, error)}
+
+
{qualityErrorText(t, error)}
+
) : (
-
+
`${row.key}|${row.key2 || ''}`}
loading={loading}
- columns={columns}
- dataSource={data?.rows || []}
+ columns={
+ isPlatformEmpty
+ ? (isMobile ? columns.slice(0, 1) : columns).map(
+ (column) => ({
+ ...column,
+ width: undefined,
+ }),
+ )
+ : columns
+ }
+ dataSource={rows}
pagination={false}
- scroll={{ x: 960 }}
+ scroll={{ x: isPlatformEmpty ? undefined : 960 }}
onRow={(row) =>
canDrill(row)
? {
@@ -224,11 +252,11 @@ const QualityBreakdown = ({ quality, t }) => {
}
empty={{t('暂无数据')}
}
/>
- {data && data.total_rows > (data.rows || []).length && (
+ {data && data.total_rows > rows.length && (
{t('共 {{total}} 项,仅展示排序后的前 {{shown}} 项', {
total: data.total_rows,
- shown: (data.rows || []).length,
+ shown: rows.length,
})}
)}
diff --git a/src/components/quality/quality.css b/src/components/quality/quality.css
index fe522c10..fe6482da 100644
--- a/src/components/quality/quality.css
+++ b/src/components/quality/quality.css
@@ -63,6 +63,32 @@
padding: 16px;
}
+.quality-breakdown-body {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr);
+ gap: 12px;
+ padding-block-start: 12px;
+}
+
+.quality-breakdown-body .ant-tabs > .ant-tabs-nav {
+ margin-bottom: 0;
+}
+
+.quality-breakdown-result {
+ min-width: 0;
+}
+
+.quality-breakdown-empty .ant-table-thead > tr > th {
+ white-space: normal;
+ overflow-wrap: anywhere;
+}
+
+@media (max-width: 680px) {
+ .quality-breakdown-body .ant-tabs .ant-tabs-tab + .ant-tabs-tab {
+ margin-inline-start: 8px;
+ }
+}
+
/* 筛选栏 */
.quality-filter-grid {
display: grid;
diff --git a/src/pages/Analytics/index.jsx b/src/pages/Analytics/index.jsx
index fdbb6730..8af9dffa 100644
--- a/src/pages/Analytics/index.jsx
+++ b/src/pages/Analytics/index.jsx
@@ -506,12 +506,12 @@ const Analytics = () => {
/>
{/* 自动封号历史 */}
-
+
}
title={t('自动封号历史')}
isOpen={banLogsOpen}
- onToggle={() => setBanLogsOpen(!banLogsOpen)}
+ onToggle={() => setBanLogsOpen((open) => !open)}
t={t}
extra={
@@ -520,7 +520,7 @@ const Analytics = () => {
}
/>
-