Browse Source

fix issue

tags/v1.22.5.1^2
zhoupzh 3 years ago
parent
commit
dc7512d40d
3 changed files with 7 additions and 6 deletions
  1. +3
    -3
      templates/repo/cloudbrain/benchmark/new.tmpl
  2. +2
    -2
      templates/repo/cloudbrain/benchmark/show.tmpl
  3. +2
    -1
      web_src/js/components/images/Images.vue

+ 3
- 3
templates/repo/cloudbrain/benchmark/new.tmpl View File

@@ -116,8 +116,8 @@
data-content={{.i18n.Tr "repo.modelarts.train_job.boot_file_helper"}}
data-position="right center" data-variation="mini"></i>
</span>
<a id="benchmark_model_example"
href="https://git.openi.org.cn/BDIP/snn4imagenet">{{.i18n.Tr "cloudbrain.view_sample"}}</a>
<a id="benchmark_model_example" href="https://git.openi.org.cn/BDIP/snn4imagenet"
target="_blank">{{.i18n.Tr "cloudbrain.view_sample"}}</a>
</div>

<div id="images-new-cb">
@@ -307,7 +307,7 @@
}
document.onreadystatechange = function () {
if (document.readyState === "complete") {
if ($('input[name=benchmarkMode]').val() === 'alogrithm') {
if ($('input[name=benchmarkMode]').val() === 'alogrithm' || $('input[name=benchmarkMode]').val() === '') {
setChildType();
}
}


+ 2
- 2
templates/repo/cloudbrain/benchmark/show.tmpl View File

@@ -221,8 +221,8 @@
</div>
</h4>
{{range $k ,$v := .version_list_task}}
<div class="ui accordion border-according" id="accordion{{.VersionName}}" data-repopath="{{$.RepoRelPath}}"
data-jobid="{{.JobID}}" data-version="{{.VersionName}}">
<div class="ui accordion border-according" id="accordion{{.VersionName}}"
data-repopath="{{$.RepoRelPath}}/cloudbrain" data-jobid="{{.ID}}" data-version="{{.VersionName}}">
<input type="hidden" id="jobId_input" name="jobId_input" value="{{.JobID}}">
<div class="{{if eq $k 0}}active{{end}} title padding0">
<div class="according-panel-heading">


+ 2
- 1
web_src/js/components/images/Images.vue View File

@@ -370,9 +370,10 @@
align="center"
>
<template slot-scope="scope">
<a :href="'/' + scope.row.userName" :title="scope.row.userName">
<a v-if="scope.row.userName||scope.row.relAvatarLink" :href="'/' + scope.row.userName" :title="scope.row.userName">
<img :src="scope.row.relAvatarLink" class="ui avatar image">
</a>
<a v-else><img class="ui avatar image" title="Ghost" src="/user/avatar/ghost/-1"></a>
</template>
</el-table-column>
<el-table-column


Loading…
Cancel
Save