feat: add user creation and ban/unban for agent backend

- Backend: POST /agent/users - create user with optional card recharge
- Backend: PUT /agent/users/:id/status - ban/unban user
- Frontend: add create user page for agent (select app, card type)
- Frontend: add ban/unban action in user list with confirm dialog
- Frontend: add actions dropdown column in user data table
- Fix: cloud variables records page i18n key (agent.finance.to -> agent.cloudVariables.records.to)
- Add i18n keys for agent user management (create, ban, unban)
This commit is contained in:
2026-05-11 08:24:30 +08:00
parent 3cea807353
commit 57e1d10689
9 changed files with 793 additions and 7 deletions
+6
View File
@@ -444,6 +444,12 @@ const routes: RouteRecordRaw[] = [
component: () => import('@/pages/agent/users/index.vue'),
meta: { title: '用户管理 - 代理商后台' },
},
{
path: 'users/create',
name: 'AgentUserCreate',
component: () => import('@/pages/agent/users/create.vue'),
meta: { title: '创建用户 - 代理商后台' },
},
{
path: 'finance',
name: 'AgentFinance',