feat(teams): fix checkbox multi-select and improve batch operations UI
- Fix checkbox binding using :model-value instead of :checked - Change selectedIds from Set to reactive array for proper Vue reactivity - Move batch refresh/delete buttons to top bar (matching CardKeysPage layout) - Buttons show selection count like 'Refresh (2)' when items selected - Swap position of 'Add Team' and 'Random Invite' buttons - Remove unused isIndeterminate computed property
This commit is contained in:
@@ -26,7 +26,7 @@ func SetupRoutes(db *sql.DB) http.Handler {
|
||||
|
||||
// 初始化处理器
|
||||
authHandler := handler.NewAuthHandler(adminRepo)
|
||||
accountHandler := handler.NewChatGPTAccountHandler(chatgptAccountRepo, chatgptService)
|
||||
accountHandler := handler.NewChatGPTAccountHandler(chatgptAccountRepo, invitationRepo, chatgptService)
|
||||
inviteHandler := handler.NewInviteHandler(chatgptAccountRepo, invitationRepo, cardKeyRepo, chatgptService)
|
||||
cardKeyHandler := handler.NewCardKeyHandler(cardKeyRepo)
|
||||
|
||||
@@ -47,6 +47,8 @@ func SetupRoutes(db *sql.DB) http.Handler {
|
||||
protectedMux.HandleFunc("/api/accounts/create", accountHandler.Create)
|
||||
protectedMux.HandleFunc("/api/accounts/refresh", accountHandler.Refresh)
|
||||
protectedMux.HandleFunc("/api/accounts/delete", accountHandler.Delete)
|
||||
protectedMux.HandleFunc("/api/accounts/batch/delete", accountHandler.BatchDelete)
|
||||
protectedMux.HandleFunc("/api/accounts/batch/refresh", accountHandler.BatchRefresh)
|
||||
|
||||
// 邀请接口 (管理员) - GET: 列表, POST: 邀请, DELETE: 移除
|
||||
protectedMux.HandleFunc("/api/invite", func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user