Browse Source

fix issue

tags/v1.22.7.1
zhoupzh 3 years ago
parent
commit
7f1cffd7f1
2 changed files with 22 additions and 6 deletions
  1. +16
    -4
      templates/custom/wait_count_train.tmpl
  2. +6
    -2
      web_src/js/features/cloudbrainShow.js

+ 16
- 4
templates/custom/wait_count_train.tmpl View File

@@ -1,4 +1,16 @@
<div class="tooltip-wati-count" style="margin-left: 155px;">
<i class="ri-error-warning-line" style="margin-right: 0.5rem; font-size: 16px"></i>
<span>{{.i18n.Tr "repo.wait_count_start"}}{{.WaitCount}}{{.i18n.Tr "repo.wait_count_end"}}</span>
</div>
<div class="tooltip-wati-count" style="margin-left: 155px">
<i
class="ri-error-warning-line"
style="margin-right: 0.5rem; font-size: 16px"
></i>
{{.QueuesDetail}}
<span
>{{.i18n.Tr "repo.wait_count_start"}}
{{if .QueuesDetail}}
{{.QueuesDetail.a100}}
{{else}}
{{.WaitCount}}
{{ end }}
{{.i18n.Tr "repo.wait_count_end"}}</span
>
</div>

+ 6
- 2
web_src/js/features/cloudbrainShow.js View File

@@ -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 += `<div class='active section'>${version_name}</div>`;
if (version_name) {
htmlBread += `<div class='active section'>${version_name}</div>`;
} else {
htmlBread += `<div class='active section'>result</div>`;
}
htmlBread += "<div class='divider'> / </div>";
$(`#file_breadcrumb${version_name}`).append(htmlBread);
} else {


Loading…
Cancel
Save