feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 54b3e0cc21
commit 5c0849e82b
242 changed files with 9242 additions and 5043 deletions
+239 -7
View File
@@ -273,6 +273,7 @@ html.dark .oc-dialog {
/* 遮罩:原型(antd 6 默认)弹窗与抽屉均为 rgba(0,0,0,.3) + blur(4px),浅 / 深一致。
只作用于目标页(页面根含 .oc-page)打开的 OrgModal / OrgSideSheet;宿主公告、客服与跳过页不受影响。 */
body:has(.org-center .oc-page) .ant-modal-root:has(.org-modal),
body:has(.org-center .oc-page) .ant-modal-root:has(.task-content-modal),
body:has(.org-center .oc-page) .ant-drawer:has(.org-sidesheet) {
--oc-mask-bg: rgba(0, 0, 0, 0.3);
--oc-mask-blur: 4px;
@@ -281,6 +282,9 @@ body:has(.org-center .oc-page) .ant-drawer:has(.org-sidesheet) {
body:has(.org-center .oc-page)
.ant-modal-root:has(.org-modal)
> .ant-modal-mask,
body:has(.org-center .oc-page)
.ant-modal-root:has(.task-content-modal)
> .ant-modal-mask,
body:has(.org-center .oc-page)
.ant-drawer:has(.org-sidesheet)
> .ant-drawer-mask {
@@ -454,13 +458,6 @@ html.dark .org-center .oc-page {
color: var(--oc-brand);
}
.oc-token-column-options {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 132px;
}
/* ---------- 审计日志(原型 EnterpriseAudit .eau-*) ---------- */
.org-center .oc-page .oc-audit-filter .oc-filter-grid {
grid-template-columns: minmax(0, 1fr);
@@ -2664,3 +2661,238 @@ html.dark .org-center .oc-dashboard {
padding: 20px 16px;
}
}
/* ---------- 消耗明细:绘图与视频(原型 EnterpriseExpenseTasks .eex-task-records) ----------
* 作用域 .oc-expenses(页面根,style 由 useOrgLogsThemeStyle 注入 token 变量)。
* 新规则以 :where() 包裹作用域祖先、只保留目标类的优先级;复用的使用记录类名(.usage-record-*)
* 以多一层企业页类名确保高于 UsageRecord.css(该文件仅在访问个人端后加载),结果与加载顺序无关。
*/
:where(.org-center .oc-expenses) .oc-task-records {
min-width: 0;
}
/* 筛选卡:原型 .ee-filter-grid 三列 16px、表单项下距 16px、标签 13px 次文字色;操作右对齐 8px */
:where(.org-center .oc-expenses) .oc-task-filter .usage-record-filter-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
/* 时间范围与其他字段同占一列(原型三列网格,个人端使用记录为跨两列) */
:where(.org-center .oc-expenses)
.oc-task-filter
.usage-record-filter-grid
.usage-record-filter-wide {
grid-column: auto;
}
:where(.org-center .oc-expenses)
.oc-task-filter
.usage-record-filter-form
.ant-form-item {
min-width: 0;
margin-bottom: 16px;
}
:where(.org-center .oc-expenses)
.oc-task-filter
.usage-record-filter-form
.ant-form-item-label
> label {
height: auto;
color: var(--oc-muted);
font-size: 13px;
}
:where(.org-center .oc-expenses)
.oc-task-filter
.usage-record-filter-form
.ant-picker,
:where(.org-center .oc-expenses)
.oc-task-filter
.usage-record-filter-form
.ant-select {
width: 100%;
}
:where(.org-center .oc-expenses) .oc-task-filter .usage-record-filter-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 0;
}
/* 列表卡工具区:处理中标签与按钮同行 */
:where(.org-center .oc-expenses) .oc-list-tools .ant-tag {
margin: 0;
}
/* 模型:原型 .eex-model 等宽胶囊(行内元素,内边距不撑高行;复制回调沿用原节点) */
:where(.org-center .oc-expenses) .oc-task-model .usage-record-model {
display: inline;
padding: 3px 6px;
border: 1px solid var(--oc-border);
border-radius: 4px;
background: var(--oc-soft);
color: var(--oc-text);
font:
12px/1.5 Consolas,
monospace;
white-space: nowrap;
cursor: pointer;
}
:where(.org-center .oc-expenses) .oc-task-model .usage-record-model:hover {
color: var(--oc-brand);
}
/* 任务 ID:原型 .task-id 等宽 11px */
:where(.org-center .oc-expenses) .oc-task-id .ant-typography {
color: var(--oc-text);
font-family: Consolas, monospace;
font-size: 11px;
}
/* 操作列(原型 record-operation:Button link small、无图标):预览视频为 link 文本;失败原因点击查看;无内容显示“-” */
:where(.org-center .oc-expenses) .oc-task-detail a {
display: inline-flex;
align-items: center;
color: var(--ui-color-link);
font-size: 14px;
line-height: 22px;
white-space: nowrap;
transition: color 0.2s ease;
}
:where(.org-center .oc-expenses) .oc-task-detail a:hover {
color: var(--ui-color-link-hover);
}
:where(.org-center .oc-expenses) .oc-task-detail a:focus-visible {
border-radius: 3px;
outline: 2px solid var(--oc-brand);
outline-offset: 2px;
}
:where(.org-center .oc-expenses) .oc-task-detail a svg {
display: none;
}
:where(.org-center .oc-expenses) .oc-task-detail .ant-typography {
color: var(--oc-text);
font-size: 12px;
cursor: pointer;
}
:where(.org-center .oc-expenses) .oc-task-detail .ant-typography:hover {
color: var(--ui-color-link-hover);
}
:where(.org-center .oc-expenses) .oc-task-empty-hint {
margin-top: 4px;
color: var(--ui-color-text-2);
font-size: 12px;
}
@media (max-width: 767px) {
:where(.org-center .oc-expenses) .oc-task-filter .usage-record-filter-grid {
grid-template-columns: minmax(0, 1fr);
gap: 12px;
}
}
/* ---------- 消耗明细:导出弹窗(原型无此弹窗:Ant 默认 + 语义变量,无装饰) ---------- */
:where(.oc-export-dialog) .oc-export-scope {
margin-bottom: 16px;
padding: 12px;
border-radius: 8px;
background: var(--oc-soft);
}
:where(.oc-export-dialog) .oc-export-scope-title {
margin-bottom: 6px;
color: var(--oc-muted);
font-size: 12px;
line-height: 20px;
}
:where(.oc-export-dialog) .oc-export-scope-row {
color: var(--oc-text);
font-size: 12px;
line-height: 20px;
}
:where(.oc-export-dialog) .oc-export-scope-row > span {
color: var(--oc-muted);
}
:where(.oc-export-dialog) .oc-export-scope-count {
margin-top: 6px;
}
:where(.oc-export-dialog) .oc-export-scope-count strong {
font-weight: 500;
}
:where(.oc-export-dialog) .oc-export-scope-warning {
margin-top: 6px;
color: var(--ui-color-warning);
font-size: 12px;
line-height: 20px;
}
:where(.oc-export-dialog) .oc-export-section {
margin-bottom: 16px;
}
:where(.oc-export-dialog) .oc-export-label {
display: block;
margin-bottom: 8px;
color: var(--oc-text);
font-size: 14px;
font-weight: 500;
line-height: 22px;
}
:where(.oc-export-dialog) .oc-export-fields-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
:where(.oc-export-dialog) .oc-export-fields-head .oc-export-label {
margin-bottom: 0;
}
:where(.oc-export-dialog) .oc-export-fields-actions {
display: flex;
gap: 8px;
}
:where(.oc-export-dialog) .oc-export-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px 16px;
padding: 12px;
border: 1px solid var(--oc-border);
border-radius: 8px;
}
:where(.oc-export-dialog) .oc-export-fields .ant-checkbox-wrapper {
margin-inline-start: 0;
}
:where(.oc-export-dialog) .oc-export-note {
margin: 8px 0 0;
color: var(--oc-muted);
font-size: 12px;
line-height: 20px;
}
:where(.oc-export-dialog) .oc-export-footer {
display: flex;
justify-content: flex-end;
gap: 8px;
}