AdminSelectEntity Component
Overview
A general entity selection control. Clicking opens a searchable table dialog where users can select a single record. Supports data permission filtering.
Parameters
| Parameter | Description |
|---|---|
| TItem | Entity type |
| TKey | Primary key type |
| @bind-ValueId | Bind the selected entity's ID |
| GetText | Display text |
| Where | Data filter expression |
| UseDataPermission | Whether to enable data permissions (default false) |
Usage Example
<AdminSelectEntity TItem="SysUser" TKey="long"
@bind-ValueId="@responsibleUserId"
GetText="@(u => u.Nickname)"
UseDataPermission="true" />
Notes
- When
UseDataPermissionis enabled, only data that the current user has permission to view is displayed WhereandUseDataPermissioncan be used together; the result is the intersection of both conditions