feat: 资产详情前代后代换货标识
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m17s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m17s
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
## 1. API Contract
|
||||
|
||||
- [x] 1.1 更新资产解析响应类型,支持 `exchange_trace.previous_asset` 和 `exchange_trace.next_asset`。
|
||||
- [x] 1.2 定义换货关联资产类型,读取 `asset_type`、`asset_id`、`identifier`、`exchange_no`、`can_view`。
|
||||
|
||||
## 2. Asset Detail Exchange Trace UI
|
||||
|
||||
- [x] 2.1 `previous_asset` 存在时展示“换货新资产”标签和前代资产信息。
|
||||
- [x] 2.2 `next_asset` 存在时展示“已换出旧资产”标签和后代资产信息。
|
||||
- [x] 2.3 当前资产同时存在前代和后代时,同时展示两个关联区域。
|
||||
- [x] 2.4 关联资产为空时隐藏对应区域,不通过换货状态或世代编号推导关联链路。
|
||||
|
||||
## 3. Exchange Trace Navigation
|
||||
|
||||
- [x] 3.1 `can_view=true` 时允许点击关联资产标识跳转资产详情。
|
||||
- [x] 3.2 `can_view=false` 时仅展示关联资产标识文本,不渲染跳转操作。
|
||||
|
||||
## 4. Verification
|
||||
|
||||
- [ ] 4.1 验证旧资产、新资产、中间资产和无关联资产的展示正确。
|
||||
- [ ] 4.2 验证有权限和无权限关联资产的跳转行为正确。
|
||||
- [x] 4.3 运行相关前端校验,并执行 `openspec validate update-asset-exchange-generation-links --strict`。
|
||||
Reference in New Issue
Block a user