|
|
|
@@ -287,7 +287,7 @@ |
|
|
|
nameMap[value].forEach(element => { |
|
|
|
let {TrainTaskInfo} = element |
|
|
|
TrainTaskInfo = JSON.parse(TrainTaskInfo) |
|
|
|
html += `<div class="item" data-value=${TrainTaskInfo.TrainUrl}>${element.Version}</div>` |
|
|
|
html += `<div class="item" data-id="${element.ID}" data-value="${TrainTaskInfo.TrainUrl}">${element.Version}</div>` |
|
|
|
}); |
|
|
|
$('#model_name_version').append(html) |
|
|
|
$("#select_model_version").removeClass("loading") |
|
|
|
@@ -298,9 +298,11 @@ |
|
|
|
$(function(){ |
|
|
|
$('#select_model_version').dropdown({ |
|
|
|
onChange: function(value, text, $selectedItem) { |
|
|
|
console.log(value,text,$selectedItem) |
|
|
|
const dataID=$selectedItem[0].getAttribute("data-id") |
|
|
|
$("#select_model_checkpoint").addClass("loading") |
|
|
|
let html = '' |
|
|
|
loadCheckpointList(value).then((res)=>{ |
|
|
|
loadCheckpointList(dataID).then((res)=>{ |
|
|
|
res.forEach(element => { |
|
|
|
html += `<div class="item" data-value=${element.FileName}>${element.FileName}</div>` |
|
|
|
}) |
|
|
|
|