Browse Source

#2586

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.8.1^2
zouap 3 years ago
parent
commit
5f9e214c96
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      templates/repo/modelmanage/showinfo.tmpl

+ 11
- 0
templates/repo/modelmanage/showinfo.tmpl View File

@@ -124,6 +124,10 @@
</div>
</td>
</tr>
<tr>
<td class="ti-text-form-label text-width80">训练任务</td>
<td class="ti-text-form-content word-elipsis"><span id="DisplayJobName" title=""></span></td>
</tr>
<tr>
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.code_version"}}</td>
<td class="ti-text-form-content word-elipsis"><span id="CodeBranch" title=""></span></td>
@@ -279,6 +283,8 @@ function transObj(data){
WorkServerNumber:TrainTaskInfo.WorkServerNumber || '--',
Parameters:Parameters,
EngineName:EngineName,
DisplayJobName:TrainTaskInfo.DisplayJobName || '--',
TrainJobVersionName:TrainTaskInfo.VersionName || '--',
}
let initModelAcc = {
Accuracy: modelAcc.Accuracy || '--',
@@ -364,6 +370,11 @@ function renderInfo(obj,accObj,id){
let html = `<a style="margin-left:1rem" class="ui label" title="${codeCommit}">${codeCommit}</a>`
$('#CodeBranch').append(html)

}
else if(key==="DisplayJobName"){
let versionName = obj["TrainJobVersionName"]
let html = `<span class="ui label">${versionName}</span>`
$('#DisplayJobName').append(html)
}
else if(key==="Parameters"){
if(obj[key]==='--'){


Loading…
Cancel
Save