| @@ -153,6 +153,19 @@ | |||
| {{end}} | |||
| </div> | |||
| <!-- 下载 --> | |||
| <div class="ui compact buttons"> | |||
| {{$.CsrfTokenHtml}} | |||
| {{if .CanDel}} | |||
| <a style="padding: 0.5rem 1rem;margin-left:0.2rem" id="model-download-{{.JobID}}" href="{{$.RepoLink}}/inference-job/{{.JobID}}/downloadall?version_name={{.VersionName}}" class="ui basic blue button" style="border-radius: .28571429rem;"> | |||
| {{$.i18n.Tr "repo.download"}} | |||
| </a> | |||
| {{else}} | |||
| <a style="padding: 0.5rem 1rem;margin-left:0.2rem" class="ui basic button disabled" style="border-radius: .28571429rem;"> | |||
| {{$.i18n.Tr "repo.download"}} | |||
| </a> | |||
| {{end}} | |||
| </div> | |||
| <!-- 删除任务 --> | |||
| <div class="ui compact buttons"> | |||
| {{$.CsrfTokenHtml}} | |||
| @@ -139,7 +139,7 @@ | |||
| {{end}} | |||
| </select> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| <div class="eight wide field" id="engine_name"> | |||
| <select class="ui fluid selection dropdown nowrap" id="trainjob_engine_versions" name="engine_id" style="white-space: nowrap;"> | |||
| {{range .engine_versions}} | |||
| <option name="engine_id" value="{{.ID}}">{{.Value}}</option> | |||
| @@ -290,6 +290,7 @@ | |||
| let html = '' | |||
| nameMap[value].forEach(element => { | |||
| let {TrainTaskInfo} = element | |||
| console.log("element",element) | |||
| TrainTaskInfo = JSON.parse(TrainTaskInfo) | |||
| html += `<div class="item" data-label="${element.Label}" data-id="${element.ID}" data-value="${TrainTaskInfo.TrainUrl}">${element.Version}</div>` | |||
| }); | |||
| @@ -305,6 +306,7 @@ | |||
| console.log(value,text,$selectedItem) | |||
| const dataID = $selectedItem[0].getAttribute("data-id") | |||
| const label = $selectedItem[0].getAttribute("data-label") | |||
| console.log("label",label) | |||
| $("#select_model_checkpoint").addClass("loading") | |||
| let html = '' | |||
| loadCheckpointList(dataID).then((res)=>{ | |||
| @@ -315,7 +317,7 @@ | |||
| $("#select_model_checkpoint").removeClass("loading") | |||
| }) | |||
| $("input#ai_model_version").val(text) | |||
| $("input#ai_model_version").val(Label) | |||
| $("input#ai_model_label").val(label) | |||
| } | |||
| }) | |||
| }) | |||
| @@ -253,8 +253,12 @@ td, th { | |||
| </td> | |||
| <td class="ti-text-form-content"> | |||
| <div class="text-span text-span-w" id="{{.VersionName}}-duration"> | |||
| -- | |||
| <div class="text-span text-span-w" id="{{.VersionName}}-labels"> | |||
| {{if .LabelName}} | |||
| <span>{{.LabelName}}</span> | |||
| {{else}} | |||
| <span>--</span> | |||
| {{end}} | |||
| </div> | |||
| </td> | |||
| </tr> | |||
| @@ -265,8 +269,12 @@ td, th { | |||
| </td> | |||
| <td class="ti-text-form-content"> | |||
| <div class="text-span text-span-w" id="{{.VersionName}}-duration"> | |||
| -- | |||
| <div class="text-span text-span-w" id="{{.VersionName}}-desc"> | |||
| {{if .Description}} | |||
| <span>{{.Description}}</span> | |||
| {{else}} | |||
| <span>--</span> | |||
| {{end}} | |||
| </div> | |||
| </td> | |||
| </tr> | |||
| @@ -276,7 +284,7 @@ td, th { | |||
| </td> | |||
| <td class="ti-text-form-content"> | |||
| <div class="text-span text-span-w" id="{{.VersionName}}-duration"> | |||
| <div class="text-span text-span-w" id="{{.VersionName}}-creator"> | |||
| -- | |||
| </div> | |||
| </td> | |||
| @@ -370,7 +378,11 @@ td, th { | |||
| <td class="ti-text-form-content"> | |||
| <div class="text-span text-span-w" title="{{.Parameters}}"> | |||
| {{.Parameters}} | |||
| {{if .Parameters}} | |||
| <span>{{.Parameters}}</span> | |||
| {{else}} | |||
| <span>--</span> | |||
| {{end}} | |||
| </div> | |||
| </td> | |||
| </tr> | |||