liuyun ad002003fe chore(openspec): track fe-admin-user-page implementation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 01:16:08 +08:00

19 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 1. 数据源
- [x] 1.1 `src/api/user.ts`:定义 `User` 类型(字段对齐后端)+ 模块级 mock 数组 + `listUsers/createUser/updateUser/deleteUser/resetPassword` 异步函数(返回 `{code,message,data}`)
## 2. 用户管理页面
- [x] 2.1 `src/pages/system/user/index.vue`:搜索表单(用户名/昵称/手机/状态 + 查询/重置)
- [x] 2.2 表格列(用户名/昵称/邮箱/手机/状态 tag/组织/创建时间)+ 操作列(编辑/重置密码/删除)
- [x] 2.3 分页(el-pagination,page/pageSize/total)
- [x] 2.4 新增/编辑弹窗(el-dialog + el-form,校验用户名/密码必填;编辑时用户名只读)
- [x] 2.5 重置密码弹窗(新密码)
- [x] 2.6 删除确认(ElMessageBox.confirm)+ 成功/失败提示(ElMessage)
## 3. 验证
- [x] 3.1 `pnpm dev` 登录后进入「用户管理」,列表/搜索/分页正常
- [x] 3.2 新增/编辑/重置密码/删除流程可用,状态标签颜色正确
- [x] 3.3 `pnpm type-check` 与 `pnpm build-only` 通过