优化:完善查询指标口径、冻结布局与Excel导出

This commit is contained in:
2026-10-31 11:43:40 +08:00
parent 228d55da75
commit 9dbe85c65c
9 changed files with 301 additions and 72 deletions
+44
View File
@@ -42,3 +42,47 @@ body, .app-shell, .main-column { color: var(--ink); background: var(--background
.workspace-theme-dropdown .ant-dropdown-menu-item { border-radius: calc(var(--control-radius) - 1px); }
:root[data-workspace-theme='dark'] .panel,
:root[data-workspace-theme='dark'] .metric-strip { box-shadow: none; }
/* 查询表格统一阶段语义配色,亮片沿用原黑片蓝色,综合合格率沿用原亮片绿色。 */
.query-page {
--query-black: #20252b;
--query-bright: var(--blue-dark);
--query-combined: var(--teal);
--table-combined: color-mix(in srgb, var(--query-combined) 5%, var(--surface));
--table-bright-head: color-mix(in srgb, var(--query-bright) 10%, var(--surface));
--table-black-head: color-mix(in srgb, var(--query-black) 7%, var(--surface));
}
:root[data-workspace-theme='dark'] .query-page {
/* 深色底上的黑片使用中性浅灰,保留黑白体系及文字对比度。 */
--query-black: #d5d8de;
}
:root .query-page .metric-table-scroll :is(.stage-heading.black, .rate-cell.black, .rate-cell.black .table-value) { color: var(--query-black); }
:root .query-page .metric-table-scroll :is(.stage-heading.bright, .rate-cell.bright, .rate-cell.bright .table-value) { color: var(--query-bright); }
:root .query-page .metric-table-scroll :is(.combined-column, .combined-value, .combined-column .header-link) { color: var(--query-combined); }
:root .query-page .metric-table-scroll :is(.rate-cell, .combined-column) { font-weight: 600; }
:root .query-page .metric-table-scroll .stage-heading.black i { background: var(--query-black); }
:root .query-page .metric-table-scroll .stage-heading.bright i { background: var(--query-bright); }
:root .query-page .metric-table-scroll .ant-table-thead > tr:first-child > th:has(.stage-heading.black) { background: var(--table-black-head) !important; }
:root .query-page .metric-table-scroll .ant-table-thead > tr:first-child > th:has(.stage-heading.bright) { background: var(--table-bright-head) !important; }
:root .query-page .metric-card.black .metric-value { color: var(--query-black); }
:root .query-page .metric-card.bright .metric-value { color: var(--query-bright); }
:root .query-page .metric-card.primary .metric-value { color: var(--query-combined); }
:root .query-page .metric-card.primary { background: var(--table-combined); }
:root .query-page .metric-card.black .stage-dot { background: var(--query-black); }
:root .query-page .metric-card.bright .stage-dot { background: var(--query-bright); }
/* 右侧冻结区自行绘制起始边框,避免依赖被隐藏的默认阴影。 */
:root .query-page .metric-table-scroll .combined-column.ant-table-cell-fix {
border-inline-start: 1px solid var(--metric-grid) !important;
}
:root .query-page .metric-table-scroll th.combined-column.ant-table-cell-fix {
border-inline-start-color: var(--metric-grid-head) !important;
}
/* 与筛选栏组成连续的顶部冻结区,动态偏移由实际筛选栏高度计算。 */
:root .query-page > .metric-strip {
position: var(--query-metrics-position, static);
top: var(--query-metrics-top, auto);
z-index: 34;
box-shadow: 0 calc(-1 * var(--query-metrics-gap, 11px)) 0 var(--background);
}