1. 我的模型页面修改
This commit is contained in:
@@ -443,7 +443,7 @@
|
||||
columns: [
|
||||
{ title: '模型名称', key: 'name' },
|
||||
{ title: '训练方法', key: 'train_methods', render: (val) => val && val[0] ? val[0].name : '-' },
|
||||
{ title: '模型路径', key: 'path', render: (val) => `<span class="text-xs text-gray-500 truncate max-w-xs block" title="${val}">${val}</span>` },
|
||||
{ title: '基座模型', key: 'base_model_path', render: (val) => `<span class="text-xs text-gray-500 truncate block" title="${val}">${val || '-'}</span>` },
|
||||
{ title: '创建时间', key: 'create_time', render: (val) => val ? new Date(val).toLocaleString('zh-CN') : '-' }
|
||||
],
|
||||
actions: ['view', 'delete']
|
||||
@@ -3164,12 +3164,10 @@
|
||||
document.body.style.overflow = '';
|
||||
}
|
||||
|
||||
// 查看已训练模型详情
|
||||
// 查看已训练模型详情 - 跳转到推理页面
|
||||
window.viewTrainedModel = function(name, method, path) {
|
||||
const message = '<p class="mb-2">模型名称:' + name + '</p>' +
|
||||
'<p class="mb-2">训练方法:' + method + '</p>' +
|
||||
'<p class="text-sm text-gray-500 break-all">路径:' + path + '</p>';
|
||||
showMessage('模型详情', message, 'info');
|
||||
// 跳转到推理测试页面(main.html在pages目录下,所以直接用文件名)
|
||||
window.location.href = `model-inference.html?model=${encodeURIComponent(name)}&method=${encodeURIComponent(method)}`;
|
||||
};
|
||||
|
||||
// 确认弹窗(两个按钮)- 使用 window 确保全局可访问
|
||||
|
||||
Reference in New Issue
Block a user