Browse Source

fix issue

tags/v1.21.12.1
zhoupzh 4 years ago
parent
commit
7d5dfd1e0e
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      templates/repo/modelarts/trainjob/show.tmpl
  2. +4
    -0
      templates/repo/modelarts/trainjob/version_new.tmpl

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

@@ -123,7 +123,7 @@ td, th {
<span> <span>
<div style="float: right;"> <div style="float: right;">
<button>创建模型</button> <button>创建模型</button>
<a href="{{$.RepoLink}}/modelarts/train-job/{{.JobID}}/{{.VersionName}}/create_version">修改</a>
<a href="{{$.RepoLink}}/modelarts/train-job/{{.JobID}}/create_version?version_name={{.VersionName}}">修改</a>
<button>停止</button> <button>停止</button>
<button>删除</button> <button>删除</button>
</div> </div>


+ 4
- 0
templates/repo/modelarts/trainjob/version_new.tmpl View File

@@ -316,8 +316,12 @@
<script> <script>
console.log({{.dataset_name}}) console.log({{.dataset_name}})
console.log({{.params}}) console.log({{.params}})
console.log({{.flavor_name}})
console.log({{.flavor_code}})
let url_href = window.location.pathname.split('create')[0] let url_href = window.location.pathname.split('create')[0]
let url_post = window.location.pathname.split('?version_name=V0001')[0]
$(".ui.button").attr('href',url_href) $(".ui.button").attr('href',url_href)
$(".ui.form").attr('action',url_post)
$('select.dropdown') $('select.dropdown')
.dropdown(); .dropdown();




Loading…
Cancel
Save