mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-12 12:38:31 +08:00
refactor(ui): 简化模型权限编辑对话框交互
- 将模型权限对话框从双栏穿梭框重构为单面板多选模式 - 简化对话框尺寸,优化布局为单列显示避免模型名称截断 - 模型列表移除能力列,新增快捷添加映射按钮 - 支持从模型列表直接跳转到模型映射对话框并预选模型
This commit is contained in:
@@ -357,6 +357,7 @@
|
||||
@edit-model="handleEditModel"
|
||||
@delete-model="handleDeleteModel"
|
||||
@batch-assign="handleBatchAssign"
|
||||
@add-mapping="handleAddMapping"
|
||||
/>
|
||||
|
||||
<!-- 模型名称映射 -->
|
||||
@@ -951,6 +952,11 @@ function handleBatchAssign() {
|
||||
batchAssignDialogOpen.value = true
|
||||
}
|
||||
|
||||
// 处理添加映射(从 ModelsTab 触发)
|
||||
function handleAddMapping(model: Model) {
|
||||
modelAliasesTabRef.value?.openAddDialogForModel(model.id)
|
||||
}
|
||||
|
||||
// 处理批量关联完成
|
||||
async function handleBatchAssignChanged() {
|
||||
await loadProvider()
|
||||
|
||||
Reference in New Issue
Block a user