|
@@ -559,17 +559,17 @@ export function CustomerWorkspacePage() {
|
|
|
|
|
|
|
|
<dl className="customer-record-metrics" aria-label="客户业务摘要">
|
|
<dl className="customer-record-metrics" aria-label="客户业务摘要">
|
|
|
<div>
|
|
<div>
|
|
|
- <dt><UsersRound size={16} aria-hidden="true" />分账号</dt>
|
|
|
|
|
|
|
+ <dt><UserCheck size={16} aria-hidden="true" />在用分账号</dt>
|
|
|
<dd>
|
|
<dd>
|
|
|
- <strong>{metricCount(accounts.data?.total, accounts.loading, accounts.error)}</strong>
|
|
|
|
|
- <small>订阅额度 <TextCell value={customer?.quota_cents != null ? `${customer.quota_cents} 席` : undefined} /></small>
|
|
|
|
|
|
|
+ <strong>{metricCount(accounts.data ? accountRows.filter((row) => row.status === "in_use").length : undefined, accounts.loading, accounts.error)}</strong>
|
|
|
|
|
+ <small>{(accounts.data?.total ?? 0) > accountRows.length ? "当前已加载账号中在用" : "服务状态为在用"}</small>
|
|
|
</dd>
|
|
</dd>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
- <dt><UserCheck size={16} aria-hidden="true" />在用分账号</dt>
|
|
|
|
|
|
|
+ <dt><UsersRound size={16} aria-hidden="true" />分账号</dt>
|
|
|
<dd>
|
|
<dd>
|
|
|
- <strong>{metricCount(accounts.data ? accountRows.filter((row) => row.status === "in_use").length : undefined, accounts.loading, accounts.error)}</strong>
|
|
|
|
|
- <small>{(accounts.data?.total ?? 0) > accountRows.length ? "当前已加载账号中在用" : "服务状态为在用"}</small>
|
|
|
|
|
|
|
+ <strong>{metricCount(accounts.data?.total, accounts.loading, accounts.error)}</strong>
|
|
|
|
|
+ <small>订阅额度 <TextCell value={customer?.quota_cents != null ? `${customer.quota_cents} 席` : undefined} /></small>
|
|
|
</dd>
|
|
</dd>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|