| @@ -258,17 +258,22 @@ | |||||
| } | } | ||||
| function loadModelVersion(value){ | function loadModelVersion(value){ | ||||
| console.log("value=" + 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> | </script> | ||||