最新修改
This commit is contained in:
@@ -376,152 +376,96 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 样式部分保持不变 */
|
||||
.ticket-management {
|
||||
padding: 20px;
|
||||
background-color: #f8fafc;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.ticket-management { padding: 0; min-height: 0; background: none; }
|
||||
|
||||
.stats-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(150px, 1fr));
|
||||
gap: 16px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
transition: all 0.3s ease;
|
||||
border-bottom: 3px solid transparent;
|
||||
/* 禁止用户选中文字 */
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
/* 兼容 Safari */
|
||||
-moz-user-select: none;
|
||||
/* 兼容 Firefox */
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.total {
|
||||
border-bottom-color: #409eff;
|
||||
}
|
||||
|
||||
.total .stat-icon {
|
||||
color: #409eff;
|
||||
background: #ecf5ff;
|
||||
}
|
||||
|
||||
.pending {
|
||||
border-bottom-color: #909399;
|
||||
}
|
||||
|
||||
.pending .stat-icon {
|
||||
color: #909399;
|
||||
background: #f4f4f5;
|
||||
}
|
||||
|
||||
.ongoing {
|
||||
border-bottom-color: #e6a23c;
|
||||
}
|
||||
|
||||
.ongoing .stat-icon {
|
||||
color: #e6a23c;
|
||||
background: #fdf6ec;
|
||||
}
|
||||
|
||||
.success {
|
||||
border-bottom-color: #67c23a;
|
||||
}
|
||||
|
||||
.success .stat-icon {
|
||||
color: #67c23a;
|
||||
background: #f0f9eb;
|
||||
}
|
||||
|
||||
.finished {
|
||||
border-bottom-color: #009688;
|
||||
}
|
||||
|
||||
.finished .stat-icon {
|
||||
color: #009688;
|
||||
background: #e6f6f5;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 13px;
|
||||
color: #64748b;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
font-size: 24px;
|
||||
padding: 12px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.action-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
grid-template-columns: repeat(5, minmax(140px, 1fr));
|
||||
gap: 14px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.batch-bar {
|
||||
.stat-card {
|
||||
background: #f5f6f8;
|
||||
padding: 18px 18px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
border-left: 4px solid transparent;
|
||||
box-shadow:
|
||||
0 1px 3px rgba(0, 0, 0, 0.05),
|
||||
0 3px 10px rgba(0, 0, 0, 0.04);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 16px;
|
||||
margin-bottom: 12px;
|
||||
background: #fdf6ec;
|
||||
border: 1px solid #faecd8;
|
||||
border-radius: 8px;
|
||||
transition: box-shadow 0.2s, transform 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.batch-info {
|
||||
font-size: 13px;
|
||||
color: #606266;
|
||||
.total { border-left-color: #4f46e5; }
|
||||
.pending { border-left-color: #6b7280; }
|
||||
.ongoing { border-left-color: #d97706; }
|
||||
.success { border-left-color: #16a34a; }
|
||||
.finished { border-left-color: #0284c7; }
|
||||
|
||||
.stat-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow:
|
||||
0 3px 6px rgba(0, 0, 0, 0.07),
|
||||
0 10px 28px rgba(0, 0, 0, 0.07);
|
||||
}
|
||||
|
||||
.pagination-container {
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
.stat-icon {
|
||||
font-size: 20px;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 1400px) {
|
||||
.stats-container {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
.total .stat-icon { color: #4f46e5; background: rgba(79, 70, 229, 0.12); }
|
||||
.pending .stat-icon { color: #4b5563; background: rgba(75, 85, 99, 0.1); }
|
||||
.ongoing .stat-icon { color: #d97706; background: rgba(217, 119, 6, 0.12); }
|
||||
.success .stat-icon { color: #16a34a; background: rgba(22, 163, 74, 0.12); }
|
||||
.finished .stat-icon { color: #0284c7; background: rgba(2, 132, 199, 0.12); }
|
||||
|
||||
.stat-label {
|
||||
font-size: 12px;
|
||||
color: #5b5d68;
|
||||
margin-bottom: 5px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.stats-container {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
.stat-value {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
color: #1c1c28;
|
||||
font-family: var(--font-mono);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
background: #f5f6f8;
|
||||
padding: 22px 24px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
box-shadow:
|
||||
0 1px 3px rgba(0, 0, 0, 0.05),
|
||||
0 6px 20px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
|
||||
|
||||
.batch-bar {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 10px 16px; margin-bottom: 14px;
|
||||
background: rgba(217, 119, 6, 0.1);
|
||||
border: 1px solid rgba(217, 119, 6, 0.3);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.batch-info { font-size: 13px; color: #5b5d68; }
|
||||
.batch-info strong { color: #92400e; font-weight: 600; }
|
||||
|
||||
.pagination-container { margin-top: 18px; display: flex; justify-content: flex-end; }
|
||||
|
||||
@media (max-width: 1400px) { .stats-container { grid-template-columns: repeat(3, 1fr); } }
|
||||
@media (max-width: 768px) { .stats-container { grid-template-columns: 1fr 1fr; } }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user