refactor: 優化使用者管理介面與角色顯示
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 54s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

- 移除 Header 中的角色名稱顯示
- 調整使用者表單欄位順序(使用者名稱、姓名並排)
- 將角色分配區塊移至基本資料下方
- 修復 email 欄位 null 值警告
- 修復角色選擇無限迴圈錯誤
- 統一角色顯示格式(中文名稱在上,代號在下)
This commit is contained in:
2026-01-14 09:52:56 +08:00
parent 8e364bc2f7
commit 7dfe46ff9a
5 changed files with 196 additions and 200 deletions

View File

@@ -19,7 +19,7 @@ class UserController extends Controller
{
$perPage = $request->input('per_page', 10);
$users = User::with('roles')
$users = User::with(['roles:id,name,display_name'])
->orderBy('id')
->paginate($perPage)
->withQueryString();