Browse Source

fix issue

tags/v1.22.5.1^2
zhoupzh 3 years ago
parent
commit
c912d76fe9
1 changed files with 26 additions and 1 deletions
  1. +26
    -1
      templates/repo/cloudbrain/benchmark/new.tmpl

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

@@ -108,12 +108,35 @@
</select>
</div>

<div class="required unite min_title inline field">
<!-- <div class="required unite min_title inline field">
<label style="font-weight: normal;">{{.i18n.Tr "cloudbrain.task_type"}}</label>
<select id="cloudbrain_job_type" class="ui search dropdown width48 job_type" placeholder="select {{.i18n.Tr "cloudbrain.task_type"}}" name="job_type">
<option name="job_type" value="SNN4IMAGENET">SNN4IMAGENET</option>
<option name="job_type" value="BRAINSCORE">BRAINSCORE</option>
</select>
sle
<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">{{.i18n.Tr "cloudbrain.view_sample"}}</a>
</div> -->
<div class="required unite min_title two inline fields ">
<div class="required ten wide field" style="width: 26.5% !important;">
<label style="font-weight: normal;">{{.i18n.Tr "cloudbrain.task_type"}}</label>
<select id="cloudbrain_job_type" class="ui search dropdown job_type" placeholder="select {{.i18n.Tr "cloudbrain.task_type"}}" name="job_type">
<option value="SNN4IMAGENET">SNN4IMAGENET</option>
<option value="BRAINSCORE">BRAINSCORE</option>
</select>
</div>
<div class="required six widde field" id="brainscore_child_type" style="width: 15% !important;display: none;">
<label style="font-weight: normal;">版本</label>
<select class="ui search dropdown" placeholder="select {{.i18n.Tr "cloudbrain.task_type"}}" name="benchmark_child_types_id">
<option value="0">V1</option>
<option value="1">V2</option>
<option value="2">V4</option>
<option value="3">IT</option>
</select>
</div>
<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>
@@ -253,8 +276,10 @@
onChange: function(value, text, $selectedItem) {
console.log(value,text)
if(value==="BRAINSCORE"){
$('#brainscore_child_type').css('display','block')
$('#benchmark_model_example').attr('href','https://git.openi.org.cn/yult/similarity2brain_ann')
}else{
$('#brainscore_child_type').css('display','none')
$('#benchmark_model_example').attr('href','https://git.openi.org.cn/yult/snn4imagenet')
}
}


Loading…
Cancel
Save