Files
one-pipe-system/openspec/changes/update-card-gateway-imei-display/tasks.md
sexygoat fe0093972f
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m47s
feat: 卡新增IMEI
2026-05-26 18:07:39 +08:00

19 lines
1.3 KiB
Markdown
Raw 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 And State
- [x] 1.1 扩展 IoT 卡列表类型契约,支持 `gateway_card_imei` 并在列表数据映射中保留该字段。
- [x] 1.2 扩展卡资产详情与实时状态相关类型契约,支持 `gateway_card_imei`
- [x] 1.3 调整卡资产详情状态合并逻辑,确保优先使用 `resolve` 返回值,仅在其缺失时回退到 `realtime-status` 返回值。
## 2. UI
- [x] 2.1 在 IoT 卡管理列表新增 `IMEI` 列,展示 `gateway_card_imei`,空值显示 `-`
- [x] 2.2 在卡资产详情“卡信息”区域新增 `IMEI` 展示项,按 `resolve -> realtime-status -> -` 的顺序取值。
- [x] 2.3 确认设备资产详情不因 `gateway_card_imei` 新增任何基础信息展示项。
## 3. Verification
- [ ] 3.1 验证 `GET /api/admin/iot-cards/standalone` 返回 `gateway_card_imei`IoT 卡列表 `IMEI` 列展示正确。
- [ ] 3.2 验证卡资产详情在 `GET /api/admin/assets/resolve/:identifier` 返回 `gateway_card_imei` 时,页面优先展示该值。
- [ ] 3.3 验证卡资产详情在 `resolve` 未返回有效值、但 `GET /api/admin/assets/:identifier/realtime-status` 返回 `gateway_card_imei` 时,页面回退展示实时值。
- [ ] 3.4 验证两个资产接口都未返回有效 `gateway_card_imei` 时,卡资产详情显示 `-`,且设备资产详情不展示该字段。