chore: rename permission module

This commit is contained in:
Frudrax Cheng
2026-06-06 13:36:48 +08:00
parent 2d24be0c2a
commit 2892cfb93d
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ src/
- `PublicQuery` auto-redirects scanned `zjbf-xm-*` serials to `/project-orders/:serialNumber`. - `PublicQuery` auto-redirects scanned `zjbf-xm-*` serials to `/project-orders/:serialNumber`.
- Product trace QR codes use `/product-traces/:serialNumber` directly. - Product trace QR codes use `/product-traces/:serialNumber` directly.
- Shared public-page chrome (logo + 备案 footer) lives in `components/PublicLayout.tsx` - 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. - Technicians should only see/use the aftersales and project work-order modules; admins see all admin menu items.
### Roles and Permission Issuance ### Roles and Permission Issuance
+2 -2
View File
@@ -24,7 +24,7 @@ frontend/
│ │ ├── Login.tsx │ │ ├── Login.tsx
│ │ ├── PublicQuery.tsx │ │ ├── PublicQuery.tsx
│ │ ├── Dashboard.tsx │ │ ├── Dashboard.tsx
│ │ ├── EmployeeSerials.tsx # 权限下发(员工主档 + 自动员工码) │ │ ├── EmployeeSerials.tsx # 权限管理(员工主档 + 自动员工码)
│ │ ├── ProductTraces.tsx # 产品溯源管理 │ │ ├── ProductTraces.tsx # 产品溯源管理
│ │ ├── ProductTracePublic.tsx # 产品溯源扫码公开页 │ │ ├── ProductTracePublic.tsx # 产品溯源扫码公开页
│ │ ├── ProjectOrders.tsx # 项目工单列表(管理后台) │ │ ├── ProjectOrders.tsx # 项目工单列表(管理后台)
@@ -102,7 +102,7 @@ VITE_API_BASE_URL=/api
### 管理后台 ### 管理后台
- 控制台(工单统计) - 控制台(工单统计)
- 权限下发 - 权限管理
- 创建员工时录入姓名、电话、工号、岗位、角色 - 创建员工时录入姓名、电话、工号、岗位、角色
- 角色仅保留管理员、技术员、员工 - 角色仅保留管理员、技术员、员工
- 管理员/技术员有后台登录权限,创建时显示并必填初始密码 - 管理员/技术员有后台登录权限,创建时显示并必填初始密码
+2 -2
View File
@@ -44,7 +44,7 @@ function AdminLayout() {
{ {
key: 'employee-serials', key: 'employee-serials',
icon: <IdcardOutlined />, icon: <IdcardOutlined />,
label: '权限下发', label: '权限管理',
onClick: () => navigate('/admin/employee-serials'), onClick: () => navigate('/admin/employee-serials'),
}, },
{ {
@@ -134,7 +134,7 @@ function AdminLayout() {
const getTitle = () => { const getTitle = () => {
const path = location.pathname; const path = location.pathname;
if (path.includes('/dashboard')) return '控制台'; 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('/product-traces')) return '产品溯源';
if (path.includes('/project-orders')) return '项目工单'; if (path.includes('/project-orders')) return '项目工单';
if (path.includes('/aftersales')) return '售后工单'; if (path.includes('/aftersales')) return '售后工单';
+1 -1
View File
@@ -290,7 +290,7 @@ function EmployeeSerialsPage() {
title={ title={
<Space> <Space>
<UserOutlined /> <UserOutlined />
<span></span> <span></span>
</Space> </Space>
} }
extra={ extra={