|
|
|
@@ -336,6 +336,7 @@ |
|
|
|
onChange:function(value){ |
|
|
|
$(".ui.dropdown.selection.search.width70").addClass("loading") |
|
|
|
$('#choice_version').dropdown('clear') |
|
|
|
$('#choice_file').dropdown('clear') |
|
|
|
$("#model-version").empty() |
|
|
|
loadModelVersion(value) |
|
|
|
} |
|
|
|
@@ -375,17 +376,23 @@ |
|
|
|
} |
|
|
|
function loadModelFile(modelId){ |
|
|
|
console.log("modelId=" + modelId); |
|
|
|
$.get(`${repolink}/modelmanage/query_modelfile_for_predict?ID=${modelId}`, (data) => { |
|
|
|
const n_length = data.length |
|
|
|
let file_html='' |
|
|
|
for (let i=0;i<n_length;i++){ |
|
|
|
file_html += `<div class="item" data-value="${data[i].FileName}">${data[i].FileName}</div>` |
|
|
|
file_html += '</div>' |
|
|
|
} |
|
|
|
$("#model-file").append(file_html) |
|
|
|
$('#choice_file .default.text').text(data[0].FileName) |
|
|
|
$('#choice_file input[name="ModelFile"]').val(data[0].FileName) |
|
|
|
}) |
|
|
|
if(modelId ==null || modelId ==""){ |
|
|
|
$('#choice_file').dropdown('clear') |
|
|
|
}else{ |
|
|
|
$.get(`${repolink}/modelmanage/query_modelfile_for_predict?ID=${modelId}`, (data) => { |
|
|
|
const n_length = data.length |
|
|
|
let file_html='' |
|
|
|
for (let i=0;i<n_length;i++){ |
|
|
|
file_html += `<div class="item" data-value="${data[i].FileName}">${data[i].FileName}</div>` |
|
|
|
file_html += '</div>' |
|
|
|
} |
|
|
|
$("#model-file").append(file_html) |
|
|
|
$('#choice_file .default.text').text(data[0].FileName) |
|
|
|
$('#choice_file input[name="ModelFile"]').val(data[0].FileName) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
function loadModelVersion(value){ |
|
|
|
console.log("value=" + value); |
|
|
|
|