feat: 新增数字员工管理页面与工作台首页重构

后端优化 agent 资产种子初始化和常量配置,前端新增数字员工
视图和调度对话框组件,重构个人工作台首页布局和洞察面板,
完善审计页面数字员工详情和运行时模型,优化侧边栏导航和图
标配置,新增工作台摘要和工作台数据模块,补充单元测试。
This commit is contained in:
caoxiaozhu
2026-05-28 09:30:34 +08:00
parent d4d5d40569
commit 04cd6d0f81
38 changed files with 3413 additions and 1301 deletions

View File

@@ -1810,6 +1810,40 @@
background: #ffffff;
}
.digital-worker-source-card {
min-height: 0;
}
.digital-worker-source-card .card-head {
align-items: center;
}
.digital-worker-source-editor {
width: 100%;
min-height: 360px;
resize: vertical;
border: 1px solid #dbe4ef;
border-radius: 8px;
padding: 14px 16px;
background: #0f172a;
color: #e2e8f0;
font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
font-size: 12.5px;
line-height: 1.7;
outline: none;
}
.digital-worker-source-editor:focus {
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.digital-worker-source-editor[readonly] {
color: #cbd5e1;
background: #1e293b;
cursor: default;
}
@media (max-width: 760px) {
.risk-rule-create-form,
.json-risk-meta-grid {

View File

@@ -0,0 +1,94 @@
.digital-employees-view {
height: 100%;
min-height: 0;
}
.digital-employees-list {
height: 100%;
}
.digital-employees-list .table-wrap {
min-height: 0;
}
.digital-employees-table {
min-width: 1060px;
table-layout: fixed;
}
.digital-employees-table .col-skill { width: 27%; }
.digital-employees-table .col-schedule { width: 16%; }
.digital-employees-table .col-mode { width: 12%; }
.digital-employees-table .col-skill-type { width: 11%; }
.digital-employees-table .col-status { width: 11%; }
.digital-employees-table .col-enabled { width: 11%; }
.digital-employees-table .col-updated { width: 12%; }
.digital-employees-table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.digital-employees-table tbody tr {
cursor: pointer;
}
.digital-refresh-action i {
font-size: 16px;
}
.skill-type-pill {
border-color: #dbeafe;
background: #eff6ff;
color: #1d4ed8;
}
.digital-employee-detail {
height: 100%;
}
.digital-employee-detail .detail-scroll {
min-height: 0;
overflow: auto;
}
.digital-employee-detail-actions .detail-action-group {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
flex-wrap: wrap;
}
.digital-employee-detail-actions .success-action {
border-color: var(--success-line);
background: var(--success-soft);
color: var(--success-hover);
}
.digital-employee-detail-actions .enable-action.is-on {
border-color: #fed7aa;
background: #fff7ed;
color: #ea580c;
}
@media (max-width: 980px) {
.digital-employees-table {
min-width: 1040px;
}
.digital-employee-detail-actions {
align-items: stretch;
flex-direction: column;
}
.digital-employee-detail-actions .detail-action-group {
justify-content: stretch;
}
.digital-employee-detail-actions .detail-action-group button {
flex: 1 1 0;
justify-content: center;
}
}

View File

@@ -258,7 +258,7 @@
table {
width: 100%;
min-width: 690px;
min-width: 780px;
border-collapse: collapse;
}
@@ -365,10 +365,9 @@ th {
.state-cell {
display: grid;
justify-items: center;
gap: 6px;
}
.state-time {
.ingest-time-cell {
color: #64748b;
font-size: 11px;
line-height: 1.4;