feat(frontend): 新增设备型号版本分布统计与展示模块

- 后端新增接口,按型号统计全量设备版本分布,空版本计入“未知版本”
- 前端API添加获取设备版本分布的请求方法
- 首页新增各型号版本占比的饼图展示,支持展开查看完整版本列表
- 饼图支持高亮显示前10大版本,其他版本合并显示
- 设备版本数据加载失败时提供重试功能
- 优化客服反馈状态下拉选项类型定义及默认值
- 组件重构饼图模块,增强易用性和可访问性
This commit is contained in:
eafonyang
2026-09-21 15:55:09 +08:00
parent e6da74cf01
commit d82632414a
6 changed files with 230 additions and 96 deletions
@@ -15,6 +15,13 @@ export function fetchGetDeviceDaily(days: number = 30) {
});
}
export function fetchGetDeviceVersions() {
return request<Api.Dashboard.DeviceVersionStats>({
url: '/dashboard/device-versions',
method: 'get'
});
}
export function fetchGetActiveDaily(days: number = 30) {
return request<Api.Dashboard.ActiveDailyStats>({
url: '/dashboard/active-daily',