|
|
|
@@ -110,8 +110,9 @@ |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
<!-- 模型版本 --> |
|
|
|
<!-- href="{{$.RepoLink}}/modelmanage/show_model_info?name={{.ModelName}}" --> |
|
|
|
<div class="three wide column text center padding0"> |
|
|
|
<a href="{{$.RepoLink}}/modelmanage/show_model_info?name={{.ModelName}}">{{.ModelName}} </a> <span style="font-size: 12px;">{{.ModelVersion}} </span> |
|
|
|
<a id="{{.JobName}}" href="javascript:void(0);" data-variation="inverted" data-position="top center" data-content="{{$.i18n.Tr "repo.modelarts.infer_job.tooltip"}}" onclick="getModelInfo({{.ModelName}},{{.ModelVersion}},{{.JobName}})">{{.ModelName}} </a> <span style="font-size: 12px;">{{.ModelVersion}} </span> |
|
|
|
</div> |
|
|
|
<!-- 任务状态 --> |
|
|
|
<div class="two wide column text center padding0" > |
|
|
|
@@ -252,6 +253,24 @@ function loadJobStatus() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
function getModelInfo(ID,version,JobName){ |
|
|
|
$.get("{{$.RepoLink}}/modelmanage/show_model_info_api?name="+ID,(data)=>{ |
|
|
|
if(data.length===0){ |
|
|
|
$(`#${JobName}`).popup('toggle') |
|
|
|
}else{ |
|
|
|
let versionData = data.filter((item)=>{ |
|
|
|
return item.Version === version |
|
|
|
}) |
|
|
|
if(versionData.length==0){ |
|
|
|
$(`#${JobName}`).popup('toggle') |
|
|
|
} |
|
|
|
else{ |
|
|
|
location.href = "{{$.RepoLink}}/modelmanage/show_model_info?name="+ID |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
function deleteVersion(version_name,jobID){ |
|
|
|
const url = '/api/v1/repos/{{$.RepoRelPath}}/modelarts/inference-job/'+jobID+'/del_version' |
|
|
|
$.post(url,{version_name:version_name},(data)=>{ |
|
|
|
|