Browse Source

fix issue

tags/v1.22.1.2
zhoupzh 3 years ago
parent
commit
999edd0767
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      templates/repo/modelarts/inferencejob/new.tmpl

+ 4
- 2
templates/repo/modelarts/inferencejob/new.tmpl View File

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


Loading…
Cancel
Save