From 7f1cffd7f1a9e3c118eebc3bc33cc028abf07168 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 11 Jul 2022 16:54:18 +0800 Subject: [PATCH] fix issue --- templates/custom/wait_count_train.tmpl | 20 ++++++++++++++++---- web_src/js/features/cloudbrainShow.js | 8 ++++++-- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/templates/custom/wait_count_train.tmpl b/templates/custom/wait_count_train.tmpl index 085fa173f..661eb268d 100644 --- a/templates/custom/wait_count_train.tmpl +++ b/templates/custom/wait_count_train.tmpl @@ -1,4 +1,16 @@ -
- - {{.i18n.Tr "repo.wait_count_start"}}{{.WaitCount}}{{.i18n.Tr "repo.wait_count_end"}} -
\ No newline at end of file +
+ + {{.QueuesDetail}} + {{.i18n.Tr "repo.wait_count_start"}} + {{if .QueuesDetail}} + {{.QueuesDetail.a100}} + {{else}} + {{.WaitCount}} + {{ end }} + {{.i18n.Tr "repo.wait_count_end"}} +
diff --git a/web_src/js/features/cloudbrainShow.js b/web_src/js/features/cloudbrainShow.js index 3e556280f..b0f6f0ad7 100644 --- a/web_src/js/features/cloudbrainShow.js +++ b/web_src/js/features/cloudbrainShow.js @@ -161,7 +161,7 @@ export default async function initCloudrainSow() { // $(".content-pad").on("click", ".load-model-file", function () { console.log("11111111111"); - let version_name = $(this).data("version") || "result"; + let version_name = $(this).data("version"); let parents = $(this).data("parents") || ""; let filename = $(this).data("filename") || ""; let init = $(this).data("init") || ""; @@ -176,7 +176,11 @@ export default async function initCloudrainSow() { $(`input[name=modelback${version_name}]`).val(version_name); $(`#file_breadcrumb${version_name}`).empty(); let htmlBread = ""; - htmlBread += `
${version_name}
`; + if (version_name) { + htmlBread += `
${version_name}
`; + } else { + htmlBread += `
result
`; + } htmlBread += "
/
"; $(`#file_breadcrumb${version_name}`).append(htmlBread); } else {