|
|
|
@@ -328,11 +328,11 @@ |
|
|
|
<!-- <span class="ui compact button job-status" id="{{.JobID}}" data-repopath="{{$.RepoRelPath}}" data-jobid="{{.JobID}}"> |
|
|
|
{{.Status}} |
|
|
|
</span> --> |
|
|
|
<span class="job-status" id="{{.JobID}}" data-repopath="{{$.RepoRelPath}}" data-jobid="{{.JobID}}"> |
|
|
|
<span><i style="vertical-align: middle;" class="{{.Status}}"></i><span style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span> |
|
|
|
</span> |
|
|
|
|
|
|
|
<span>{{.TrainJobDuration}}</span> |
|
|
|
|
|
|
|
<!-- 任务创建时间 --> |
|
|
|
<span style="font-size: 12px;margin-left: 0.4rem;" class="">{{TimeSinceUnix .Cloudbrain.CreatedUnix $.Lang}}</span> |
|
|
|
<!-- <span style="font-size: 12px;margin-left: 0.4rem;" class="">{{TimeSinceUnix .Cloudbrain.CreatedUnix $.Lang}}</span> --> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="one wide column"> |
|
|
|
@@ -344,7 +344,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="four wide column text right"> |
|
|
|
<div class="ui compact buttons" style="margin-right:10px;"> |
|
|
|
<div class="ui compact buttons"> |
|
|
|
<!-- <a class="ui basic blue button" href="{{$.Link}}/{{.JobID}}"> |
|
|
|
查看 |
|
|
|
</a> |
|
|
|
@@ -370,9 +370,9 @@ |
|
|
|
|
|
|
|
</div> |
|
|
|
<!-- 删除任务 --> |
|
|
|
<form class="ui compact buttons" id="delForm-{{.JobID}}" action="{{if not .CanDel}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/del{{end}}" method="post"> |
|
|
|
<form class="ui compact buttons" id="delForm-{{.JobID}}" action="{{if eq .Status "RUNNING"}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/del{{end}}" method="post"> |
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
<a class="ui compact {{if not .CanDel}}disabled {{else}}red {{end}}button" onclick="assertDelete(this)" style="border-radius: .28571429rem;"> |
|
|
|
<a class="ui compact {{if eq .Status "RUNNING" }}disabled {{else}}red {{end}}button" onclick="assertDelete(this)" style="border-radius: .28571429rem;"> |
|
|
|
删除 |
|
|
|
</a> |
|
|
|
</form> |
|
|
|
@@ -468,7 +468,7 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
$.get(`/api/v1/repos/${repoPath}/modelarts/${jobID}`, (data) => { |
|
|
|
$.get(`/api/v1/repos/${repoPath}/modelarts/train-job/${jobID}`, (data) => { |
|
|
|
const jobID = data.JobID |
|
|
|
const status = data.JobStatus |
|
|
|
if (status != job.textContent.trim()) { |
|
|
|
|