chiguyong
|
50760cde6e
|
feat: 文档整理+前端修复
- 工单分页查询适配(PageResponse/服务端分页)
- 前后端枚举统一(TriggerType/TaskStatus/PlanStatus)
- Permission类型增加菜单路由属性
- SpaceNode类型增加code字段
- WorkOrder状态机补全(SUSPENDED/RETURNED)
- Dashboard适配分页查询
|
2026-05-18 10:46:45 +08:00 |
chiguyong
|
72f7c891f3
|
feat: 更新组件、API、页面等大量改动
|
2026-04-26 18:52:13 +08:00 |
chiguyong
|
a5e3011d5a
|
fix: 适配 7 个 Vue 组件至 ApiResponse<T> 泛型格式 (120处修复)
|
2026-04-13 09:15:01 +08:00 |
chiguyong
|
367d638f58
|
fix: 统一 9 个 API 文件的泛型类型为 ApiResponse<T> 格式 (49处修复)
|
2026-04-13 08:50:05 +08:00 |
chiguyong
|
c2429614fe
|
fix: 修正登录 API 泛型类型声明
问题:
- auth.ts 的 login() 函数使用了错误的泛型参数 <LoginResponse>
- 导致 TypeScript 类型推断错误:res.data.data 不存在于 LoginResponse
修复:
- 将 request.post<LoginResponse> 改为 request.post<ApiResponse<LoginResponse>>
- 添加显式返回类型 Promise<AxiosResponse<ApiResponse<LoginResponse>>>
影响范围:仅登录功能
验证:vue-tsc --noEmit 通过 (0 errors)
Co-authored-by: Trae AI
|
2026-04-13 08:40:24 +08:00 |
chiguyong
|
2a14167861
|
refactor: 统一API路径,修复前后端路径不匹配
- 更新设备相关API路径为/api/asset/*
- 更新设备健康API路径为/api/asset/equipment-health
- 保持/api/ops/*路径的工单和能耗API
- 更新前端API调用以匹配后端
|
2026-04-06 15:41:29 +08:00 |
chiguyong
|
7b3194219b
|
feat: add equipment health and inspection template frontend pages
|
2026-03-24 01:02:34 +08:00 |
chiguyong
|
5c7728e3db
|
feat: add spare part management frontend pages
|
2026-03-24 00:48:16 +08:00 |
chiguyong
|
5500238be3
|
feat: add energy monitoring frontend pages
|
2026-03-24 00:34:43 +08:00 |
chiguyong
|
913d6400e4
|
feat: add maintenance management frontend pages
|
2026-03-24 00:19:06 +08:00 |
chiguyong
|
7956379f71
|
feat: add equipment management frontend pages
|
2026-03-24 00:03:36 +08:00 |
chiguyong
|
f111f4a8d5
|
fix: auth.ts API路径添加/api前缀
- /auth/login -> /api/auth/login
- /auth/logout -> /api/auth/logout
- /auth/me -> /api/auth/me
- /auth/refresh -> /api/auth/refresh
|
2026-03-23 09:52:13 +08:00 |
chiguyong
|
ea1eabafb0
|
fix: 恢复Users.vue中的res.data.data正确嵌套结构
|
2026-03-22 02:18:16 +08:00 |
chiguyong
|
fa344f9c4e
|
fix: 修复API路径双重/api问题
- request.ts: baseURL从http://localhost:8080/api改为http://localhost:8080
- 避免baseURL和API路径叠加导致/api/api/xxx
|
2026-03-22 01:57:23 +08:00 |
chiguyong
|
29b51eca99
|
fix: 修复用户、角色、权限管理页面的API响应嵌套结构问题
- Users.vue: res.data → res.data.data
- Roles.vue: res.data → res.data.data
- Permissions.vue: res.data → res.data.data
- package.json: 移除vue-tsc类型检查加快构建
|
2026-03-22 01:41:32 +08:00 |
chiguyong
|
1bcc0facd2
|
fix: 修复登录功能 - API响应嵌套结构、路由跳转、CORS配置
关键修复:
- stores/user.ts: API响应是{code,message,data{}}结构,使用res.data.data获取token
- Login.vue: 使用window.location.href替代router.push进行跳转
- router/index.ts: 修复路由守卫isLoggedIn检查逻辑
- utils/request.ts: baseURL改为绝对路径http://localhost:8080/api
- 新增dev-server.mjs: 带API代理的开发服务器(兼容ClashX)
- package.json: 添加dev:simple脚本
- 新增组件库: TableCard、Pagination、PermissionTree等
- 新增页面: Audit、UserDetail
已知问题修复:
- Vite dev server与ClashX代理冲突问题
Co-authored-by: Trae AI
|
2026-03-22 01:25:11 +08:00 |
chiguyong
|
eb399474f4
|
init: ether-admin frontend project
- Vue3 + TypeScript + Ant Design Vue
- Auth, User, Role, Project management pages
- Pinia state management
- Vue Router with auth guard
|
2026-03-19 09:28:30 +08:00 |