feat: 新增全局模型批量管理功能,优化提供商更新接口

- 模型管理页面新增批量管理对话框,支持搜索、快捷筛选和批量删除
- 快捷筛选支持:无提供商、无活跃提供商、已禁用、未调用、无价格
- 提供商 PATCH 接口返回完整的 ProviderWithEndpointsSummary
- 修复系统级格式转换开关的 tooltip 文案和按钮高亮样式
This commit is contained in:
fawney19
2026-02-28 00:01:15 +08:00
parent 5bfaee47cc
commit 2a0c684e88
3 changed files with 278 additions and 10 deletions

View File

@@ -39,11 +39,11 @@
</Badge>
</div>
<div class="flex items-center gap-1 shrink-0">
<span :title="systemFormatConversionEnabled ? '请先关闭系统级开关' : (provider.enable_format_conversion ? '已启用格式转换(点击关闭)' : '启用格式转换')">
<span :title="systemFormatConversionEnabled ? '系统级格式转换已启用' : (provider.enable_format_conversion ? '已启用格式转换(点击关闭)' : '启用格式转换')">
<Button
variant="ghost"
size="icon"
:class="`${provider.enable_format_conversion ? 'text-primary' : ''} ${systemFormatConversionEnabled ? 'opacity-50' : ''}`"
:class="(provider.enable_format_conversion || systemFormatConversionEnabled) ? 'text-primary' : ''"
:disabled="systemFormatConversionEnabled"
@click="toggleFormatConversion"
>