This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Additional Export Task Scenes
|
||||
|
||||
The admin frontend SHALL support three additional export task scenes: `expiring_asset`(临期资产)、`operations_activation`(设备激活情况报表)、`operations_renewal`(套餐续费情况报表)。每个场景 SHALL 有独立的导出任务列表子页,页面固定查询该场景任务(`GET /api/admin/export-tasks` with `scene=<scene>`),并提供 `export_task:<scene>:detail` / `export_task:<scene>:download` 权限配置。
|
||||
|
||||
#### Scenario: Open expiring asset export task page
|
||||
|
||||
- **GIVEN** 用户打开「导出临期资产」页面
|
||||
- **WHEN** 页面查询导出任务列表
|
||||
- **THEN** 系统 MUST call `GET /api/admin/export-tasks` with `scene=expiring_asset`
|
||||
|
||||
#### Scenario: Open operations report export task pages
|
||||
|
||||
- **GIVEN** 用户打开「导出设备激活情况报表」或「导出套餐续费情况报表」页面
|
||||
- **WHEN** 页面查询导出任务列表
|
||||
- **THEN** 系统 MUST call `GET /api/admin/export-tasks` with `scene=operations_activation` 或 `scene=operations_renewal`
|
||||
|
||||
#### Scenario: Gate new scene actions
|
||||
|
||||
- **WHEN** 任一新增场景页面渲染详情与下载操作
|
||||
- **THEN** 系统 MUST 使用对应场景的 `export_task:<scene>:detail` 与 `export_task:<scene>:download` 权限码
|
||||
|
||||
### Requirement: Export Scene Display Names
|
||||
|
||||
导出任务创建弹窗与导出任务列表 SHALL 按最新业务口径展示场景名称:`commission_record` 显示为「佣金明细」(原「佣金记录」),`package_traffic_alert` 显示为「套餐真流量达量预警」(原「套餐真流量预警」);新增场景依次显示为「临期资产」「设备激活情况报表」「套餐续费情况报表」。
|
||||
|
||||
#### Scenario: Show renamed scene names
|
||||
|
||||
- **WHEN** 导出弹窗以 `scene=commission_record` 打开
|
||||
- **THEN** 弹窗 MUST 显示「佣金明细」
|
||||
- **AND** 以 `scene=package_traffic_alert` 打开时 MUST 显示「套餐真流量达量预警」
|
||||
|
||||
#### Scenario: Show new scene names
|
||||
|
||||
- **WHEN** 导出弹窗以 `scene=operations_activation` 打开
|
||||
- **THEN** 弹窗 MUST 显示「设备激活情况报表」
|
||||
@@ -0,0 +1,31 @@
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: 运营报表趋势分析
|
||||
|
||||
系统 SHALL 在仪表台分析页(`/dashboard/analysis`)以「设备激活趋势」「套餐续费趋势」两个组件展示运营报表趋势数据。每个组件 SHALL 提供时间范围选择、统计粒度下拉(按日/按月)与刷新操作,并复用 `OperationsTrendChart` 以时间点为横轴渲染关键指标曲线。两个组件 SHALL 仅对超级管理员/平台账号可见。
|
||||
|
||||
#### Scenario: 展示激活趋势
|
||||
|
||||
- **WHEN** 用户在仪表台分析页展开「设备激活趋势」组件并选择时间范围
|
||||
- **THEN** 请求 `GET /api/admin/operations-reports/activation-trend` 并按所选 `granularity`(日/月)渲染多系列曲线
|
||||
|
||||
#### Scenario: 切换统计粒度
|
||||
|
||||
- **WHEN** 用户将统计粒度从「按日」切换为「按月」
|
||||
- **THEN** 组件以 `granularity=month` 重新请求趋势接口并刷新图表
|
||||
|
||||
## MODIFIED Requirements
|
||||
|
||||
### Requirement: 运营报表页面
|
||||
|
||||
系统 SHALL 提供顶层菜单「运营报表」及两个子页「设备激活报表」「套餐续费报表」。每页 SHALL 包含时间范围与分组筛选、数据快照信息、汇总表格与导出按钮;页面 SHALL NOT 展示「汇总数据」标题,也 SHALL NOT 在页面内渲染趋势图或提供统计粒度筛选。
|
||||
|
||||
#### Scenario: 查询汇总并渲染表格
|
||||
|
||||
- **WHEN** 用户选择时间范围与分组后点击查询
|
||||
- **THEN** 请求对应汇总接口并以表格展示各分组指标与合计行
|
||||
|
||||
#### Scenario: 导出报表
|
||||
|
||||
- **WHEN** 用户点击导出并成功创建异步任务
|
||||
- **THEN** 前端轮询任务状态,任务完成后可下载文件
|
||||
Reference in New Issue
Block a user