refactor(ui): 重构批量模型管理对话框为单列勾选模式

- BatchAssignModelsDialog: 从左右双栏改为单列勾选,支持统一保存
- KeyAllowedModelsEditDialog: 添加分组折叠功能,优化布局
- Dialog: 调整移动端内边距适配
- ProviderDetailDrawer: 密钥列表改为两行显示
- KeyFormDialog: 缩小对话框尺寸
- ModelsTab: 调整表格列宽
This commit is contained in:
fawney19
2026-01-11 19:33:16 +08:00
parent 76ed136228
commit 94abab3260
6 changed files with 607 additions and 595 deletions

View File

@@ -34,13 +34,13 @@
<table class="w-full text-sm table-fixed">
<thead class="bg-muted/50 text-xs uppercase tracking-wide text-muted-foreground">
<tr>
<th class="text-left px-4 py-3 font-semibold w-[50%]">
<th class="text-left px-4 py-3 font-semibold w-[45%]">
模型
</th>
<th class="text-left px-4 py-3 font-semibold w-[30%]">
价格 ($/M)
</th>
<th class="text-center px-4 py-3 font-semibold w-[20%]">
<th class="text-center px-4 py-3 font-semibold w-[25%]">
操作
</th>
</tr>
@@ -109,7 +109,7 @@
${{ formatPrice(model.effective_price_per_request ?? model.price_per_request) }}/
</span>
</template>
<!-- 无计配置 -->
<!-- 无计<EFBFBD><EFBFBD>配置 -->
<template v-if="!hasTokenPricing(model) && !hasRequestPricing(model)">
<span class="text-muted-foreground"></span>
</template>
@@ -305,7 +305,7 @@ function getStatusTitle(model: Model): string {
return '活跃但不可用'
}
// 辑模型
// <EFBFBD><EFBFBD>辑模型
function editModel(model: Model) {
emit('editModel', model)
}