feat(qa-ops): 重做四页布局与周报草稿导出
build / build (push) Successful in 1m3s

This commit is contained in:
姚章浩
2026-10-18 20:00:38 +08:00
parent 3e7fcce0b1
commit 93aabc8a81
18 changed files with 1037 additions and 157 deletions
+244
View File
@@ -0,0 +1,244 @@
.qa-dashboard-scroll {
min-height: 0;
overflow: auto;
flex: 1;
overscroll-behavior: contain;
}
.qa-dashboard {
min-width: 0;
display: flex;
flex-direction: column;
gap: 16px;
}
.qa-dashboard-metrics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
border: 1px solid var(--border-base);
background: var(--bg-panel);
}
.qa-dashboard-metrics > div {
padding: 18px 22px;
display: flex;
flex-direction: column;
gap: 8px;
border-right: 1px solid var(--border-base);
}
.qa-dashboard-metrics > div:last-child {
border-right: 0;
}
.qa-dashboard-metrics span {
color: var(--ink-mute);
font-size: 12px;
}
.qa-dashboard-metrics strong {
color: var(--ink-strong);
font-size: 30px;
font-weight: 650;
font-variant-numeric: tabular-nums;
letter-spacing: -0.04em;
}
.qa-dashboard-metrics small {
font-size: 11px;
color: var(--ink-mute);
}
.qa-dashboard-grid {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
gap: 14px;
}
.qa-chart {
min-width: 0;
padding: 18px 20px;
background: var(--bg-panel);
border: 1px solid var(--border-base);
}
.qa-chart-full {
grid-column: 1/-1;
}
.qa-chart h3 {
font-size: 14px;
font-weight: 600;
margin: 0 0 20px;
color: var(--ink-strong);
}
.qa-chart-bars {
display: grid;
gap: 13px;
}
.qa-chart-bar {
display: grid;
grid-template-columns: minmax(70px, 120px) minmax(0, 1fr) 40px;
gap: 12px;
align-items: center;
font-size: 12px;
}
.qa-chart-bar > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.qa-chart-bar b {
text-align: right;
font-weight: 500;
font-variant-numeric: tabular-nums;
}
.qa-chart-track {
height: 7px;
background: var(--bg-canvas, #f1f5f9);
overflow: hidden;
border-radius: 2px;
}
.qa-chart-track i {
display: block;
height: 100%;
background: #377bc9;
border-radius: 2px;
}
.qa-chart-empty {
padding: 28px 0;
text-align: center;
color: var(--ink-mute);
font-size: 12px;
}
.qa-daily-chart {
display: flex;
gap: clamp(6px, 1.5vw, 22px);
height: 180px;
align-items: stretch;
overflow-x: auto;
}
.qa-daily-chart > div {
flex: 1;
min-width: 24px;
display: flex;
flex-direction: column;
align-items: center;
gap: 7px;
font-size: 11px;
color: var(--ink-mute);
}
.qa-daily-chart > div > div {
height: 125px;
width: 100%;
display: flex;
align-items: flex-end;
border-bottom: 1px solid var(--border-base);
}
.qa-daily-chart i {
display: block;
width: 100%;
background: #377bc9;
border-radius: 2px 2px 0 0;
min-height: 0;
}
.qa-daily-chart b {
font-size: 11px;
color: var(--ink-strong);
font-variant-numeric: tabular-nums;
font-weight: 500;
}
.qa-dashboard-region-table {
margin-top: 18px;
overflow-x: auto;
}
.qa-dashboard-region-table table {
width: 100%;
font-size: 12px;
}
.qa-dashboard-region-table th,
.qa-dashboard-region-table td {
padding: 8px 10px;
text-align: left;
white-space: normal;
}
.qa-monthly-disclosure {
margin-top: 14px;
border-top: 1px solid var(--border-base);
padding: 14px 0;
}
.qa-monthly-disclosure > summary {
font-size: 13px;
cursor: pointer;
}
.qa-monthly-disclosure .qa-monthly {
min-height: 400px;
max-height: 650px;
margin-top: 12px;
overflow: auto;
}
@media (max-width: 900px) {
.qa-dashboard-grid {
grid-template-columns: minmax(0, 1fr);
}
.qa-chart-full {
grid-column: auto;
}
.qa-dashboard-metrics > div {
padding: 14px;
}
.qa-dashboard-metrics strong {
font-size: 25px;
}
}
@media (max-width: 560px) {
.qa-dashboard-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qa-dashboard-metrics > div:nth-child(2) {
border-right: 0;
}
.qa-dashboard-metrics > div:nth-child(-n + 2) {
border-bottom: 1px solid var(--border-base);
}
.qa-chart {
padding: 16px 12px;
}
.qa-chart-bar {
grid-template-columns: minmax(65px, 100px) minmax(0, 1fr) 30px;
}
}
.qa-weekly {
display: flex;
flex-direction: column;
gap: 14px;
min-height: 0;
flex: 1;
overflow: auto;
}
.qa-weekly-toolbar {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
padding: 16px;
background: var(--bg-panel);
border: 1px solid var(--border-base);
}
.qa-weekly-toolbar > div {
margin-right: auto;
}
.qa-weekly-toolbar h3 {
font-size: 15px;
margin: 0 0 6px;
}
.qa-weekly-toolbar span {
font-size: 12px;
color: var(--ink-mute);
}
.qa-weekly-badge {
padding: 4px 7px;
border: 1px solid var(--border-base);
}
.qa-weekly-preview {
padding: 20px;
background: var(--bg-panel);
border: 1px solid var(--border-base);
min-width: 0;
}
.qa-weekly-empty {
padding: 50px 20px;
text-align: center;
font-size: 13px;
color: var(--ink-mute);
}