diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index e4bfce479..e9dc80d4c 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -120,7 +120,7 @@
` + let nameMap = modelData.nameMap + let versionList = nameMap[value] + n_length = versionList.length + let train_html='' + for (let i=0;i${versionList[i]}
` train_html += '' - } - if(data.length){ - $("#job-version").append(train_html) - $(".ui.dropdown.selection.search.width70").removeClass("loading") - var versionName = data[0].VersionName; - if(versionName==null || versionName==""){ - versionName="V0001"; - } - $('#choice_version .default.text').text(versionName) - $('#choice_version input[name="VersionName"]').val(versionName) - } - - }) + } + $("#model-version").append(train_html) + $(".ui.dropdown.selection.search.width70").removeClass("loading") + $('#choice_version .default.text').text(versionList[0]) }