feat: 引入 ECharts 统一图表并完善员工画像标签分页
后端优化员工行为画像服务和辅助函数,完善系统设置模型和 配置持久化,前端引入 ECharts 替换所有图表组件实现统一 渲染,新增员工画像标签分页器和数字员工工作记录组件,优 化工作台响应式布局和登录页过渡动画,完善预算中心和数字 员工页面样式细节。
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
flex-direction: column;
|
||||
border: 1px solid #dbe4ee;
|
||||
border-left: 3px solid var(--accent);
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
|
||||
animation: dashboardItemIn 520ms var(--ease) both;
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
|
||||
.budget-summary-card:hover {
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, .055);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
.summary-icon {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 7px;
|
||||
border-radius: 4px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: color-mix(in srgb, var(--accent) 10%, white);
|
||||
@@ -145,7 +145,7 @@
|
||||
|
||||
.budget-filter-bar {
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
@@ -180,8 +180,8 @@
|
||||
.budget-primary-btn {
|
||||
min-height: 40px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-active));
|
||||
border-radius: 4px;
|
||||
background: var(--theme-primary-active);
|
||||
color: #fff;
|
||||
padding: 0 18px;
|
||||
display: inline-flex;
|
||||
@@ -192,20 +192,19 @@
|
||||
font-weight: 800;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 10px 24px var(--theme-primary-shadow);
|
||||
transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
|
||||
box-shadow: none;
|
||||
transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
|
||||
}
|
||||
|
||||
.budget-primary-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 14px 28px rgba(var(--theme-primary-rgb), .24);
|
||||
filter: saturate(1.02);
|
||||
background: var(--theme-primary-hover);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.budget-ghost-btn {
|
||||
min-height: 38px;
|
||||
border: 1px solid #d7e0ea;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: #334155;
|
||||
padding: 0 14px;
|
||||
@@ -217,13 +216,13 @@
|
||||
font-weight: 750;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
|
||||
transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
|
||||
}
|
||||
|
||||
.budget-ghost-btn:hover {
|
||||
border-color: rgba(var(--theme-primary-rgb), .32);
|
||||
background: var(--theme-primary-soft);
|
||||
color: var(--theme-primary-active);
|
||||
box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
|
||||
}
|
||||
|
||||
.budget-work-grid {
|
||||
@@ -241,7 +240,7 @@
|
||||
.budget-chart-panel,
|
||||
.budget-alert-panel {
|
||||
border: 1px solid #e5eaf1;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -266,66 +265,25 @@
|
||||
}
|
||||
|
||||
.budget-table-search {
|
||||
position: relative;
|
||||
width: min(260px, 42%);
|
||||
min-width: 190px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.budget-table-search i {
|
||||
position: absolute;
|
||||
left: 11px;
|
||||
color: #94a3b8;
|
||||
font-size: 15px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.budget-table-search input {
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
border: 1px solid #dbe4ee;
|
||||
border-radius: 6px;
|
||||
padding: 0 11px 0 32px;
|
||||
background: #fff;
|
||||
color: #1f2937;
|
||||
font-size: 13px;
|
||||
font-weight: 650;
|
||||
outline: none;
|
||||
transition: border-color 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.budget-table-search input::placeholder {
|
||||
color: #94a3b8;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.budget-table-search input:focus {
|
||||
border-color: rgba(var(--theme-primary-rgb), .48);
|
||||
box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .1);
|
||||
}
|
||||
|
||||
.department-search {
|
||||
position: relative;
|
||||
.department-search-input {
|
||||
width: calc(100% - 28px);
|
||||
margin: 12px 14px 8px;
|
||||
}
|
||||
|
||||
.department-search i {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #9aa5b5;
|
||||
.budget-table-search :deep(.el-input__wrapper),
|
||||
.department-search-input :deep(.el-input__wrapper) {
|
||||
min-height: 34px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.department-search input {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 5px;
|
||||
padding: 0 12px 0 34px;
|
||||
background: #fff;
|
||||
color: #1f2937;
|
||||
.budget-table-search :deep(.el-input__prefix),
|
||||
.department-search-input :deep(.el-input__prefix) {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.department-list {
|
||||
@@ -334,73 +292,107 @@
|
||||
padding: 8px 12px 16px;
|
||||
}
|
||||
|
||||
.department-list button {
|
||||
.department-switch-btn {
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: #4b5563;
|
||||
padding: 0 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
margin-left: 0;
|
||||
transition:
|
||||
background 160ms ease,
|
||||
color 160ms ease;
|
||||
}
|
||||
|
||||
.department-list button.active {
|
||||
.department-switch-btn.active {
|
||||
background: var(--theme-primary-soft);
|
||||
color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.department-switch-btn + .department-switch-btn {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.budget-table-wrap {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.budget-table-panel table {
|
||||
width: 100%;
|
||||
min-width: 1460px;
|
||||
border-collapse: collapse;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.budget-table-panel th,
|
||||
.budget-table-panel td {
|
||||
padding: 13px 18px;
|
||||
border-bottom: 1px solid #edf1f6;
|
||||
border-right: 1px solid #edf1f6;
|
||||
.budget-data-table {
|
||||
width: 100%;
|
||||
min-width: 1540px;
|
||||
}
|
||||
|
||||
.budget-table-wrap :deep(.el-table) {
|
||||
--el-table-border-color: #edf1f6;
|
||||
--el-table-header-bg-color: #f8fafc;
|
||||
--el-table-row-hover-bg-color: var(--theme-primary-soft);
|
||||
--el-table-current-row-bg-color: var(--theme-primary-soft);
|
||||
color: #273142;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.budget-table-panel th:last-child,
|
||||
.budget-table-panel td:last-child {
|
||||
border-right: 0;
|
||||
.budget-table-wrap :deep(.el-table .el-scrollbar__bar.is-horizontal) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.budget-table-panel th {
|
||||
background: #fafbfd;
|
||||
.budget-table-wrap :deep(.el-table__inner-wrapper::before),
|
||||
.budget-table-wrap :deep(.el-table__border-left-patch) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.budget-table-wrap :deep(.el-table th.el-table__cell) {
|
||||
background: #f8fafc;
|
||||
color: #1f2937;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-table-wrap :deep(.el-table td.el-table__cell) {
|
||||
color: #273142;
|
||||
}
|
||||
|
||||
.budget-table-wrap :deep(.el-table .cell) {
|
||||
padding: 0 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.budget-table-wrap :deep(.el-table--border .el-table__cell) {
|
||||
border-right-color: #edf1f6;
|
||||
}
|
||||
|
||||
.budget-rate {
|
||||
width: 96px;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
width: 100%;
|
||||
max-width: 110px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.budget-rate span {
|
||||
flex: 0 0 auto;
|
||||
color: #273142;
|
||||
font-size: 13px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: right;
|
||||
min-width: 32px;
|
||||
}
|
||||
|
||||
.budget-rate div {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 6px;
|
||||
border-radius: 999px;
|
||||
border-radius: 4px;
|
||||
background: #e9edf3;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -423,26 +415,21 @@
|
||||
background: var(--danger);
|
||||
}
|
||||
|
||||
.budget-threshold-cell {
|
||||
padding-left: 12px !important;
|
||||
padding-right: 12px !important;
|
||||
}
|
||||
|
||||
.budget-threshold-badge {
|
||||
min-width: 58px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 4px 9px;
|
||||
border-radius: 999px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.budget-threshold-badge.reminder {
|
||||
background: rgba(37, 99, 235, .1);
|
||||
color: #2563eb;
|
||||
background: var(--theme-primary-soft);
|
||||
color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.budget-threshold-badge.alert {
|
||||
@@ -476,35 +463,37 @@
|
||||
gap: 6px;
|
||||
padding: 4px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
border-radius: 4px;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.budget-pager button {
|
||||
width: 32px;
|
||||
.budget-pager :deep(.btn-prev),
|
||||
.budget-pager :deep(.btn-next),
|
||||
.budget-pager :deep(.el-pager li) {
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: #334155;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
|
||||
transition: background 160ms ease, color 160ms ease;
|
||||
}
|
||||
|
||||
.budget-pager button:hover:not(.active):not(:disabled) {
|
||||
.budget-pager :deep(.btn-prev:hover:not(:disabled)),
|
||||
.budget-pager :deep(.btn-next:hover:not(:disabled)),
|
||||
.budget-pager :deep(.el-pager li:hover:not(.is-active)) {
|
||||
background: #fff;
|
||||
color: var(--theme-primary-active);
|
||||
box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
|
||||
}
|
||||
|
||||
.budget-pager button.active {
|
||||
.budget-pager :deep(.el-pager li.is-active) {
|
||||
background: var(--theme-primary-active);
|
||||
color: #fff;
|
||||
box-shadow: 0 8px 16px var(--theme-primary-shadow);
|
||||
}
|
||||
|
||||
.budget-pager button:disabled {
|
||||
.budget-pager :deep(.btn-prev:disabled),
|
||||
.budget-pager :deep(.btn-next:disabled) {
|
||||
color: #94a3b8;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
@@ -518,7 +507,7 @@
|
||||
gap: 9px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid #d7e0ea;
|
||||
border-radius: 10px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: #334155;
|
||||
font-size: 14px;
|
||||
@@ -539,14 +528,20 @@
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.budget-card-head button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
.budget-link-btn {
|
||||
height: 30px;
|
||||
padding: 0 8px;
|
||||
border-radius: 4px;
|
||||
color: var(--theme-primary-active);
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.budget-link-btn:hover {
|
||||
background: var(--theme-primary-soft);
|
||||
color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.budget-chart-legend {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -603,7 +598,7 @@
|
||||
.budget-alert-empty-icon {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--theme-primary-soft);
|
||||
@@ -641,7 +636,7 @@
|
||||
.budget-alert-row i {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 999px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.budget-alert-row i.danger {
|
||||
|
||||
Reference in New Issue
Block a user