PKUHPC / SCOW

Super Computing On Web
https://www.pkuscow.com/
Mulan Permissive Software License, Version 2
198 stars 44 forks source link

feat(mis): 管理系统仪表盘账户信息显示优化 #1242

Closed cuvalign closed 3 months ago

cuvalign commented 4 months ago

仪表盘中账户信息展示当前用户所在的账户信息,具体调整如下:

  1. 左上角为账户名,右上角为上锁图标,下方为可用额度;
  2. 当账户或者用户状态均为正常时:
    1. 右上角隐藏锁的图标;
    2. 有设置限额,可用额度=用户限额-已用额度;
    3. 未设置限额且账户在白名单中,可用额度无限,显示为"不限";
    4. 未设置限额且账户不在白名单中,可用额度=账户余额-封锁阈值;
  3. 当账户或者用户有一个非正常状态时(封锁/欠费/限额):
    1. 右上角用锁表示不可用,避免用文字误导;
    2. 无可用额度,显示为“-”;

原设计示意: Image 兼容账户名超出的情况:

fe048395c30084236836df3698a613a

实际完成示意: QQ截图20240509161310

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 03603a5747fe86f23b064c5e93d7edbef0608be0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages | Name | Type | | --------------------------- | ----- | | @scow/grpc-api | Minor | | @scow/mis-server | Patch | | @scow/mis-web | Patch | | @scow/protos | Patch | | @scow/lib-hook | Patch | | @scow/lib-operation-log | Patch | | @scow/lib-scheduler-adapter | Patch | | @scow/lib-server | Patch | | @scow/audit-server | Patch | | @scow/portal-server | Patch | | @scow/portal-web | Patch | | @scow/ai | Patch | | @scow/auth | Patch | | @scow/gateway | Patch | | @scow/cli | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR