diff --git a/templates/repo/modelarts/notebook/new.tmpl b/templates/repo/modelarts/notebook/new.tmpl
index ee629875d..5f28e1d67 100755
--- a/templates/repo/modelarts/notebook/new.tmpl
+++ b/templates/repo/modelarts/notebook/new.tmpl
@@ -1,89 +1,8 @@
{{template "base/head" .}}
diff --git a/templates/repo/modelarts/trainjob/index.tmpl b/templates/repo/modelarts/trainjob/index.tmpl
index 80de9ae74..123f645ea 100755
--- a/templates/repo/modelarts/trainjob/index.tmpl
+++ b/templates/repo/modelarts/trainjob/index.tmpl
@@ -2,184 +2,6 @@
{{template "base/head" .}}
diff --git a/templates/repo/modelarts/trainjob/version_new.tmpl b/templates/repo/modelarts/trainjob/version_new.tmpl
index 18fcd844e..3c680d2c5 100644
--- a/templates/repo/modelarts/trainjob/version_new.tmpl
+++ b/templates/repo/modelarts/trainjob/version_new.tmpl
@@ -49,87 +49,6 @@
text-align: center;
color: #C2C7CC;"
}
-#mask {
- position: fixed;
- top: 0px;
- left: 0px;
- right: 0px;
- bottom: 0px;
- filter: alpha(opacity=60);
- background-color: #777;
- z-index: 1000;
- display: none;
- opacity: 0.8;
- -moz-opacity: 0.5;
- padding-top: 100px;
- color: #000000
- }
- /* 加载圈css效果图 */
-
-#loadingPage {
- margin: 200px auto;
- width: 50px;
- height: 40px;
- text-align: center;
- font-size: 10px;
- display: block;
-}
-
-#loadingPage>div {
- background-color: green;
- height: 100%;
- width: 6px;
- display: inline-block;
- -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
- animation: sk-stretchdelay 1.2s infinite ease-in-out;
- }
-
- #loadingPage .rect2 {
- -webkit-animation-delay: -1.1s;
- animation-delay: -1.1s;
- }
-
- #loadingPage .rect3 {
- -webkit-animation-delay: -1.0s;
- animation-delay: -1.0s;
- }
-
- #loadingPage .rect4 {
- -webkit-animation-delay: -0.9s;
- animation-delay: -0.9s;
- }
-
- #loadingPage .rect5 {
- -webkit-animation-delay: -0.8s;
- animation-delay: -0.8s;
- }
- .left2{
- margin-left: -2px;
- }
-
- @-webkit-keyframes sk-stretchdelay {
- 0%,
- 40%,
- 100% {
- -webkit-transform: scaleY(0.4)
- }
- 20% {
- -webkit-transform: scaleY(1.0)
- }
- }
-
- @keyframes sk-stretchdelay {
- 0%,
- 40%,
- 100% {
- transform: scaleY(0.4);
- -webkit-transform: scaleY(0.4);
- }
- 20% {
- transform: scaleY(1.0);
- -webkit-transform: scaleY(1.0);
- }
-}
+{{template "base/head" .}}
+
+
+
+{{$repository := .Repository.ID}}
+
+
+
+
+ {{template "repo/header" .}}
+
+
+ {{template "base/alert" .}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
你确认删除该任务么?此任务一旦删除不可恢复。
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{{template "base/footer" .}}
+
+
+
diff --git a/templates/repo/modelmanage/showinfo.tmpl b/templates/repo/modelmanage/showinfo.tmpl
new file mode 100644
index 000000000..821340eb0
--- /dev/null
+++ b/templates/repo/modelmanage/showinfo.tmpl
@@ -0,0 +1,218 @@
+{{template "base/head" .}}
+
+ {{template "repo/header" .}}
+
+
+
+{{template "base/footer" .}}
+
\ No newline at end of file
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index ed30e97a9..de31aa59b 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -158,7 +158,14 @@
-
+ {{$isModelMangeEnabled := .Repository.UnitEnabled $.UnitTypeModelManage }}
+
{{$isWikiEnabled := or (.Repository.UnitEnabled $.UnitTypeWiki) (.Repository.UnitEnabled $.UnitTypeExternalWiki)}}
diff --git a/web_src/js/components/Model.vue b/web_src/js/components/Model.vue
new file mode 100644
index 000000000..dafcce29f
--- /dev/null
+++ b/web_src/js/components/Model.vue
@@ -0,0 +1,427 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web_src/js/index.js b/web_src/js/index.js
index b8d969206..a1f044b4a 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();
@@ -3647,7 +3649,7 @@ function initVueContributors() {
function initVueImages() {
const el = document.getElementById('images');
- console.log("el",el)
+
if (!el) {
return;
@@ -3659,6 +3661,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)
diff --git a/web_src/less/openi.less b/web_src/less/openi.less
index d09d60fa6..608dffab4 100644
--- a/web_src/less/openi.less
+++ b/web_src/less/openi.less
@@ -368,4 +368,186 @@ display: block;
color: #3F3F40;
font-size: 18px;
margin-bottom: 1rem;
+
+
+.selectcloudbrain .active.item{
+ color: #0087f5 !important;
+ border: 1px solid #0087f5;
+ margin: -1px;
+ background: #FFF !important;
+}
+#deletemodel {
+ width: 100%;
+ height: 100%;
+}
+/* 弹窗 */
+
+#mask {
+ position: fixed;
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ bottom: 0px;
+ filter: alpha(opacity=60);
+ background-color: #777;
+ z-index: 1000;
+ display: none;
+ opacity: 0.8;
+ -moz-opacity: 0.5;
+ padding-top: 100px;
+ color: #000000
+}
+
+#loadingPage {
+ margin: 200px auto;
+ width: 50px;
+ height: 40px;
+ text-align: center;
+ font-size: 10px;
+ display: block;
+}
+
+#loadingPage>div {
+ background-color: green;
+ height: 100%;
+ width: 6px;
+ display: inline-block;
+ -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
+ animation: sk-stretchdelay 1.2s infinite ease-in-out;
+}
+
+#loadingPage .rect2 {
+ -webkit-animation-delay: -1.1s;
+ animation-delay: -1.1s;
+}
+
+#loadingPage .rect3 {
+ -webkit-animation-delay: -1.0s;
+ animation-delay: -1.0s;
+}
+
+#loadingPage .rect4 {
+ -webkit-animation-delay: -0.9s;
+ animation-delay: -0.9s;
+}
+
+#loadingPage .rect5 {
+ -webkit-animation-delay: -0.8s;
+ animation-delay: -0.8s;
+}
+
+@-webkit-keyframes sk-stretchdelay {
+ 0%,
+ 40%,
+ 100% {
+ -webkit-transform: scaleY(0.4)
+ }
+ 20% {
+ -webkit-transform: scaleY(1.0)
+ }
+}
+
+@keyframes sk-stretchdelay {
+ 0%,
+ 40%,
+ 100% {
+ transform: scaleY(0.4);
+ -webkit-transform: scaleY(0.4);
+ }
+ 20% {
+ transform: scaleY(1.0);
+ -webkit-transform: scaleY(1.0);
+ }
+}
+/* 消息框 */
+
+.alert {
+ display: none;
+ position: fixed;
+ width: 100%;
+ z-index: 1001;
+ padding: 15px;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ text-align: center;
+ font-weight: bold;
+}
+
+.alert-success {
+ color: #3c763d;
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+}
+
+.alert-info {
+ color: #31708f;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+}
+
+.alert-warning {
+ color: #8a6d3b;
+ background-color: #fcf8e3;
+ border-color: #faebcc;
+}
+
+.alert-danger {
+ color: #a94442;
+ background-color: #f2dede;
+ border-color: #ebccd1;
+}
+
+.pusher {
+ width: calc(100% - 260px);
+ box-sizing: border-box;
+}
+/* 弹窗 (background) */
+
+#imageModal {
+ display: none;
+ position: fixed;
+ z-index: 1;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ overflow: auto;
+ background-color: rgb(0, 0, 0);
+ background-color: rgba(0, 0, 0, 0.4);
+}
+/* 弹窗内容 */
+
+.modal-content {
+ background-color: #fefefe;
+ margin: 15% auto;
+ padding: 20px;
+ border: 1px solid #888;
+ width: 30%;
+}
+/* 关闭按钮 */
+
+.close {
+ color: #aaa;
+ float: right;
+ font-size: 28px;
+ font-weight: bold;
+}
+
+.close:hover,
+.close:focus {
+ color: black;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+.dis {
+ margin-bottom: 20px;
+}
+
+.disabled {
+ cursor: pointer;
+ pointer-events: none;
+}
+.letf2{
+ margin-left: -2px;
}
\ No newline at end of file