AI初步修改整体布局风格以及样式

This commit is contained in:
2026-08-05 11:14:17 +08:00
parent 17505b5c22
commit f081928187
10 changed files with 726 additions and 278 deletions

View File

@@ -85,7 +85,7 @@ const statusLabel = (status) => statusMap[Number(status)] || "未知";
const handleExport = () => {
// 使用接口获取需要导出的数据
exportApi.exportdata(exportRange.value).then((res) => {
if (res.code === 200) {
const data = res.data || [];
exportToExcel(data, exportRange.value === "week" ? "本周" : "本月", exportRange.value);
@@ -98,7 +98,7 @@ const handleExport = () => {
};
const exportToExcel = (data, label,range) => {
const exportToExcel = (data, label, range) => {
data.sort((a, b) => {
const timeA = new Date(a.create_time).getTime();
const timeB = new Date(b.create_time).getTime();
@@ -226,17 +226,16 @@ const staffWithLockedTickets = computed(() => {
}
:deep(.el-card) {
background: #f5f6f8;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: 12px;
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.04),
0 4px 16px rgba(0, 0, 0, 0.035);
background: var(--color-surface);
border: 1px solid var(--color-border-light);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
}
:deep(.el-card__header) {
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
border-bottom: 1px solid var(--color-border-light);
padding: 18px 22px;
background: var(--color-surface-soft);
}
.card-header {
@@ -279,17 +278,27 @@ const staffWithLockedTickets = computed(() => {
.count-badge {
display: inline-flex;
align-items: center;
padding: 1px 10px;
gap: 6px;
padding: 2px 12px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
color: #15803d;
background: rgba(22, 163, 74, 0.1);
border: 1px solid rgba(22, 163, 74, 0.2);
background: #dcf5e6;
border: 1px solid rgba(22, 163, 74, 0.22);
white-space: nowrap;
line-height: 1.4;
}
.count-badge::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.inner-table {
width: calc(100% - 32px);
margin: 0 16px 16px 16px;
@@ -353,23 +362,23 @@ const staffWithLockedTickets = computed(() => {
}
.s0 {
color: #6b7280;
background: #f3f4f6;
color: #64748b;
background: #eef1f6;
}
.s1 {
color: #4f46e5;
background: #eef0ff;
background: #e7e9ff;
}
.s2 {
color: #16a34a;
background: #ecfdf3;
background: #dcf5e6;
}
.s3 {
color: #d97706;
background: #fffbeb;
background: #ffefd2;
}
/* 导出栏 */
@@ -378,10 +387,11 @@ const staffWithLockedTickets = computed(() => {
justify-content: space-between;
align-items: center;
margin-top: 20px;
padding: 14px 16px;
background: #fff;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 8px;
padding: 14px 18px;
background: var(--color-surface-soft);
border: 1px solid var(--color-border-light);
border-left: 4px solid var(--color-primary);
border-radius: 10px;
}
.export-label {