feat: 新增代理流水资产标识
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m11s

This commit is contained in:
sexygoat
2026-05-29 15:44:53 +08:00
parent f62a8d98a4
commit ad56b82944
6 changed files with 256 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# Change: Add asset links to main wallet transactions
## Why
The agent fund overview detail drawer shows main wallet transaction records, but users cannot identify or navigate to the related asset for deductions tied to asset activity. The backend now returns `asset_identifier` from `GET /api/admin/shops/{shop_id}/main-wallet/transactions`, so the UI should expose it.
## What Changes
- Add an "资产标识" column to the "预充值钱包流水" table inside the agent fund overview commission detail drawer.
- Read and type the new `asset_identifier` response field from main wallet transaction rows.
- Render non-empty asset identifiers as clickable links that navigate to the asset information page for that identifier.
- Render empty asset identifiers as `-` and do not make them clickable.
## Impact
- Affected specs: `commission-management`
- Affected code:
- `src/types/api/commission.ts`
- `src/views/commission-management/agent-fund-overview/index.vue`
- Asset information route query handling is reused via `RoutesAlias.AssetInformation` and `identifier` search behavior.