diff --git a/crop-x/src/app/(app)/central-config/layout.tsx b/crop-x/src/app/(app)/central-config/layout.tsx index 38f40b3..91ffe44 100644 --- a/crop-x/src/app/(app)/central-config/layout.tsx +++ b/crop-x/src/app/(app)/central-config/layout.tsx @@ -8,125 +8,125 @@ const centralConfigData = { navMain: [ { title: "租户管理", - url: "/central-config/tenant-management", + url: "/central-config/tenant", icon: "🏢", items: [ { title: "企业审核", - url: "/central-config/tenant-management/enterprise-audit", + url: "/central-config/tenant/enterprise-audit", isActive: false }, { title: "审核历史", - url: "/central-config/tenant-management/audit-history", + url: "/central-config/tenant/audit-history", isActive: false }, { title: "企业信息", - url: "/central-config/tenant-management/enterprise-info", + url: "/central-config/tenant/enterprise-info", isActive: false }, { - title: "平台用户管理", - url: "/central-config/tenant-management/platform-user-management", + title: "用户管理", + url: "/central-config/tenant/user-management", isActive: false } ] }, { title: "用户管理", - url: "/central-config/user-management", + url: "/central-config/user", icon: "👥", items: [ { title: "员工管理", - url: "/central-config/user-management/employee-management", + url: "/central-config/user/employee", isActive: false }, { title: "角色管理", - url: "/central-config/user-management/role-management", + url: "/central-config/user/role", isActive: false }, { title: "菜单管理", - url: "/central-config/user-management/menu-management", + url: "/central-config/user/menu", isActive: false }, { title: "权限配置管理", - url: "/central-config/user-management/permission-config", + url: "/central-config/user/permission", isActive: false } ] }, { title: "系统参数", - url: "/central-config/system-parameters", + url: "/central-config/system", icon: "🔧", items: [ { title: "系统设置", - url: "/central-config/system-parameters/system-settings", + url: "/central-config/system/settings", isActive: false }, { title: "分类字典", - url: "/central-config/system-parameters/category-dictionary", + url: "/central-config/system/category", isActive: false }, { title: "数据字典", - url: "/central-config/system-parameters/data-dictionary", + url: "/central-config/system/dictionary", isActive: false } ] }, { title: "系统监控", - url: "/central-config/system-monitor", + url: "/central-config/monitor", icon: "📈", items: [ { title: "登录日志", - url: "/central-config/system-monitor/login-log", + url: "/central-config/monitor/login-log", isActive: false }, { title: "操作日志", - url: "/central-config/system-monitor/operation-log", + url: "/central-config/monitor/operation-log", isActive: false }, { title: "性能监控", - url: "/central-config/system-monitor/performance-monitor", + url: "/central-config/monitor/performance", isActive: false }, { title: "网络日志", - url: "/central-config/system-monitor/network-log", + url: "/central-config/monitor/network-log", isActive: false } ] }, { title: "消息中心", - url: "/central-config/message-center", + url: "/central-config/message", icon: "📨", items: [ { title: "消息发送", - url: "/central-config/message-center/message-send", + url: "/central-config/message/send", isActive: false }, { title: "消息模版", - url: "/central-config/message-center/message-template", + url: "/central-config/message/template", isActive: false }, { title: "消息日志", - url: "/central-config/message-center/message-log", + url: "/central-config/message/log", isActive: false } ] diff --git a/crop-x/src/app/(app)/central-config/message-center/layout.tsx b/crop-x/src/app/(app)/central-config/message-center/layout.tsx deleted file mode 100644 index 1980cba..0000000 --- a/crop-x/src/app/(app)/central-config/message-center/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { ReactNode } from 'react' - -export default function MessageCenterLayout({ - children, -}: { - children: ReactNode -}) { - return ( -
消息日志管理页面
-接收人: {message.recipients}
-{message.time}
-消息模版管理页面
-- 管理消息推送、通知设置和反馈处理 -
- -- 创建和发送各类消息通知 -
- - - -- 快速发送消息给指定用户 -
- - - -- 配置系统通知规则和模板 -
- - - -- 处理用户反馈和建议 -
- -完整记录所有通过系统发送的消息流水
+发送系统消息
+ + +管理消息模版
+ + +查看消息发送记录
+ +正在加载数据...
+发送短信、邮件、站内信消息,支持实时和定时发送
++ 警告: {error} (当前显示为模拟数据) +
+集中管理各类系统消息模板
+全面记录所有用户的登录行为
+记录系统接收与发送的所有网络请求信息
+详细追踪用户在系统中的关键操作行为
+查看用户登录记录
+ + +查看系统操作记录
+ + +监控系统性能
+ + +查看网络访问日志
+ +{formatBytes(performance.disk.used)}
+{formatBytes(performance.disk.free)}
+{formatBytes(performance.disk.total)}
+堆内存使用
+{performance.jvm.heapUsage.toFixed(1)}%
+ +堆内存
++ {formatBytes(performance.jvm.heapUsed)} / {formatBytes(performance.jvm.heapMax)} +
+非堆内存
+{formatBytes(performance.jvm.nonHeapUsed)}
+线程数
+{performance.jvm.threadCount}
+GC次数
+{performance.jvm.gcCount}
+GC耗时
+{performance.jvm.gcTime}ms
+{formatBytes(performance.memory.used)}
+{formatBytes(performance.memory.total)}
+线程数
++ {performance.tomcat.threadCount} / {performance.tomcat.maxThreads} +
+连接数
+{performance.tomcat.connectionCount}
+请求数
+{performance.tomcat.requestCount.toLocaleString()}
+错误数
+{performance.tomcat.errorCount}
+错误率
++ {((performance.tomcat.errorCount / performance.tomcat.requestCount) * 100).toFixed(2)}% +
+正在加载性能数据...
+加载失败: {error}
+ +实时监控系统运行健康状态
++ 警告: {error} (当前显示为模拟数据) +
+登录日志管理页面
-网络日志管理页面
-操作日志管理页面
-系统监控主页面
-性能监控管理页面
-{error.description}
-{error.time}
-{log.message}
-- 监控系统性能、管理日志记录和处理异常情况 -
- -- 系统性能指标实时监控 -
- - - -- 系统日志查看和管理 -
- - - -- 系统异常监控和处理 -
- -- 性能趋势图表 -
-- (集成图表库后显示) -
-农机设备每日最少在线时间要求
-农机设备定期维护提醒设置
-紧急任务自动优先级提升
-单块地块最大面积限制
-根据面积和产出自动分级
-根据技能和位置自动分配任务
-任务超时自动提醒设置
-员工任务完成率考核标准
-系统数据自动备份频率
-系统日志数据保留时间
-分类字典管理页面
-数据字典管理页面
-- 配置基础系统参数、业务规则和接口设置 -
- -- 系统基础参数和通用配置 -
- - - -- 业务逻辑规则和策略配置 -
- - - -- API接口和第三方服务配置 -
- -系统设置管理页面
-分类字典页面 - 路径: /config/system/category
+数据字典页面 - 路径: /config/system/dictionary
+配置系统基本参数
+ + +管理分类字典
+ + +管理数据字典
+ +开启后允许新用户自主注册账号
+开启后允许未登录用户访问部分公开内容
++ 用户无操作超过此时间后将自动退出登录 +
++ 连续登录失败达到此次数后账号将被临时锁定 +
+配置系统全局基础参数和个性化设置
+审核历史记录管理页面
-
- {enterprise.bankAccount}
-
- ) : '-'}
-
- {enterprise.socialCreditCode}
-
- 企业信息管理页面
-- 管理租户创建、配置和授权 -
- -- 创建新的租户账号 -
- - - -- 配置租户基本信息和设置 -
- - - -- 管理租户权限和访问控制 -
- -| - 租户ID - | -- 租户名称 - | -- 状态 - | -- 创建时间 - | -- 操作 - | -
|---|---|---|---|---|
| - {tenant.id} - | -- {tenant.name} - | -- - {tenant.status === 'active' ? '活跃' : '待审核'} - - | -- {tenant.time} - | -- - - | -
平台用户管理功能页面
-| - 时间 - | -- 操作类型 - | -- 操作内容 - | -- 操作人 - | -
|---|---|---|---|
| - {record.time} - | -- - {record.type} - - | -- {record.content} - | -- {record.operator} - | -
租户名称必须为中文,长度2-50个字符
-租户代码必须为英文,长度3-20个字符,只能包含字母和数字
-联系电话必须是有效的手机号码或座机号码
-电子邮箱必须是有效的邮箱地址格式
-创建成功后,系统将自动向管理员邮箱发送登录信息
-追溯查询全部企业的历史审核记录
+{enterprise.socialCreditCode}
@@ -78,5 +79,5 @@ export function EnterpriseTable({ enterprises, onViewDetail }: EnterpriseTablePr
管理企业注册与变更审核流程
+ 驳回原因:{enterprise.auditReason} +
+ )} + {enterprise.auditStatus === 'pending' && ( ++ 信息修改后需要管理员重新审核 +
+ )} +
+ {enterprise.bankAccount}
+
+ ) : '-'}
+ 查看和管理本企业的完整注册信息
+
+ {enterprise.socialCreditCode}
+
+ {enterprise.id}
+ 查看和管理本企业的完整注册信息
+审核企业入驻申请
+ + +查看历史审核记录
+ + +管理企业基本信息
+ + +管理平台用户
+ +平台所有用户账户的集中管理
+员工管理功能页面
-菜单管理功能页面
-- 管理用户账号、角色权限和行为跟踪 -
- -- 创建、编辑和管理用户账号 -
- - - -- 配置用户角色和权限设置 -
- - - -- 监控用户操作行为和数据 -
- -| - 用户名 - | -- 姓名 - | -- 角色 - | -- 租户 - | -- 最后登录 - | -- 状态 - | -- 操作 - | -
|---|---|---|---|---|---|---|
| - {user.username} - | -- {user.name} - | -- {user.role} - | -- {user.tenant} - | -- {user.lastLogin} - | -- - {user.status === 'active' ? '活跃' : user.status === 'inactive' ? '未激活' : '待审核'} - - | -- - - | -
权限配置管理功能页面
-角色管理功能页面
-{role.description}
-角色代码: {role.code}
-| - - | -- 用户信息 - | -- 角色 - | -- 租户 - | -- 状态 - | -- 创建时间 - | -- 操作 - | -
|---|---|---|---|---|---|---|
| - - | -
-
-
- {user.avatar}
-
-
- {user.name}
- @{user.username}
- {user.email}
- |
- - - {user.role} - - | -- {user.tenant} - | -- - {user.status === 'active' ? '活跃' : user.status === 'inactive' ? '未激活' : '待审核'} - - | -- {user.createTime} - | -- - - - | -
| - 时间 - | -- 用户 - | -- 行为类型 - | -- 模块 - | -- 描述 - | -- IP地址 - | -- 状态 - | -
|---|---|---|---|---|---|---|
| - {record.time} - | -- {record.user} - | -- - {record.type} - - | -- {record.module} - | -- {record.description} - | -- {record.ip} - | -- - {record.status === 'success' ? '成功' : record.status === 'warning' ? '警告' : '失败'} - - | -
用户: test@example.com - 5次失败
-用户: 李四 - 凌晨3点操作
-用户: 王五 - 单日导出10次
-管理本企业员工账户体系
+