From 81df0a66ef71bc42bd361697d453369337a31deb Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 13 Jan 2022 09:53:49 +0800 Subject: [PATCH] fix issue --- templates/repo/modelarts/trainjob/show.tmpl | 2 +- templates/repo/modelmanage/index.tmpl | 4 ++++ templates/repo/settings/options.tmpl | 2 +- web_src/js/components/Model.vue | 4 +++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl index 2adcf854a..10c44e84f 100755 --- a/templates/repo/modelarts/trainjob/show.tmpl +++ b/templates/repo/modelarts/trainjob/show.tmpl @@ -505,7 +505,7 @@ td, th {
-
diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index 96ff36a42..0a5e0e0bf 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -38,6 +38,10 @@
训练任务:您还没创建过训练任务,请先创建训练任务
{{end}}
使用说明:可以参考启智AI协作平台小白训练营课程。
+ + +
+
{{else}} diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 630c35496..983e90e44 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -152,7 +152,7 @@ {{$isModelMangeEnabled := .Repository.UnitEnabled $.UnitTypeModelManage }}
-
+
diff --git a/web_src/js/components/Model.vue b/web_src/js/components/Model.vue index 1dd071cec..369b10f7b 100644 --- a/web_src/js/components/Model.vue +++ b/web_src/js/components/Model.vue @@ -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)