diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index 0b0f2eb42..e69de29bb 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -1,373 +0,0 @@ - -{{template "base/head" .}} - - -
-
-
-
-
-
-
-
-
-{{$repository := .Repository.ID}} - -
- -
- {{template "repo/header" .}} - -
- {{template "base/alert" .}} -
-
-
- {{if .Permission.CanWrite $.UnitTypeCloudBrain}} - {{$.i18n.Tr "repo.modelarts.train_job.new_train"}}{{end}} -
-
- - -
-
-
- -
- -
-
-
- {{$.i18n.Tr "repo.modelarts.model_name"}} -
-
- {{$.i18n.Tr "repo.modelarts.version"}} -
-
- {{$.i18n.Tr "repo.modelarts.version_nums"}} -
-
- {{$.i18n.Tr "repo.modelarts.model_size"}} -
-
- {{$.i18n.Tr "repo.modelarts.train_job.AI_driver"}} -
-
- {{$.i18n.Tr "repo.modelarts.computing_resources"}} -
-
- {{$.i18n.Tr "repo.modelarts.createtime"}} -
-
- {{$.i18n.Tr "repo.cloudbrain_creator"}} -
-
- {{$.i18n.Tr "repo.cloudbrain_operate"}} -
- -
- -
- -
-
- - - - -
- 0.0.3 -
- -
- 20 -
- -
- 20.28MB -
- -
- Mindspore -
- -
- CPU -
- -
- 2021/09/20 12:06:13 -
- -
- {{if .User.Name}} - - {{else}} - - {{end}} -
- - -
-
- -
- -
-
-
- -
- -
- - - - - - - -
- -
- -
- - - -{{template "base/footer" .}} - - - diff --git a/web_src/js/components/Model.vue b/web_src/js/components/Model.vue new file mode 100644 index 000000000..ae71253d6 --- /dev/null +++ b/web_src/js/components/Model.vue @@ -0,0 +1,305 @@ + + + + + diff --git a/web_src/js/index.js b/web_src/js/index.js index 1b718ed53..0f60504de 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -39,6 +39,7 @@ import Images from './components/Images.vue'; import EditTopics from './components/EditTopics.vue'; import DataAnalysis from './components/DataAnalysis.vue' import Contributors from './components/Contributors.vue' +import Model from './components/Model.vue'; Vue.use(ElementUI); Vue.prototype.$axios = axios; @@ -2916,11 +2917,12 @@ $(document).ready(async () => { initVueEditTopic(); initVueContributors(); initVueImages(); + initVueModel(); initVueDataAnalysis(); initTeamSettings(); initCtrlEnterSubmit(); initNavbarContentToggle(); - // initTopicbar(); + // initTopicbar();vim // closeTopicbar(); initU2FAuth(); initU2FRegister(); @@ -3646,7 +3648,7 @@ function initVueContributors() { function initVueImages() { const el = document.getElementById('images'); - console.log("el",el) + if (!el) { return; @@ -3658,6 +3660,20 @@ function initVueImages() { render: h => h(Images) }); } +function initVueModel() { + const el = document.getElementById('model_list'); + + + if (!el) { + return; + } + + new Vue({ + el: el, + + render: h => h(Model) + }); +} function initVueDataAnalysis() { const el = document.getElementById('data_analysis'); console.log("el",el)