diff --git a/AGENTS.md b/AGENTS.md index 3fc0160..dd18745 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -110,7 +110,7 @@ src/ - `PublicQuery` auto-redirects scanned `zjbf-xm-*` serials to `/project-orders/:serialNumber`. - Product trace QR codes use `/product-traces/:serialNumber` directly. - Shared public-page chrome (logo + 备案 footer) lives in `components/PublicLayout.tsx` -- `/admin/employee-serials` is the 权限下发 page despite the legacy route name. +- `/admin/employee-serials` is the 权限管理 page despite the legacy route name. - Technicians should only see/use the aftersales and project work-order modules; admins see all admin menu items. ### Roles and Permission Issuance diff --git a/README.md b/README.md index 45d48e2..025c548 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ frontend/ │ │ ├── Login.tsx │ │ ├── PublicQuery.tsx │ │ ├── Dashboard.tsx -│ │ ├── EmployeeSerials.tsx # 权限下发(员工主档 + 自动员工码) +│ │ ├── EmployeeSerials.tsx # 权限管理(员工主档 + 自动员工码) │ │ ├── ProductTraces.tsx # 产品溯源管理 │ │ ├── ProductTracePublic.tsx # 产品溯源扫码公开页 │ │ ├── ProjectOrders.tsx # 项目工单列表(管理后台) @@ -102,7 +102,7 @@ VITE_API_BASE_URL=/api ### 管理后台 - 控制台(工单统计) -- 权限下发 +- 权限管理 - 创建员工时录入姓名、电话、工号、岗位、角色 - 角色仅保留管理员、技术员、员工 - 管理员/技术员有后台登录权限,创建时显示并必填初始密码 diff --git a/src/components/AdminLayout.tsx b/src/components/AdminLayout.tsx index 3a9c7ed..175500b 100644 --- a/src/components/AdminLayout.tsx +++ b/src/components/AdminLayout.tsx @@ -44,7 +44,7 @@ function AdminLayout() { { key: 'employee-serials', icon: , - label: '权限下发', + label: '权限管理', onClick: () => navigate('/admin/employee-serials'), }, { @@ -134,7 +134,7 @@ function AdminLayout() { const getTitle = () => { const path = location.pathname; if (path.includes('/dashboard')) return '控制台'; - if (path.includes('/employee-serials')) return '权限下发'; + if (path.includes('/employee-serials')) return '权限管理'; if (path.includes('/product-traces')) return '产品溯源'; if (path.includes('/project-orders')) return '项目工单'; if (path.includes('/aftersales')) return '售后工单'; diff --git a/src/pages/EmployeeSerials.tsx b/src/pages/EmployeeSerials.tsx index 6f696b5..416a843 100644 --- a/src/pages/EmployeeSerials.tsx +++ b/src/pages/EmployeeSerials.tsx @@ -290,7 +290,7 @@ function EmployeeSerialsPage() { title={ - 权限下发 + 权限管理 } extra={