Browse Source

fix issue

tags/v1.21.12.1
zhoupzh 4 years ago
parent
commit
dd942db93b
2 changed files with 17 additions and 18 deletions
  1. +1
    -1
      templates/repo/modelarts/trainjob/index.tmpl
  2. +16
    -17
      templates/repo/modelarts/trainjob/version_new.tmpl

+ 1
- 1
templates/repo/modelarts/trainjob/index.tmpl View File

@@ -331,7 +331,7 @@
<span>{{.VersionCount}} </span>
</div>
<!-- 任务状态 -->
<div class="two wide column text center padding0">
<div class="two wide column padding0" style="padding-left: 2.2rem !important;">
<span class="job-status" id="{{.JobID}}" data-repopath="{{$.RepoRelPath}}" data-jobid="{{.JobID}}">
<span><i id="{{.JobID}}-icon" style="vertical-align: middle;" class="{{.Status}}"></i><span id="{{.JobID}}-text" style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span>
</span>


+ 16
- 17
templates/repo/modelarts/trainjob/version_new.tmpl View File

@@ -201,7 +201,7 @@
<div class="field" style="flex: 2;">
<select class="ui dropdown width" id="trainjob_engine_versions" style='width: 100%;' name="engine_id">
{{if .engine_id}}
<option name="engine_id" value="{{.engine_id}}">{{.engine_id}}</option>
<option name="engine_id" value="{{.engine_id}}">{{.engine_name}}</option>
{{end}}
{{range .engine_versions}}
{{if ne $.engine_id .ID}}
@@ -245,21 +245,21 @@
<span id="add_run_para" style="margin-left: 0.5rem;cursor:pointer;color: rgba(3, 102, 214, 100);font-size: 14px;line-height: 26px;font-family: SourceHanSansSC-medium;"><i class="plus square outline icon"></i>{{.i18n.Tr "repo.modelarts.train_job.add_run_parameter"}}</span>
<input id="store_run_para" type="hidden" name="run_para_list">
<div class="dynamic field" style="margin-top: 1rem;">
{{if .params}}
<div class="two fields width85" id="para0">
<div class="field">
<input type="text" name="shipping_first-name" required>
</div>
<div class="field">
<input type="text" name="shipping_last-name" required>
</div>
<span>
<i class="trash icon"></i>
</span>
{{if ne 0 (len .params)}}
{{range $k ,$v := .params}}
<div class="two fields width85" id="para{{$k}}">
<div class="field">
<input type="text" name="shipping_first-name" value={{$v.Label}} required>
</div>
<div class="field">
<input type="text" name="shipping_last-name" value={{$v.Value}} required>
</div>
<span>
<i class="trash icon"></i>
</span>

</div>
</div>
{{end}}
{{end}}
</div>
</div>
@@ -330,7 +330,6 @@
{{template "base/footer" .}}

<script>
console.log({{.params}})
let url_href = {{.RepoLink}}+'/modelarts/train-job'
let url_post = window.location.pathname.split('?version_name=V0001')[0]
$(".ui.button").attr('href',url_href)
@@ -567,7 +566,7 @@
}
document.onreadystatechange = function() {
if (document.readyState === "complete") {
console.log("-----------")
document.getElementById("mask").style.display = "none"
}
}


Loading…
Cancel
Save