Browse Source

fix issue

tags/v1.22.1.2
zhoupzh 3 years ago
parent
commit
81df0a66ef
4 changed files with 9 additions and 3 deletions
  1. +1
    -1
      templates/repo/modelarts/trainjob/show.tmpl
  2. +4
    -0
      templates/repo/modelmanage/index.tmpl
  3. +1
    -1
      templates/repo/settings/options.tmpl
  4. +3
    -1
      web_src/js/components/Model.vue

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

@@ -505,7 +505,7 @@ td, th {
</div>
<div class="inline field" style="margin-left: 75px;">
<button onclick="createModel()" id="submitId" type="button" class="ui create_train_job green button" style="position: absolute;">
<button onclick="createModel()" type="button" class="ui create_train_job green button" style="position: absolute;">
{{.i18n.Tr "repo.model.manage.sava_model"}}
</button>
</div>


+ 4
- 0
templates/repo/modelmanage/index.tmpl View File

@@ -38,6 +38,10 @@
<div class="bgtask-content-txt">训练任务:您还没创建过训练任务,请先创建<a href="{{.RepoLink}}/modelarts/train-job">训练任务</a>。</div>
{{end}}
<div class="bgtask-content-txt">使用说明:可以参考启智AI协作平台<a href="https://git.openi.org.cn/zeizei/OpenI_Learning">小白训练营课程。</a></div>
</div>
<div style="display: none;">
<div id="model_list"></div>
</div>
</div>
{{else}}


+ 1
- 1
templates/repo/settings/options.tmpl View File

@@ -152,7 +152,7 @@
{{$isModelMangeEnabled := .Repository.UnitEnabled $.UnitTypeModelManage }}
<div class="inline field">
<label>{{.i18n.Tr "repo.model_manager"}}</label>
<div class="ui checkbox {{if eq $.MODEL_COUNT 0}}disabled{{end}}">
<div class="ui checkbox {{if eq $.MODEL_COUNT 0}}disabled{{end}}">
<input class="enable-system" name="enable_model_manager" type="checkbox" {{if $isModelMangeEnabled}}checked{{end}}>
<label>{{.i18n.Tr "repo.settings.model_desc"}}</label>
</div>


+ 3
- 1
web_src/js/components/Model.vue View File

@@ -348,7 +348,6 @@ export default {
this.$axios.get(location.href+'_api',{
params:this.params
}).then((res)=>{
console.log(res)
$(".ui.grid").removeAttr("style")
$("#loadContainer").removeClass("loader")
let TrainTaskInfo
@@ -361,6 +360,9 @@ export default {
this.tableData[i].hasChildren = res.data.data[i].VersionCount===1 ? false : true
}
this.totalNum = res.data.count
// if(res.data.count===1 && res.data.data[0].VersionCount===1){
// location.reload()
// }
})
}catch (e) {
console.log(e)


Loading…
Cancel
Save