+
{{.JobName}}
-
+
{{if eq .JobType "DEBUG"}}
-
@@ -216,4 +216,5 @@ function getParams(){
})
}
getParams()
+console.log({{.Tasks}})
diff --git a/templates/admin/cloudbrain/search.tmpl b/templates/admin/cloudbrain/search.tmpl
index bbd45e550..0414e45c5 100644
--- a/templates/admin/cloudbrain/search.tmpl
+++ b/templates/admin/cloudbrain/search.tmpl
@@ -15,6 +15,7 @@
DEBUG
TRAIN
INFERENCE
+
BENCHMARK
@@ -35,7 +36,7 @@
RESTARTING
START_FAILED
STOPPING
-
STOPPED
+
STOPPED
WAITING
COMPLETED
FAILED
diff --git a/web_src/js/features/cloudrbanin.js b/web_src/js/features/cloudrbanin.js
index 5fcaf56c8..f54212a0f 100644
--- a/web_src/js/features/cloudrbanin.js
+++ b/web_src/js/features/cloudrbanin.js
@@ -8,7 +8,6 @@ export default async function initCloudrain() {
// const computeResource = job.dataset.resource
const versionname = job.dataset.version
const status_text = $(`#${jobID}-text`).text()
- console.log(versionname)
const finalState = ['STOPPED','CREATE_FAILED','UNAVAILABLE','DELETED','RESIZE_FAILED','SUCCEEDED','IMAGE_FAILED','SUBMIT_FAILED','DELETE_FAILED','KILLED','COMPLETED','FAILED','CANCELED','LOST','START_FAILED','SUBMIT_MODEL_FAILED','DEPLOY_SERVICE_FAILED','CHECK_FAILED']
if (finalState.includes(status_text)) {
return
diff --git a/web_src/js/index.js b/web_src/js/index.js
index cec6823a6..1abf3ba38 100755
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -3601,17 +3601,27 @@ function initVueApp() {
uid: Number(
(document.querySelector('meta[name=_context_uid]') || {}).content
),
- activityTopAuthors: window.ActivityTopAuthors || []
+ activityTopAuthors: window.ActivityTopAuthors || [],
+ localHref:''
},
components: {
ActivityTopAuthors
},
mounted(){
this.page = parseInt(new URLSearchParams(window.location.search).get('page'))
+ this.localHref = location.href
+
},
methods:{
handleCurrentChange:function (val) {
- window.location.href='/admin/cloudbrains?page='+val
+ const searchParams = new URLSearchParams(window.location.search)
+ if (!window.location.search) {
+ window.location.href = this.localHref + '?page='+val
+ } else if (searchParams.has('page')) {
+ window.location.href = this.localHref.replace(/page=[0-9]/g,'page='+val)
+ } else {
+ window.location.href=location.href+'&page='+val
+ }
this.page = val
}
}
diff --git a/web_src/less/openi.less b/web_src/less/openi.less
index c9e6a546f..6598f5f40 100644
--- a/web_src/less/openi.less
+++ b/web_src/less/openi.less
@@ -1,6 +1,11 @@
a {
color: #0366d6;
}
+.nowrap{
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
.ui .text.yellow a {
color: #fbbd08!important
}