feat: 优化管理后台页面UI、修复TS编译错误、新增人生事件模块

- 优化 AI 配置列表页面:重构统计卡片、搜索表单、表格列展示
- 修复 3 处 TypeScript TS6133 编译错误,恢复构建
- 新增管理员修改密码和重置密码功能
- 优化小程序多个页面样式和交互
- 人生事件模块完善

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 23:23:09 +08:00
parent 60c63850ee
commit 755059807a
62 changed files with 4661 additions and 3019 deletions
+18
View File
@@ -51,3 +51,21 @@ export function deleteAdmin(id: string) {
params: { id }
})
}
// 修改管理员自己的密码(当前登录管理员)
export function changeMyPassword(data: { oldPassword: string; newPassword: string }) {
return request<ApiResponse<void>>({
url: '/admin/auth/changePassword',
method: 'post',
data
})
}
// 重置指定管理员的密码(超管操作)
export function resetAdminPassword(data: { id: string; newPassword: string }) {
return request<ApiResponse<void>>({
url: '/admin/changePassword',
method: 'post',
data
})
}