fix: some
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 28m40s

This commit is contained in:
luo
2026-09-18 18:11:53 +08:00
parent 5e7f5eaba4
commit 08889d2e42
55 changed files with 2888 additions and 414 deletions

View File

@@ -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 显示「设备激活情况报表」