8.7 KiB
User Management
1. Function Overview
The User Management module is used to manage system user accounts and role permissions, enabling user CRUD operations, role assignment, password management, and permission configuration.
Core Functions:
- User Account Management: Create, edit, delete user accounts
- User Status Control: Enable/disable user accounts
- Role Management: Create, edit, delete roles (user groups)
- Permission Assignment: Assign menu and API permissions to roles
- Password Management: Change password, reset password
2. Term Explanation
2.1.1 User Management Terms
| Term | Definition | Description |
|---|---|---|
| User Group/Role | Permission group to which user belongs | Users with the same role have the same permissions |
| Pass ID | User's identification number | Used for access control and other scenarios |
| Super Admin | System's highest permission role | Default has all menu permissions |
3. Role Management
3.1 Role List Query
Query Conditions:
| Query Condition | Description |
|---|---|
| Status | Filter enabled or disabled roles |
Operation Steps:
- Go to [System Settings] → [User Management] → [Role]
- Select status condition in the top query area
- Click [Query] button to get role list
3.2 Add Role
Operation Steps:
- Click [Add Role] button
- Fill in role name and description
- Set role status
- Click [OK] to complete addition
Field Description:
| Field | Description | Required |
|---|---|---|
| Name | Role name, such as "Admin", "Regular User" | Yes |
| Description | Detailed description of role | No |
| Status | Enabled or disabled | Yes |
[Tip] Role names cannot be duplicated.
3.3 Edit Role
Operation Steps:
- Click the role to edit in the role list
- Modify role information
- Click [OK] to save changes
3.4 Delete Role
Operation Steps:
- Find the role to delete in the role list
- Click [Delete] button
- Click [OK] in the confirmation dialog
[Important] If there are users under the role, the role cannot be deleted.
3.5 Permission Assignment
Operation Steps:
- Click [Permission Configuration] button in the role list
- Select menus and APIs to assign in the permission configuration page
- Click [OK] to save permission configuration
[Tip] Permission configuration will overwrite all existing permissions of the role.
4. User Management
4.1 User List Query
Query Conditions:
| Query Condition | Description |
|---|---|
| Account | Fuzzy query by username |
| Name | Fuzzy query by nickname |
| User Group | Filter by role |
| Status | Filter enabled or disabled users |
4.2 Add User
Operation Steps:
- Click [Add User] button
- Fill in user information
- Set user group and status
- Click [OK] to complete addition
Field Description:
| Field | Description | Required |
|---|---|---|
| Account | User login account | Yes |
| Name | User nickname or real name | Yes |
| Pass ID | User's identification number | No |
| Password | User login password | Yes |
| Confirm Password | Enter password again for confirmation | Yes |
| User Group | Select role to which user belongs | Yes |
| Status | Enabled or disabled | Yes |
[Note] The two password entries must be identical. Deleted or disabled user groups cannot be selected.
4.3 Edit User
Operation Steps:
- Click the user to edit in the user list
- Modify user information
- Click [OK] to save changes
[Note] You cannot disable your own account.
4.4 Delete User
Operation Steps:
- Find the user to delete in the user list
- Click [Delete] button
- Click [OK] in the confirmation dialog
[Important] You cannot delete your own account.
4.5 Batch Operations
Supported Batch Operations:
- Batch Delete: Select multiple users and click [Batch Delete]
- Batch Enable/Disable: Select multiple users and click [Batch Enable] or [Batch Disable]
4.6 Password Management
Change Password
Operation Steps:
- Move mouse to username in the top right corner, click [Change Password] button in the dropdown
- Enter old password and new password
- Click [OK] to complete change
Reset Password
Operation Steps:
- Click [Reset Password] button in the user list
- Click [OK] in the confirmation dialog
- Password will be reset to default password "123456"
4.7 User Data Import/Export
Import User Data
Operation Steps:
- Click [Download Import Template] to get the import template file
- Fill in user data according to template format
- Upload the filled Excel file
- Click [Import] to complete batch import
Import Template Fields:
| Field | Description | Required |
|---|---|---|
| Account | User login account | Yes |
| Name | User nickname | Yes |
| Pass ID | User identification number | No |
| Password | User password | Yes |
| Status | Enabled or disabled | Yes |
| User Group | Role name to which user belongs | Yes |
Export User Data
Operation Steps:
- Set query conditions to filter users to export
- Click [Export] button
- System generates export task in background
- Get export file in download management
5. Operation Logic Flowchart
flowchart TD
A[User Management] --> B[Add User]
A --> C[Edit User]
A --> D[Delete User]
A --> E[Change Password]
B --> F{Validate Username Uniqueness}
F -->|Exists| G[Show Error]
F -->|Not Exists| H{Validate Password Consistency}
H -->|Inconsistent| I[Show Error]
H -->|Consistent| J{Validate Role Validity}
J -->|Invalid| K[Show Error]
J -->|Valid| L[Save User Data]
C --> M{Validate Username Uniqueness}
M -->|Duplicate| N[Show Error]
M -->|Unique| O{Disable Self?}
O -->|Yes| P[Show Error]
O -->|No| Q[Update User Data]
D --> R{Delete Self?}
R -->|Yes| S[Show Error]
R -->|No| T[Delete User and Reorder]
E --> U{Validate Password Consistency}
U -->|Inconsistent| V[Show Error]
U -->|Consistent| W{Same as Old Password?}
W -->|Same| X[Show Error]
W -->|Different| Y[Update Password]
6. Notes
[Important] Users cannot delete or disable their own accounts.
[Note] Before deleting or disabling a role, ensure there are no associated users under the role.
[Tip] When importing user data, if the username already exists, that row of data will be skipped.















