Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
da38c5601b
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      templates/repo/modelmanage/convertIndex.tmpl

+ 6
- 2
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -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)
})

}


Loading…
Cancel
Save