Browse Source

提交代码。

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

+ 15
- 10
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -258,17 +258,22 @@
}
function loadModelVersion(value){
console.log("value=" + value);
let nameMap = modelData.nameMap
let versionList = nameMap[value]
n_length = versionList.length
let train_html=''
for (let i=0;i<n_length;i++){
train_html += `<div class="item" data-value="${versionList[i].ID}">${versionList[i].Version}</div>`
train_html += '</div>'
if(value ==null && value ==""){
$(".ui.dropdown.selection.search.width70").removeClass("loading")
}else{
let nameMap = modelData.nameMap
let versionList = nameMap[value]
n_length = versionList.length
let train_html=''
for (let i=0;i<n_length;i++){
train_html += `<div class="item" data-value="${versionList[i].ID}">${versionList[i].Version}</div>`
train_html += '</div>'
}
$("#model-version").append(train_html)
$(".ui.dropdown.selection.search.width70").removeClass("loading")
$('#choice_version .default.text').text(versionList[0].Version)
}
$("#model-version").append(train_html)
$(".ui.dropdown.selection.search.width70").removeClass("loading")
$('#choice_version .default.text').text(versionList[0].Version)
}
</script>


Loading…
Cancel
Save