后端新增预算费控服务和报销单审批流模块,引入申请人费用画像 算法,优化知识库 RAG 运行时和同步逻辑,完善报销单工作流常 量和明细同步,更新差旅报销规则电子表格,前端新增预算分析 组件和数字员工模型,完善审批对话框和洞察面板交互,优化侧 边栏和顶栏样式,补充单元测试。
759 lines
12 KiB
CSS
759 lines
12 KiB
CSS
.logs-view {
|
|
display: grid;
|
|
grid-template-rows: minmax(0, 1fr);
|
|
height: 100%;
|
|
min-height: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.panel {
|
|
background: rgba(255, 255, 255, 0.98);
|
|
border: 1px solid #dfe7ef;
|
|
border-radius: 10px;
|
|
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
|
|
}
|
|
|
|
.logs-empty,
|
|
.logs-console {
|
|
padding: 16px 18px;
|
|
}
|
|
|
|
.logs-empty h2,
|
|
.panel-heading h3,
|
|
.event-summary h4,
|
|
.section-head h4,
|
|
.inspector-empty h4 {
|
|
margin: 0;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.logs-empty p,
|
|
.panel-heading p,
|
|
.event-summary p,
|
|
.section-head p,
|
|
.inspector-empty p {
|
|
margin: 8px 0 0;
|
|
color: #64748b;
|
|
}
|
|
|
|
.logs-console {
|
|
display: grid;
|
|
grid-template-rows: auto auto auto minmax(0, 1fr);
|
|
gap: 14px;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.logs-console.without-toolbar {
|
|
grid-template-rows: auto auto minmax(0, 1fr);
|
|
}
|
|
|
|
.console-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #e7edf4;
|
|
}
|
|
|
|
.console-tabs button {
|
|
position: relative;
|
|
padding: 0 0 10px;
|
|
border: none;
|
|
background: transparent;
|
|
color: #64748b;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.console-tabs button:hover,
|
|
.console-tabs button.active {
|
|
color: var(--theme-primary-active);
|
|
}
|
|
|
|
.console-tabs button.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: -11px;
|
|
height: 2px;
|
|
border-radius: 999px;
|
|
background: var(--theme-primary);
|
|
}
|
|
|
|
.console-toolbar {
|
|
--logs-filter-control-height: 38px;
|
|
display: grid;
|
|
grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(138px, 0.7fr)) auto;
|
|
gap: 10px;
|
|
align-items: end;
|
|
}
|
|
|
|
.filter-field {
|
|
display: grid;
|
|
gap: 5px;
|
|
}
|
|
|
|
.filter-field span {
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.field-input {
|
|
min-height: var(--logs-filter-control-height);
|
|
border: 1px solid #d8e1eb;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
}
|
|
|
|
.field-input {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.field-input .pi {
|
|
color: #94a3b8;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.field-input input {
|
|
width: 100%;
|
|
border: none;
|
|
background: transparent;
|
|
color: #0f172a;
|
|
font-size: 13px;
|
|
outline: none;
|
|
}
|
|
|
|
.console-toolbar :deep(.enterprise-select) {
|
|
width: 100%;
|
|
}
|
|
|
|
.console-toolbar :deep(.el-select__wrapper) {
|
|
min-height: var(--logs-filter-control-height);
|
|
height: var(--logs-filter-control-height);
|
|
padding: 0 12px;
|
|
border-radius: 4px;
|
|
box-shadow: 0 0 0 1px #d8e1eb inset;
|
|
}
|
|
|
|
.console-toolbar :deep(.el-select__wrapper:hover) {
|
|
box-shadow: 0 0 0 1px #b8c2d2 inset;
|
|
}
|
|
|
|
.console-toolbar :deep(.el-select__wrapper.is-focused) {
|
|
box-shadow:
|
|
0 0 0 1px var(--theme-primary) inset,
|
|
0 0 0 3px var(--theme-focus-ring);
|
|
}
|
|
|
|
.console-toolbar :deep(.el-select__placeholder),
|
|
.console-toolbar :deep(.el-select__selected-item) {
|
|
font-size: 13px;
|
|
line-height: var(--logs-filter-control-height);
|
|
}
|
|
|
|
.toolbar-btn {
|
|
min-height: var(--logs-filter-control-height);
|
|
padding: 0 14px;
|
|
border-radius: 4px;
|
|
border: 1px solid #d8e1eb;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toolbar-btn.primary {
|
|
background: var(--theme-gradient-primary);
|
|
border-color: transparent;
|
|
color: #fff;
|
|
}
|
|
|
|
.toolbar-btn.ghost {
|
|
background: #f8fafc;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.toolbar-btn:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.hint {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
color: #64748b;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.console-layout {
|
|
display: grid;
|
|
grid-template-rows: minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.list-panel,
|
|
.analytics-card {
|
|
display: grid;
|
|
gap: 12px;
|
|
min-height: 0;
|
|
padding: 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid #e5edf5;
|
|
background: #fff;
|
|
}
|
|
|
|
.list-panel {
|
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
}
|
|
|
|
.panel-heading {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.panel-refresh {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.panel-heading h3 {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.panel-heading p {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.table-shell {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
border: 1px solid #e5edf5;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
}
|
|
|
|
.log-table {
|
|
width: 100%;
|
|
min-width: 980px;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.log-table thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid #e5edf5;
|
|
background: #f8fbfd;
|
|
color: #475569;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.log-table tbody tr {
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.log-table tbody tr:hover {
|
|
background: rgba(var(--theme-primary-rgb), 0.04);
|
|
}
|
|
|
|
.log-table tbody tr.active {
|
|
background: rgba(var(--theme-primary-rgb), 0.08);
|
|
box-shadow: inset 3px 0 0 var(--theme-primary);
|
|
}
|
|
|
|
.log-table tbody td {
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid #eef3f8;
|
|
color: #0f172a;
|
|
font-size: 13px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.summary-cell {
|
|
min-width: 220px;
|
|
text-align: left;
|
|
}
|
|
|
|
.summary-cell strong,
|
|
.file-cell strong {
|
|
display: block;
|
|
color: #0f172a;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.summary-cell span {
|
|
display: block;
|
|
margin-top: 4px;
|
|
color: #64748b;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.summary-meta {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: #94a3b8;
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.trace-cell {
|
|
max-width: 180px;
|
|
color: #2563eb;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.status-stack {
|
|
display: grid;
|
|
gap: 5px;
|
|
align-content: start;
|
|
justify-items: center;
|
|
}
|
|
|
|
.status-note {
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.system-table .summary-cell {
|
|
min-width: 260px;
|
|
}
|
|
|
|
.system-table .trace-cell {
|
|
min-width: 148px;
|
|
}
|
|
|
|
.table-foot {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
align-items: center;
|
|
gap: 16px;
|
|
color: #64748b;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.pager {
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 4px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.pager button {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 0;
|
|
border-radius: 9px;
|
|
background: transparent;
|
|
color: #334155;
|
|
font-size: 14px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.page-ellipsis {
|
|
width: 24px;
|
|
height: 32px;
|
|
display: inline-grid;
|
|
place-items: center;
|
|
color: #94a3b8;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.pager button:hover:not(.active):not(:disabled) {
|
|
background: #fff;
|
|
color: var(--theme-primary-active);
|
|
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
|
|
}
|
|
|
|
.pager button.active {
|
|
background: var(--theme-primary);
|
|
color: #fff;
|
|
box-shadow: 0 8px 16px var(--theme-primary-shadow);
|
|
}
|
|
|
|
.page-nav:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.page-size-select {
|
|
width: 112px;
|
|
justify-self: end;
|
|
}
|
|
|
|
.analytics-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.analytics-card {
|
|
align-content: start;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.analytics-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.analytics-head h3 {
|
|
margin: 0;
|
|
color: #0f172a;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.analytics-head p {
|
|
margin: 4px 0 0;
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.analytics-head > span {
|
|
display: inline-flex;
|
|
min-height: 24px;
|
|
align-items: center;
|
|
padding: 0 9px;
|
|
border-radius: 999px;
|
|
background: var(--theme-primary-light-9);
|
|
color: var(--theme-primary-active);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.trend-card {
|
|
gap: 8px;
|
|
}
|
|
|
|
.trend-card :deep(.log-trend-chart) {
|
|
height: 118px;
|
|
}
|
|
|
|
.trend-card :deep(.chart-legend) {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.distribution-card {
|
|
gap: 8px;
|
|
}
|
|
|
|
.distribution-card :deep(.donut-chart) {
|
|
min-height: 118px;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.distribution-card :deep(.donut-body) {
|
|
width: 108px;
|
|
height: 96px;
|
|
flex: 0 0 108px;
|
|
margin: 0;
|
|
}
|
|
|
|
.distribution-card :deep(.donut-legend) {
|
|
flex: 1;
|
|
grid-template-columns: 1fr;
|
|
gap: 5px;
|
|
}
|
|
|
|
.trend-plot {
|
|
height: 102px;
|
|
padding: 8px 2px 0;
|
|
border-top: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.trend-plot svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: visible;
|
|
}
|
|
|
|
.trend-area {
|
|
fill: url(#logsTrendFill);
|
|
}
|
|
|
|
.trend-line {
|
|
fill: none;
|
|
stroke-width: 2.4;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.trend-line.total {
|
|
stroke: var(--theme-primary);
|
|
}
|
|
|
|
.trend-line.failed {
|
|
stroke: #ef4444;
|
|
}
|
|
|
|
.trend-axis {
|
|
display: grid;
|
|
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
color: #94a3b8;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.trend-axis span {
|
|
text-align: center;
|
|
}
|
|
|
|
.distribution-body {
|
|
display: grid;
|
|
grid-template-columns: 104px minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.distribution-donut {
|
|
position: relative;
|
|
width: 104px;
|
|
height: 104px;
|
|
display: grid;
|
|
place-content: center;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.distribution-donut::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 18px;
|
|
border-radius: inherit;
|
|
background: #fff;
|
|
}
|
|
|
|
.distribution-donut strong,
|
|
.distribution-donut span {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
.distribution-donut strong {
|
|
color: #0f172a;
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.distribution-donut span {
|
|
margin-top: 3px;
|
|
color: #64748b;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.distribution-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.distribution-list div {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.distribution-list i {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.distribution-list span {
|
|
color: #475569;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.distribution-list strong {
|
|
color: #0f172a;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.status-pill,
|
|
.level-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3px 8px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.status-pill.success {
|
|
background: rgba(var(--success-rgb), 0.12);
|
|
border-color: rgba(var(--success-rgb), 0.2);
|
|
color: var(--success-active);
|
|
}
|
|
|
|
.status-pill.warning {
|
|
background: rgba(245, 158, 11, 0.14);
|
|
border-color: rgba(245, 158, 11, 0.25);
|
|
color: #b45309;
|
|
}
|
|
|
|
.status-pill.danger {
|
|
background: rgba(239, 68, 68, 0.14);
|
|
border-color: rgba(239, 68, 68, 0.25);
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.status-pill.muted {
|
|
background: rgba(148, 163, 184, 0.14);
|
|
border-color: rgba(148, 163, 184, 0.25);
|
|
color: #475569;
|
|
}
|
|
|
|
.status-pill.info,
|
|
.level-pill.info {
|
|
background: rgba(37, 99, 235, 0.12);
|
|
border-color: rgba(37, 99, 235, 0.25);
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.level-pill.warning {
|
|
background: rgba(245, 158, 11, 0.14);
|
|
border-color: rgba(245, 158, 11, 0.25);
|
|
color: #b45309;
|
|
}
|
|
|
|
.level-pill.danger {
|
|
background: rgba(239, 68, 68, 0.14);
|
|
border-color: rgba(239, 68, 68, 0.25);
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.level-pill.muted {
|
|
background: rgba(148, 163, 184, 0.14);
|
|
border-color: rgba(148, 163, 184, 0.25);
|
|
color: #475569;
|
|
}
|
|
|
|
.detail-alert {
|
|
margin-top: 14px;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.detail-alert.danger {
|
|
background: rgba(254, 226, 226, 0.9);
|
|
border: 1px solid rgba(248, 113, 113, 0.26);
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.inline-empty,
|
|
.inspector-empty {
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
background: #f8fafc;
|
|
color: #64748b;
|
|
}
|
|
|
|
.inline-empty {
|
|
text-align: center;
|
|
}
|
|
|
|
.inline-empty.is-loading {
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.inline-empty.is-loading > .table-loading {
|
|
min-height: 220px;
|
|
}
|
|
|
|
.inspector-empty {
|
|
display: grid;
|
|
align-content: center;
|
|
justify-items: center;
|
|
min-height: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
@media (max-width: 1380px) {
|
|
.analytics-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.logs-view {
|
|
padding: 18px 16px 24px;
|
|
}
|
|
|
|
.logs-empty,
|
|
.logs-console {
|
|
padding: 18px;
|
|
}
|
|
|
|
.console-toolbar {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.table-foot {
|
|
grid-template-columns: 1fr;
|
|
justify-items: stretch;
|
|
}
|
|
|
|
.pager,
|
|
.page-size-select {
|
|
justify-self: stretch;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.console-tabs {
|
|
gap: 14px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.log-table thead th,
|
|
.log-table tbody td {
|
|
padding: 12px 10px;
|
|
}
|
|
|
|
.summary-cell {
|
|
min-width: 220px;
|
|
}
|
|
|
|
.trace-cell {
|
|
min-width: 140px;
|
|
}
|
|
|
|
}
|