feat: 优化后台界面与报表样式

This commit is contained in:
wchino
2026-06-11 15:32:22 +08:00
parent 064ba727e0
commit 9b10f21663
37 changed files with 5746 additions and 610 deletions

View File

@@ -0,0 +1,276 @@
.admin-report-page {
color: var(--el-text-color-primary);
font-size: 14px;
font-variant-numeric: tabular-nums;
}
.admin-report-tabs {
display: flex;
width: fit-content;
max-width: 100%;
gap: 4px;
margin-bottom: var(--ba-main-space);
padding: 4px;
overflow-x: auto;
border: 1px solid var(--ba-border-color-soft);
border-radius: var(--ba-radius-panel);
background: var(--ba-bg-color-overlay);
box-shadow: var(--ba-shadow-card);
button {
min-height: 34px;
padding: 0 18px;
border: 0;
border-radius: var(--ba-radius-control);
background: transparent;
color: var(--el-text-color-regular);
font-weight: 600;
white-space: nowrap;
cursor: pointer;
transition:
color 0.18s ease,
background-color 0.18s ease,
box-shadow 0.18s ease;
&:hover {
background: var(--el-color-primary-light-9);
color: var(--el-color-primary);
}
&.active {
background: var(--el-color-primary);
color: var(--el-color-white);
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}
}
}
.admin-report-filter {
margin-bottom: var(--ba-main-space);
overflow: hidden;
border: 1px solid var(--ba-border-color-soft);
border-radius: var(--ba-radius-panel);
background: var(--ba-bg-color-overlay);
box-shadow: var(--ba-shadow-card);
}
.admin-report-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 46px;
padding: 13px 16px;
border-bottom: 1px solid var(--ba-border-color-soft);
background: var(--ba-bg-color-soft);
color: var(--el-text-color-primary);
font-weight: 700;
strong {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 10px;
border-radius: 999px;
background: var(--el-color-success-light-9);
color: var(--el-color-success);
font-size: 12px;
font-weight: 700;
}
}
.admin-report-filter-content {
padding: 16px;
background: var(--ba-bg-color-overlay);
}
.admin-report-filter-content .filter-item,
.admin-report-filter-content .date-fields {
display: flex;
align-items: center;
gap: 8px;
}
.admin-report-filter-content label {
color: var(--el-text-color-secondary);
font-weight: 600;
white-space: nowrap;
}
.admin-report-filter-content .el-date-editor,
.admin-report-filter-content .el-input,
.admin-report-filter-content .el-select {
width: 200px;
}
.admin-report-actions {
display: flex;
align-items: center;
gap: 8px;
.el-button {
min-width: 92px;
margin: 0;
}
}
.admin-report-summary {
margin: 0 0 10px;
color: var(--el-text-color-regular);
font-size: 13px;
strong {
color: var(--el-text-color-primary);
font-weight: 700;
}
}
.admin-report-table-wrap {
overflow-x: auto;
border: 1px solid var(--ba-border-color-soft);
border-radius: var(--ba-radius-panel);
background: var(--ba-bg-color-overlay);
box-shadow: var(--ba-shadow-card);
}
.admin-report-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
color: var(--el-text-color-regular);
font-size: 13px;
line-height: 1.45;
font-variant-numeric: tabular-nums;
th,
td {
height: 42px;
padding: 10px 12px;
border-right: 1px solid var(--ba-border-color-soft);
border-bottom: 1px solid var(--ba-border-color-soft);
background: var(--ba-bg-color-overlay);
text-align: left;
vertical-align: middle;
white-space: nowrap;
}
th:last-child,
td:last-child {
border-right: 0;
}
thead th {
border-bottom-color: var(--ba-border-color-strong);
background: var(--ba-bg-color-soft);
color: var(--el-text-color-primary);
font-weight: 700;
small {
display: block;
margin-top: 2px;
color: var(--el-text-color-secondary);
font-size: 11px;
font-weight: 500;
}
}
tbody tr:last-child td {
border-bottom: 0;
}
tbody tr:hover td {
background: var(--el-color-primary-light-9);
}
.date-cell,
.reward-cell {
background: var(--ba-bg-color-soft);
}
.deposit-value,
.positive-value {
color: var(--el-color-success);
font-weight: 700;
}
.withdraw-value,
.negative-value {
color: var(--el-color-danger);
font-weight: 700;
}
.unclaim-value {
color: var(--el-color-primary);
font-weight: 700;
}
.empty-row {
height: 150px;
color: var(--el-text-color-secondary);
text-align: center;
}
}
.admin-report-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 12px;
padding: 12px 16px;
border: 1px solid var(--ba-border-color-soft);
border-radius: var(--ba-radius-panel);
background: var(--ba-bg-color-overlay);
box-shadow: var(--ba-shadow-card);
color: var(--el-text-color-secondary);
font-size: 13px;
}
.admin-report-page-size {
display: flex;
align-items: center;
gap: 8px;
.el-select {
width: 96px;
}
}
html.dark {
.admin-report-heading strong {
background: rgba(22, 138, 91, 0.18);
}
}
@media (max-width: 768px) {
.admin-report-tabs {
width: 100%;
}
.admin-report-filter-content {
padding: 12px;
}
.admin-report-filter-content .filter-item,
.admin-report-filter-content .date-fields {
align-items: flex-start;
flex-direction: column;
}
.admin-report-filter-content .el-date-editor,
.admin-report-filter-content .el-input,
.admin-report-filter-content .el-select {
width: 100%;
}
.admin-report-actions,
.admin-report-footer {
align-items: stretch;
flex-direction: column;
}
.admin-report-actions .el-button,
.admin-report-footer .el-pagination {
width: 100%;
}
}