diff --git a/tenant-platform/src/api/bugcollect.ts b/tenant-platform/src/api/bugcollect.ts index bc58fc8..4c76dc5 100644 --- a/tenant-platform/src/api/bugcollect.ts +++ b/tenant-platform/src/api/bugcollect.ts @@ -147,6 +147,10 @@ export const bugCollectApi = { return client.put<{ data: void }>(`/bugcollect/v1/issues/${id}/ignore`) }, + reopenIssue(id: string | number) { + return client.put<{ data: void }>(`/bugcollect/v1/issues/${id}/reopen`) + }, + assignIssue(id: string | number, assignee: string) { return client.put<{ data: void }>(`/bugcollect/v1/issues/${id}/assign`, { assignee }) }, diff --git a/tenant-platform/src/views/bug-collect/BugCollectIssueDetail.vue b/tenant-platform/src/views/bug-collect/BugCollectIssueDetail.vue index 503c04d..3eef210 100644 --- a/tenant-platform/src/views/bug-collect/BugCollectIssueDetail.vue +++ b/tenant-platform/src/views/bug-collect/BugCollectIssueDetail.vue @@ -1,22 +1,42 @@ - + + + + 标记已解决 + 重新打开 + 忽略 + 删除 + + - + 基本信息 - - {{ detail.type }} + + {{ detail.level ?? '-' }} - {{ detail.platform }} + {{ detail.platform ?? '-' }} - - {{ detail.isResolved ? '已解决' : '未解决' }} - + {{ statusLabel(detail.status) }} - {{ detail.appVersion ?? '-' }} + {{ detail.release ?? '-' }} {{ detail.count }} + {{ detail.affectedUsers ?? 0 }} + {{ detail.assignee ?? '未分配' }} {{ detail.fingerprint ?? '-' }} @@ -25,30 +45,59 @@ - - - Stack Trace - {{ latestStack }} + + + + 崩溃信息 + + {{ latestException.type }}: {{ latestException.value }} + + + {{ latestException.stackSymbolicated || latestException.stacktrace || '(无堆栈信息)' }} + + + + + 设备信息 + + {{ latestDevice.model ?? '-' }} + {{ latestDevice.manufacturer ?? '-' }} + + {{ latestDevice.osName ?? '' }} {{ latestDevice.osVersion ?? '' }} + + {{ latestDevice.locale ?? '-' }} + {{ latestDevice.timezone ?? '-' }} + + {{ latestDevice.freeMemoryMb != null ? latestDevice.freeMemoryMb + ' MB' : '-' }} + + {{ latestDevice.isEmulator ? '是' : '否' }} + {{ latestDevice.buildType ?? '-' }} + 最近崩溃事件 - + + {{ row.userId ?? '-' }} + - - + + + + {{ row.exception?.value ?? '-' }} + {{ formatTime(row.createdAt) }} - + 查看 - {{ row.stackSymbolicated || row.stack }} + {{ row.exception?.stackSymbolicated || row.exception?.stacktrace }} - @@ -57,42 +106,124 @@ - +
{{ latestStack }}
{{ latestException.stackSymbolicated || latestException.stacktrace || '(无堆栈信息)' }}
{{ row.stackSymbolicated || row.stack }}
{{ row.exception?.stackSymbolicated || row.exception?.stacktrace }}