Files
luo acda0d82c8
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m30s
feat: 新增全部已使用流量和全部总流量字段
2026-07-03 12:03:52 +08:00

20 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. Contract
- [x] 1.1 扩展资产解析接口方法,支持传入 `include_usage_summary` Query 参数。
- [x] 1.2 扩展资产解析响应类型,新增 `total_virtual_used_mb?: number | null``total_virtual_remaining_mb?: number | null`
- [x] 1.3 确保后台“资产信息”页调用 `GET /api/admin/assets/resolve/:identifier` 时默认传 `include_usage_summary=true`
## 2. State And Display
- [x] 2.1 在资产信息页面状态中保留 `total_virtual_used_mb``total_virtual_remaining_mb`
- [x] 2.2 在卡资产“卡信息”区域的“运营商状态”后新增“所有套餐已用量”和“所有套餐剩余量”。
- [x] 2.3 在设备资产“设备信息”区域的“SN”后新增“所有套餐已用量”和“所有套餐剩余量”。
- [x] 2.4 新增字段按流量大小格式化展示;当响应字段为 `null``undefined` 或未请求时显示 `-`
## 3. Verification
- [ ] 3.1 验证资产信息页请求解析接口时 URL 包含 `include_usage_summary=true`
- [ ] 3.2 验证解析接口返回两个汇总字段时,卡资产详情在“运营商状态”后正确展示。
- [ ] 3.3 验证解析接口返回两个汇总字段时设备资产详情在“SN”后正确展示。
- [ ] 3.4 验证两个汇总字段为 `null` 或缺失时,页面显示 `-` 且不报错。