|
|
@@ -487,8 +487,8 @@ |
|
|
|
</div> |
|
|
|
<div class="ui tab" data-tab="second{{$k}}"> |
|
|
|
<div> |
|
|
|
|
|
|
|
<a class='{{if and (.CanModify) (eq .Status "KILLED" "FAILED" "START_FAILED" "STOPPED" "COMPLETED") }}ti-download-file{{else}}disabled{{end}}' |
|
|
|
<a id="{{.VersionName}}-log-down" |
|
|
|
class='{{if and (.CanModify) (eq .Status "KILLED" "FAILED" "START_FAILED" "STOPPED" "COMPLETED") }}ti-download-file{{else}}disabled{{end}}' |
|
|
|
href="{{$.RepoLink}}/modelarts/train-job/{{.JobID}}/download_log_file?version_name={{.VersionName}}"> |
|
|
|
<i class="ri-download-cloud-2-line"></i> |
|
|
|
<span style="margin-left: 0.3rem;">{{$.i18n.Tr "repo.modelarts.download_log"}}</span> |
|
|
@@ -734,6 +734,12 @@ |
|
|
|
// detail status and duration |
|
|
|
$('#' + version_name + '-duration').text(data.JobDuration) |
|
|
|
$('#' + version_name + '-status').text(data.JobStatus) |
|
|
|
console.log(data) |
|
|
|
if (["KILLED", "FAILED", "START_FAILED", "STOPPED", "COMPLETED"].includes(data.JobStatus)) { |
|
|
|
$(`#${version_name}-log-down`).removeClass('disabled').addClass('ti-download-file') |
|
|
|
$('#' + version_name + '-stop').addClass('disabled') |
|
|
|
} |
|
|
|
|
|
|
|
loadLog(version_name) |
|
|
|
|
|
|
|
|
|
|
|