| @@ -126,7 +126,11 @@ | |||
| </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> | |||
| <td class="ti-text-form-content word-elipsis"> | |||
| <a id="DisplayJobNameHref" class="title" style="font-size: 14px;"> | |||
| <span id="DisplayJobName" class="fitted" style="width: 90%;vertical-align: middle;"></span> | |||
| </a> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.code_version"}}</td> | |||
| @@ -201,6 +205,7 @@ | |||
| {{template "base/footer" .}} | |||
| <script> | |||
| let url = location.href.split('show_model')[0] | |||
| let trainJobUrl =url.split('modelmanage')[0] | |||
| let ID = location.search.split('?name=').pop() | |||
| $(document).ready(function(){ | |||
| $('.secondary.menu .item').tab(); | |||
| @@ -285,6 +290,8 @@ function transObj(data){ | |||
| EngineName:EngineName, | |||
| DisplayJobName:TrainTaskInfo.DisplayJobName || '--', | |||
| TrainJobVersionName:TrainTaskInfo.VersionName || '', | |||
| CloudBrainJobID:TrainTaskInfo.JobID|| '', | |||
| CloudBrainType:TrainTaskInfo.Type, | |||
| } | |||
| let initModelAcc = { | |||
| Accuracy: modelAcc.Accuracy || '--', | |||
| @@ -372,11 +379,24 @@ function renderInfo(obj,accObj,id){ | |||
| } | |||
| else if(key==="DisplayJobName"){ | |||
| $(`#${key}`).text(obj[key]) | |||
| $(`#${key}`).attr("title",obj[key]) | |||
| let versionName = obj["TrainJobVersionName"] | |||
| let html = `<span class="ui label">${versionName}</span>` | |||
| $('#DisplayJobName').append(html) | |||
| let type=obj["CloudBrainType"] | |||
| let href="" | |||
| if(type==1){ | |||
| href=trainJobUrl + "modelarts/train-job/" + obj["CloudBrainJobID"] | |||
| }else if(type==2){ | |||
| href=trainJobUrl + "cloudbrain/train-job/" + obj["CloudBrainJobID"] | |||
| }else if(type==3){ | |||
| href=trainJobUrl + "grampus/train-job/" + obj["CloudBrainJobID"] | |||
| } | |||
| $(`#DisplayJobNameHref`).attr("href",href) | |||
| $(`#DisplayJobNameHref`).attr("title",obj[key]) | |||
| $(`#${key}`).text(obj[key]) | |||
| let versionName = obj["TrainJobVersionName"] | |||
| if(versionName!=""){ | |||
| let html = `<span style="margin-left:1rem" class="ui label">${versionName}</span>` | |||
| $('#DisplayJobName').append(html) | |||
| } | |||
| } | |||
| else if(key==="Parameters"){ | |||
| if(obj[key]==='--'){ | |||