User Management Module
Overview
The user management page maintains accounts, role bindings, and status transitions.
- Route:
/organization/user - View:
src/views/system/user/index.vue - Permission:
system.user.view - API:
src/api/user.ts
Core Capabilities
- Paginated user list query
- Keyword filters for username/phone/status
- Create, update, and delete users
- Role assignment and status switching
Typical Data Structure
ts
interface UserItem {
id: string
username: string
realName: string
phone?: string
email?: string
status: 'active' | 'inactive'
roleIds: string[]
}Implementation Notes
- Use
ProTablefor listing, filters, and batch actions. - Use
ProModal + ProFormfor create/edit dialogs. - Always confirm destructive actions.
- Mask sensitive fields when needed.
