|
|
|
@@ -213,7 +213,7 @@ |
|
|
|
function createModelName(){ |
|
|
|
let repoName = location.pathname.split('/')[2] |
|
|
|
let modelName = repoName + '_modelConvert_' + Math.random().toString(36).substr(2, 4) |
|
|
|
$('#name').val(modelName) |
|
|
|
$('#model_convert_name').val(modelName) |
|
|
|
} |
|
|
|
function showcreate(obj){ |
|
|
|
$('.ui.modal.second') |
|
|
|
@@ -221,9 +221,7 @@ |
|
|
|
centered: false, |
|
|
|
onShow:function(){ |
|
|
|
$('#model_header').text("创建模型转换任务") |
|
|
|
$('input[name="Version"]').addClass('model_disabled') |
|
|
|
$('.ui.dimmer').css({"background-color":"rgb(136, 136, 136,0.7)"}) |
|
|
|
$("#job-name").empty() |
|
|
|
createModelName() |
|
|
|
loadModelList() |
|
|
|
}, |
|
|
|
@@ -290,6 +288,7 @@ |
|
|
|
$("#model-version").append(train_html) |
|
|
|
$(".ui.dropdown.selection.search.width70").removeClass("loading") |
|
|
|
$('#choice_version .default.text').text(versionList[0].Version) |
|
|
|
$('#choice_version input[name="ModelVersion"]').val(versionList[i].ID) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|