fix:修改bug: 虚流量关闭的时候还是显示了
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m46s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m46s
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Change: 按虚流量启用状态隐藏资产套餐虚流量展示
|
||||
|
||||
## Why
|
||||
|
||||
资产信息页的当前生效套餐和套餐列表已经会展示虚流量使用、停机阈值和百分比。但当接口返回 `enable_virtual_data: false` 时,该套餐并未启用虚流量,上述虚流量相关展示会造成误解。
|
||||
|
||||
## What Changes
|
||||
|
||||
- 在资产信息页“当前生效套餐”中,当当前套餐 `enable_virtual_data` 为 `false` 时隐藏“虚流量使用”区块。
|
||||
- 在资产信息页“套餐列表”中,当套餐记录 `enable_virtual_data` 为 `false` 时隐藏“已使用虚流量 / 停机阈值 / 虚流量进度百分比”展示。
|
||||
- 现有权限 `asset_info:view_current_package_virtual_usage` 仍继续生效;只有同时满足拥有权限且 `enable_virtual_data !== false` 时才展示虚流量信息。
|
||||
- 不改变真流量展示和非管理员合并流量摘要的既有逻辑。
|
||||
|
||||
## Impact
|
||||
|
||||
- Affected specs:
|
||||
- `asset-package-traffic-permissions`
|
||||
- Affected code:
|
||||
- `src/views/asset-management/asset-information/components/CurrentPackageCard.vue`
|
||||
- `src/views/asset-management/asset-information/components/PackageListCard.vue`
|
||||
Reference in New Issue
Block a user