1. 增加了数据页面,微调页面,评估页面和模型管理界面

This commit is contained in:
2026-01-19 10:51:07 +08:00
parent ea8d5a28dd
commit 7250d5840a
5 changed files with 1284 additions and 215 deletions

View File

@@ -65,7 +65,7 @@
<nav class="flex-1 overflow-y-auto py-2">
<!-- 第一分区:模型服务 -->
<div class="sidebar-section-title">模型服务</div>
<a href="#" data-page="fine-tune" class="nav-link flex items-center px-4 py-2.5 sidebar-item-active">
<a href="#" data-page="fine-tune" class="nav-link flex items-center px-4 py-2.5 hover:bg-sidebarBg/20 transition-colors">
<i class="fa fa-cogs w-5 text-center"></i>
<span class="ml-2">模型调优</span>
</a>
@@ -300,6 +300,9 @@
if (link.dataset.page === defaultPage) {
link.classList.add('sidebar-item-active');
link.classList.remove('hover:bg-sidebarBg/20', 'transition-colors');
} else {
link.classList.remove('sidebar-item-active');
link.classList.add('hover:bg-sidebarBg/20', 'transition-colors');
}
});
@@ -515,14 +518,13 @@
// 显示创建表单页面
function showCreateModal(apiType) {
if (apiType === 'fine-tune') {
currentParentPage = currentPage;
currentPage = 'fine-tune-create';
const container = document.getElementById('page-content');
container.innerHTML = renderFineTuneCreatePage();
bindCreatePageEvents();
loadDatasets();
window.location.href = 'fine-tune-create.html';
} else if (apiType === 'model-manage') {
window.location.href = 'model-manage-create.html';
} else if (apiType === 'model-eval') {
window.location.href = 'model-eval-create.html';
} else if (apiType === 'dataset-manage') {
window.location.href = 'dataset-create.html';
} else {
showMessage('提示', '该功能开发中...', 'info');
}
@@ -544,6 +546,12 @@
return `
<div class="bg-white rounded-lg shadow-sm">
<div class="flex items-center justify-between p-4 border-b border-gray-100">
<div class="flex items-center">
<a href="#" onclick="goBack()" class="text-gray-500 hover:text-gray-700 flex items-center px-3 py-1.5 rounded hover:bg-gray-100">
<i class="fa fa-arrow-left"></i>
<span class="ml-1">上一步</span>
</a>
</div>
<div class="flex items-center text-sm">
<span class="text-primary cursor-pointer hover:underline" onclick="goBack()">模型调优</span>
<span class="mx-2 text-gray-300">/</span>