feat(ui): 重做工作台、登录页与系统管理页交互

- 工作台重做统计卡、待办概览与访问趋势配色
- 登录页重做品牌区、验证码刷新与演示账号填充
- 系统管理页统一筛选栏与工具栏,行操作折叠到更多菜单
- 修复登录跳转与会话失效重定向的嵌套
This commit is contained in:
Ray.Hao committed 2026-11-22 00:26:53 +08:00
1 parent df297b55cc
commit 38189e5fdf
112 files changed
+2339 -1797

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
import { defineMock } from "./base";
export default defineMock([
// mock 模式不启用实时服务:领票返回 503 + B0102,前端按协议优雅降级,
// 避免请求穿透代理到线上触发 401 续期连锁退出登录
{
url: "realtime/tickets",
method: ["POST"],
status: 503,
body: {
code: "B0102",
data: null,
msg: "实时服务未启用",
},
},
// 在线人数 HTTP 校准:返回单节点空快照,保持校准链路静默可用
{
url: "realtime/presence",
method: ["GET"],
body: () => ({
code: "00000",
data: {
onlineUsers: 1,
onlineConnections: 1,
nodeId: "mock-node",
observedAt: new Date().toISOString(),
},
msg: "一切ok",
}),
},
]);
+2 -2
View File
@@ -28,7 +28,7 @@ export default defineMock([
{
id: "2",
name: "系统管理员",
code: "ADMIN",
code: "ROOT",
status: 1,
sort: 2,
dataScope: 1,
@@ -189,7 +189,7 @@ const roleMap: Record<string, any> = {
2: {
id: "2",
name: "系统管理员",
code: "ADMIN",
code: "ROOT",
status: 1,
sort: 2,
dataScope: 1,
+1
View File
@@ -25,6 +25,7 @@ export default defineMock([
"sys:role:create",
"sys:role:update",
"sys:role:delete",
"sys:role:assign",
"sys:dept:list",
"sys:dept:create",