Browse Source

提交代码。解决#1360

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.3
zouap 3 years ago
parent
commit
442dac3443
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      templates/repo/cloudbrain/benchmark/new.tmpl

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

@@ -157,20 +157,23 @@
.tab();

$('#benchmark_types_id').change(function(){
setChildType();
})

function setChildType(){
var html = "<option value=\"1\">无</option>" ;
if ($(this).val() == '2') {
if ($('#benchmark_types_id').val() == '2') {
html = "<option value=\"1\">vehicle reid</option>" ;
html += "<option value=\"2\">image-based person reid</option>" ;
html += "<option value=\"3\">person search</option>" ;
html += "<option value=\"4\">video-based person reid</option>" ;
}
document.getElementById("benchmark_child_types_id").innerHTML=html;
})
}

document.onreadystatechange = function() {
if (document.readyState === "complete") {
document.getElementById("benchmark_child_types_id")[1].selected=true;
setChildType();
}
}


Loading…
Cancel
Save