提交图

14 次代码提交

作者 SHA1 备注 提交日期
XuqmGroup
563a8d8af6 fix: BugCollect 前端空 catch 块添加错误提示
修复:
- BugCollectIssues.vue - 添加 ElMessage.error
- BugCollectEvents.vue - 添加 ElMessage.error
- BugCollectRankFreq.vue - 添加 ElMessage.error
- BugCollectRankRisk.vue - 添加 ElMessage.error
- BugCollectSourcemaps.vue - 添加 ElMessage.error

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-19 19:38:49 +08:00
XuqmGroup
2c4dcaf130 refactor: 抽取 BugCollect 公共辅助函数
新增:
- utils/bugCollect.ts - levelTag/statusTag/statusLabel/formatTime/platformTagType

重构:
- BugCollectOverview.vue - 使用公共 levelTag
- BugCollectIssues.vue - 使用公共辅助函数
- BugCollectEvents.vue - 使用公共 formatTime
- BugCollectSourcemaps.vue - 使用公共辅助函数
- BugCollectRankFreq.vue - 使用公共辅助函数
- BugCollectRankRisk.vue - 使用公共辅助函数
- BugCollectIssueDetail.vue - 使用公共辅助函数

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-19 19:38:49 +08:00
XuqmGroup
7b3ef8189e feat: 添加 Sourcemap 管理页面
- 新增 BugCollectSourcemaps.vue 组件
- 添加路由 /bugcollect/sourcemaps
- 添加导航菜单项
- 展示已上传的 Sourcemap 列表
- 包含使用说明(Android/RN/手动上传)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-19 03:02:57 +08:00
XuqmGroup
563a2c5628 fix: bugcollect 时间显示时区问题 - 追加 Z 表示 UTC 再转本地时间
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-19 02:16:17 +08:00
XuqmGroup
1dc188b2be feat: update 统计图表 + bugcollect ECharts 图表增强 + 修复字段映射
- update: 新增版本分布/设备分布/厂商分布/日趋势统计图表(ECharts)
- update: 添加 echarts 依赖
- bugcollect: 概览页新增 5 张 ECharts 图表(级别/状态/平台/版本分布 + 每日趋势)
- bugcollect: 高频/高危排行页添加横向柱状图
- bugcollect: Issue 详情页添加趋势双轴折线图
- bugcollect: 漏斗页替换为 ECharts 漏斗图
- bugcollect: 修复 type→level、isResolved→status 字段引用
- bugcollect: 新增 statistics 和 issueTrend API

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-19 01:23:32 +08:00
XuqmGroup
eb85e53d3f fix(jenkins): 修复Jenkins构建中的字符编码和API参数问题
- 在Jenkinsfile中添加JAVA_TOOL_OPTIONS环境变量设置UTF-8编码
- 在Windows批处理命令前添加chcp 65001命令解决中文字符显示问题
- 修复BugCollectIssues组件中API参数从type改为level
- 修复BugCollectWebhooks组件中API字段映射eventTypes到events和cooldownSeconds到cooldownSec
- 更新webhook请求数据结构以匹配后端API要求
2026-06-18 11:14:34 +08:00
XuqmGroup
66414f7987 fix(bugcollect): 修复问题详情页字段映射,新增设备信息/状态管理
- 修复 level/release 字段未显示(原引用了废弃的 type/appVersion)
- 新增设备信息卡片(解析 device JSON 展示型号/系统/内存等)
- 新增状态管理操作栏(标记已解决/忽略/重新打开/删除)
- 修复事件列表使用 exception.value/stacktrace(新格式)
- 新增 reopenIssue API 方法

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 10:47:52 +08:00
XuqmGroup
6d6fd3363e fix(bugcollect): 更新 IssueDetail 视图对齐后端 IssueResponse 字段
移除不存在的字段(status/osVersion/deviceModel/affectedUsers/stackTrace/sourceContext/recentEvents),
改用 isResolved/events[].stack/events 替代,通过 TypeScript 类型检查。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-17 10:24:01 +08:00
XuqmGroup
3676241f6a fix(bugcollect): 对齐前后端接口契约
- bugcollect.ts: issues/events 请求参数重映射(startDate/endDate→from/to,eventName→name,page 0-based+1→backend 1-based)
- BugCollectPageResult: content/totalElements → items/total(匹配后端 PageResult<T>)
- BugCollectIssue: 字段对齐 IssueResponse(id:number,isResolved,移除 affectedUsers/status)
- BugCollectEventItem: 字段对齐 IssueEventResponse(message/stack/createdAt,移除 eventName/timestamp/properties)
- BugCollectIssueRanking: 同步 isResolved,移除 affectedUsers
- 所有视图表格列更新为实际存在的字段

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-17 10:21:00 +08:00
XuqmGroup
7c97a7b90e fix(bugcollect): 修复 overview loadData 的 TypeScript 类型错误 — 改用可选链替代 ?? {}
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-17 10:10:20 +08:00
XuqmGroup
c8224bf598 fix(bugcollect): 修复 undefined.length 崩溃 — 所有视图加 gateStatus 守卫和 null safety
- 所有视图 loadData/loadWebhooks:首行加 gateStatus !== 'enabled' 守卫,避免 appKey 为空或服务未开通时发请求
- 所有视图加 watch(gateStatus) 监听,服务开通后自动刷新数据
- 所有响应体数组赋值改为 ?? [],防止后端返回 null/undefined 时 el-table 访问 .length 崩溃
- BugCollectOverview:maxRate computed 改用 crashRateTrend ?? [] 防止 undefined.map 崩溃

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-17 10:07:36 +08:00
XuqmGroup
fb5e9753a3 feat(bugcollect): 将崩溃收集移为服务管理子菜单,并增加服务开通校验
- MainLayout: 移除独立的 bug-collect 顶级子菜单,改为嵌套在服务管理下的 services-bugcollect 子菜单(桌面 + 移动抽屉均已同步)
- openedMenus: /bugcollect/* 路径下同时展开 services 和 services-bugcollect
- FeatureService.serviceType: 补充 BUG_COLLECT 枚举值
- appApi.requestActivation: 支持 BUG_COLLECT 服务类型
- useBugCollectApp: 增加 gateStatus / serviceEnabled / checkingService;appKey 变化时自动调用 getServices 检查 BUG_COLLECT 是否已开通;提供 applyDialogVisible / submitActivation 申请流程
- 全部 7 个 BugCollect 视图: 替换原 !appKey 判断为 gateStatus 四态门控(no-app / loading / not-enabled / enabled),并附加申请开通对话框

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-17 05:27:53 +08:00
XuqmGroup
5e87a17765 feat(bug-collect): 所有视图新增应用选择器,API 调用补充 appKey 参数 2026-06-17 05:00:51 +08:00
XuqmGroup
1abf05ecca feat(log): 重构日志监控功能为Bug收集系统
- 将日志监控模块重命名为Bug收集模块
- 更新路由路径从 /log/* 到 /bugcollect/*
- 修改导航菜单项名称为"Bug收集"
- 更新API代理路径从 /api/log 到 /api/bugcollect
- 新增完整的Bug收集前端功能实现
- 添加错误列表、概览、事件流水、漏斗分析等功能页面
- 实现错误详情展示包括堆栈追踪和源码上下文
- 创建新的bugcollect API接口文件和类型定义
2026-06-16 18:30:01 +08:00