Browse Source

fix issue

tags/v1.22.5.1^2
zhoupzh 4 years ago
parent
commit
29235d8517
2 changed files with 7 additions and 19 deletions
  1. +7
    -7
      templates/repo/cloudbrain/benchmark/new.tmpl
  2. +0
    -12
      web_src/js/features/images.js

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

@@ -83,10 +83,10 @@
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="update">
<div class="required unite min_title inline field">
<label style="font-weight: normal;">评测场景</label>
<label style="font-weight: normal;">{{.i18n.Tr "repo.cloudbrain.benchmark.evaluate_scenes"}}</label>
<div class="ui blue small menu compact selectcloudbrain">
<a class="item alogrithm_benchmark" href="{{.Link}}?benchmarkMode=alogrithm">算法评测</a>
<a class="active item model_benchmark" href="{{.Link}}?benchmarkMode=model">模型评测</a>
<a class="item alogrithm_benchmark" href="{{.Link}}?benchmarkMode=alogrithm">{{.i18n.Tr "repo.cloudbrain.benchmark.algorithm"}}</a>
<a class="active item model_benchmark" href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a>
</div>
</div>
<div>
@@ -117,7 +117,7 @@
<span>
<i class="question circle icon link" 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/yult/snn4imagenet">查看样例</a>
<a id="benchmark_model_example" href="https://git.openi.org.cn/yult/snn4imagenet">{{.i18n.Tr "cloudbrain.view_sample"}}</a>
</div>
<div id="images-new-cb">
@@ -145,10 +145,10 @@
<input type="hidden" name="action" value="update">
<input type="hidden" name="job_type" value="BENCHMARK">
<div class="required unite min_title inline field">
<label style="font-weight: normal;">评测场景</label>
<label style="font-weight: normal;">{{.i18n.Tr "repo.cloudbrain.benchmark.evaluate_scenes"}}</label>
<div class="ui blue small menu compact selectcloudbrain">
<a class="active item alogrithm_benchmark" href="{{.Link}}?benchmarkMode=alogrithm">算法评测</a>
<a class="item model_benchmark" href="{{.Link}}?benchmarkMode=model">模型评测</a>
<a class="active item alogrithm_benchmark" href="{{.Link}}?benchmarkMode=alogrithm">{{.i18n.Tr "repo.cloudbrain.benchmark.algorithm"}}</a>
<a class="item model_benchmark" href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a>
</div>
</div>


+ 0
- 12
web_src/js/features/images.js View File

@@ -209,19 +209,7 @@ export default async function initImage(){
render: h => h(selectImages)
});
}
function initVueselectImagesCopy() {
const el = document.getElementById('images-new-cb-copy');
if (!el) {
return;
}
new Vue({
el:el,
render: h => h(selectImages)
});
}
initVueImages()
initVueAdminImages()
initVueselectImages()
initVueselectImagesCopy()
}

Loading…
Cancel
Save