feat: 全局模型新增活跃 Provider 数量统计

- 后端优化查询,使用条件聚合同时获取总 Provider 数和活跃数
- 前端展示格式改为「活跃数/总数」,便于了解可用 Provider 情况
This commit is contained in:
fawney19
2026-02-09 22:26:30 +08:00
parent 7b28680cda
commit b11e9de6a7
5 changed files with 64 additions and 9 deletions

View File

@@ -386,7 +386,7 @@
<Building2 class="w-4 h-4 text-muted-foreground" />
</div>
<p class="text-2xl font-bold mt-1">
{{ model.provider_count || 0 }}
{{ model.active_provider_count || 0 }}<span class="text-sm text-muted-foreground font-normal">/{{ model.provider_count || 0 }}</span>
</p>
</div>
<div class="p-3 rounded-lg border bg-muted/20">