|
|
@@ -122,7 +122,7 @@ |
|
|
|
<span class="fitted">{{.JobName}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center nowrap" style="width: 17.5%!important;"> |
|
|
|
{{if eq .JobType "DEBUG"}} |
|
|
|
{{if eq .JobType "DEBUG" "SNN4IMAGENET" "BRAINSCORE"}} |
|
|
|
<div class="ui compact buttons"> |
|
|
|
<form id="debugAgainForm-{{.JobID}}"> |
|
|
|
{{$.CsrfTokenHtml}} |
|
|
@@ -140,7 +140,7 @@ |
|
|
|
{{end}} |
|
|
|
<!-- 停止任务 --> |
|
|
|
<div class="ui compact buttons"> |
|
|
|
{{if eq .JobType "DEBUG" "BENCHMARK"}} |
|
|
|
{{if eq .JobType "DEBUG" "BENCHMARK" "SNN4IMAGENET" "BRAINSCORE"}} |
|
|
|
<form id="stopForm-{{.JobID}}" style="margin-left:-1px;"> |
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
<a style="padding: 0.5rem 1rem;" id="ai-stop-{{.JobID}}" class='ui basic ai_stop {{if eq .Status "KILLED" "FAILED" "START_FAILED" "KILLING" "COMPLETED" "SUCCEEDED" "STOPPED" "STOPPING"}}disabled {{else}} blue {{end}}button' data-repopath='{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else if eq .JobType "BENCHMARK" }}/cloudbrain/benchmark{{else if eq .ComputeResource "NPU" }}/modelarts/notebook{{end}}/{{.JobID}}/stop' data-jobid="{{.JobID}}"> |
|
|
@@ -306,7 +306,7 @@ function getParams(){ |
|
|
|
const params = new URLSearchParams(window.location.search) |
|
|
|
let jobType = !params.get('jobType')? '{{.i18n.Tr "admin.cloudbrain.all_task_types"}}' : params.get('jobType') |
|
|
|
let listType = !params.get('listType')? '{{.i18n.Tr "admin.cloudbrain.all_computing_resources"}}' : params.get('listType') |
|
|
|
let jobStatus = !params.get('jobStatus')? '{{.i18n.Tr "admin.cloudbrain.all_status"}}' : params.get('jobStatus') |
|
|
|
let jobStatus = !params.get('jobStatus')? '{{.i18n.Tr "admin.cloudbrain.all_status"}}' : params.get('jobStatus').toUpperCase() |
|
|
|
const dropdownValueArray = [jobType,listType,jobStatus] |
|
|
|
$('#adminCloud .default.text ').each(function(index,e){ |
|
|
|
$(e).text(dropdownValueArray[index]) |
|
|
|