You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haoliang-net/docs/02-功能清单/管理后台/02-仪表盘/00-仪表盘-索引.md

46 lines
1.7 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 仪表盘 索引
> 版本v1.0
> 最后更新2026-04-25
---
## 模块概述
系统首页,展示今日生产概览(在线机床数、产量、告警)及排行数据,提供采集服务状态监控与控制。
## 页面清单
| 页面编号 | 页面名称 | 路由 | 功能概述 |
|---------|---------|------|---------|
| 02-01 | 仪表盘页面 | /dashboard | 统计卡片+采集服务状态+机床/工人产量排行 |
## 页面功能详情
### 02-01 仪表盘页面
**路由**`/dashboard`
**功能概述**:展示在线机床数/今日产量/活跃告警统计卡片、采集服务运行状态(可启停/刷新、机床产量排行TOP10、工人产量排行TOP10
**功能列表**
| 功能编号 | 功能名称 | 触发条件 | 交互行为 | 涉及API |
|---------|---------|---------|---------|---------|
| F01 | 加载仪表盘数据 | 页面挂载 | 4个API并行请求 | 统计卡片/机床排行/工人排行/服务状态 |
| F02 | 自动刷新 | 定时器触发 | 重新请求所有数据 | 同F01 |
| F03 | 停止采集 | 点击停止按钮+服务running | 确认->调API | 采集服务控制API |
| F04 | 启动采集 | 点击启动按钮+服务stopped/error | 确认->调API | 采集服务控制API |
| F05 | 刷新配置 | 点击刷新按钮+服务running | 确认->调API | 采集服务控制API |
**路由跳转**
- 机床名称 -> 设备详情页(/machine/:id)
- 工人名称 -> 员工详情页(待设计)
- 查看全部(机床排行) -> 产量报表(待设计)
- 查看全部(工人排行) -> 产量报表(待设计)
## 子目录/文件
| 编号 | 名称 | 类型 | 索引 |
|------|------|------|------|
| 02-01 | 仪表盘页面 | 页面文件 | [02-01-仪表盘页面.md](./02-01-仪表盘页面.md) |
---