|
|
|
@@ -382,8 +382,12 @@ |
|
|
|
$.get(`${repolink}/modelmanage/query_modelfile_for_predict?ID=${modelId}`, (data) => { |
|
|
|
const n_length = data.length |
|
|
|
let file_html='' |
|
|
|
let firstFileName ='' |
|
|
|
for (let i=0;i<n_length;i++){ |
|
|
|
if(isModel(data[i].FileName)){ |
|
|
|
if(firstFileName ==''){ |
|
|
|
firstFileName = data[i].FileName; |
|
|
|
} |
|
|
|
file_html += `<div class="item" data-value="${data[i].FileName}">${data[i].FileName}</div>` |
|
|
|
file_html += '</div>' |
|
|
|
}else{ |
|
|
|
@@ -391,8 +395,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
$("#model-file").append(file_html) |
|
|
|
$('#choice_file .default.text').text(data[0].FileName) |
|
|
|
$('#choice_file input[name="ModelFile"]').val(data[0].FileName) |
|
|
|
$('#choice_file .default.text').text(firstFileName) |
|
|
|
$('#choice_file input[name="ModelFile"]').val(firstFileName) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|