| @@ -505,7 +505,7 @@ td, th { | |||||
| </div> | </div> | ||||
| <div class="inline field" style="margin-left: 75px;"> | <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"}} | {{.i18n.Tr "repo.model.manage.sava_model"}} | ||||
| </button> | </button> | ||||
| </div> | </div> | ||||
| @@ -38,6 +38,10 @@ | |||||
| <div class="bgtask-content-txt">训练任务:您还没创建过训练任务,请先创建<a href="{{.RepoLink}}/modelarts/train-job">训练任务</a>。</div> | <div class="bgtask-content-txt">训练任务:您还没创建过训练任务,请先创建<a href="{{.RepoLink}}/modelarts/train-job">训练任务</a>。</div> | ||||
| {{end}} | {{end}} | ||||
| <div class="bgtask-content-txt">使用说明:可以参考启智AI协作平台<a href="https://git.openi.org.cn/zeizei/OpenI_Learning">小白训练营课程。</a></div> | <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> | ||||
| </div> | </div> | ||||
| {{else}} | {{else}} | ||||
| @@ -152,7 +152,7 @@ | |||||
| {{$isModelMangeEnabled := .Repository.UnitEnabled $.UnitTypeModelManage }} | {{$isModelMangeEnabled := .Repository.UnitEnabled $.UnitTypeModelManage }} | ||||
| <div class="inline field"> | <div class="inline field"> | ||||
| <label>{{.i18n.Tr "repo.model_manager"}}</label> | <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}}> | <input class="enable-system" name="enable_model_manager" type="checkbox" {{if $isModelMangeEnabled}}checked{{end}}> | ||||
| <label>{{.i18n.Tr "repo.settings.model_desc"}}</label> | <label>{{.i18n.Tr "repo.settings.model_desc"}}</label> | ||||
| </div> | </div> | ||||
| @@ -348,7 +348,6 @@ export default { | |||||
| this.$axios.get(location.href+'_api',{ | this.$axios.get(location.href+'_api',{ | ||||
| params:this.params | params:this.params | ||||
| }).then((res)=>{ | }).then((res)=>{ | ||||
| console.log(res) | |||||
| $(".ui.grid").removeAttr("style") | $(".ui.grid").removeAttr("style") | ||||
| $("#loadContainer").removeClass("loader") | $("#loadContainer").removeClass("loader") | ||||
| let TrainTaskInfo | let TrainTaskInfo | ||||
| @@ -361,6 +360,9 @@ export default { | |||||
| this.tableData[i].hasChildren = res.data.data[i].VersionCount===1 ? false : true | this.tableData[i].hasChildren = res.data.data[i].VersionCount===1 ? false : true | ||||
| } | } | ||||
| this.totalNum = res.data.count | this.totalNum = res.data.count | ||||
| // if(res.data.count===1 && res.data.data[0].VersionCount===1){ | |||||
| // location.reload() | |||||
| // } | |||||
| }) | }) | ||||
| }catch (e) { | }catch (e) { | ||||
| console.log(e) | console.log(e) | ||||