美化dashboard页面样式
This commit is contained in:
parent
9dacad00bf
commit
38239a23cd
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<el-row>
|
<el-row :gutter="8">
|
||||||
<el-col :sm="12" :md="12">
|
<el-col :sm="12" :md="12">
|
||||||
<el-card shadow="hover" header-bordered>
|
<el-card shadow="hover" header-bordered>
|
||||||
<template #header>
|
<template #header>
|
||||||
|
|
@ -450,74 +450,227 @@ onUnmounted(() => {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.redTitle {
|
.redTitle {
|
||||||
color: #ee2416;
|
color: #ee2416;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
padding-left: 15px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redTitle::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: 4px;
|
||||||
|
height: 20px;
|
||||||
|
background: linear-gradient(to bottom, #ee2416, #ff6b6b);
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redTitle:hover {
|
||||||
|
color: #ff6b6b;
|
||||||
|
transform: translateX(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 卡片样式优化 */
|
||||||
|
:deep(.el-card) {
|
||||||
|
border: none;
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-card:hover) {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 8px 24px rgba(238, 36, 22, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-card__header) {
|
||||||
|
background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
|
||||||
|
border-bottom: 2px solid rgba(238, 36, 22, 0.1);
|
||||||
|
padding: 20px 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-card__body) {
|
||||||
|
padding: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 表格容器样式 */
|
/* 表格容器样式 */
|
||||||
.table-container {
|
.table-container {
|
||||||
margin-top: 20px;
|
margin-top: 28px;
|
||||||
background-color: #f5f5f5;
|
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
|
||||||
border-radius: 8px;
|
border-radius: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||||
|
border: 1px solid rgba(238, 36, 22, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 原生表格样式 */
|
/* 原生表格样式 */
|
||||||
.score-table {
|
.score-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 表头样式 */
|
/* 表头样式 */
|
||||||
.score-table thead {
|
.score-table thead {
|
||||||
background-color: #f7f6f6;
|
background: linear-gradient(135deg, #ee2416 0%, #ff6b6b 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.score-table th {
|
.score-table th {
|
||||||
/* color: #fff; */
|
color: #fff;
|
||||||
color: black;
|
font-weight: 600;
|
||||||
font-weight: bold;
|
padding: 14px 16px;
|
||||||
padding: 12px 16px;
|
text-align: center;
|
||||||
text-align: center;
|
border-bottom: none;
|
||||||
border-bottom: 2px solid #555;
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 表格行样式 */
|
/* 表格行样式 */
|
||||||
.score-table tbody tr {
|
.score-table tbody tr {
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.score-table td {
|
.score-table td {
|
||||||
padding: 12px 16px;
|
padding: 14px 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-bottom: 1px solid #e0e0e0;
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 当前行高亮样式 */
|
/* 当前行高亮样式 */
|
||||||
.current-row {
|
.current-row {
|
||||||
transform: scale(1.02);
|
background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
transform: scale(1.01);
|
||||||
position: relative;
|
box-shadow: 0 4px 16px rgba(238, 36, 22, 0.15);
|
||||||
z-index: 1;
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
border-left: 4px solid #ee2416;
|
||||||
}
|
}
|
||||||
|
|
||||||
.current-row td {
|
.current-row td {
|
||||||
font-weight: bold;
|
font-weight: 600;
|
||||||
color: #000;
|
color: #ee2416;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 鼠标悬停效果 */
|
/* 鼠标悬停效果 */
|
||||||
.score-table tbody tr:hover {
|
.score-table tbody tr:hover {
|
||||||
transform: translateY(-2px);
|
background: linear-gradient(135deg, #fff9f9 0%, #ffffff 100%);
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
transform: translateY(-2px) scale(1.005);
|
||||||
z-index: 2;
|
box-shadow: 0 6px 20px rgba(238, 36, 22, 0.12);
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 按钮样式优化 */
|
||||||
|
:deep(.el-button) {
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-button--primary) {
|
||||||
|
background: linear-gradient(135deg, #ee2416 0%, #ff6b6b 100%);
|
||||||
|
border: none;
|
||||||
|
box-shadow: 0 2px 8px rgba(238, 36, 22, 0.3);
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-button--primary:hover) {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 12px rgba(238, 36, 22, 0.4);
|
||||||
|
background: linear-gradient(135deg, #ff6b6b 0%, #ee2416 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-button--default) {
|
||||||
|
border-color: rgba(238, 36, 22, 0.3);
|
||||||
|
color: #ee2416;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-button--default:hover) {
|
||||||
|
background-color: rgba(238, 36, 22, 0.1);
|
||||||
|
border-color: #ee2416;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 对话框样式优化 */
|
||||||
|
:deep(.el-dialog) {
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-dialog__header) {
|
||||||
|
background: linear-gradient(135deg, #ee2416 0%, #ff6b6b 100%);
|
||||||
|
padding: 20px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-dialog__title) {
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-dialog__body) {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-dialog__headerbtn .el-dialog__close) {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 指标说明内容样式 */
|
||||||
|
:deep(.el-dialog__body > div) {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding: 16px;
|
||||||
|
background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
|
||||||
|
border-radius: 8px;
|
||||||
|
border-left: 4px solid #ee2416;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-dialog__body > div:hover) {
|
||||||
|
transform: translateX(5px);
|
||||||
|
box-shadow: 0 4px 12px rgba(238, 36, 22, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-dialog__body > div > div:first-child) {
|
||||||
|
color: #ee2416;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-dialog__body > div > div:last-child) {
|
||||||
|
color: #666;
|
||||||
|
line-height: 1.6;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 图表容器动画 */
|
||||||
|
:deep(.xt-chart) {
|
||||||
|
animation: fadeIn 0.6s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(10px);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in New Issue