Browse Source

提交代码。

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

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

@@ -184,10 +184,10 @@
let type_id = $('#benchmark_types_id').val();
$.get(`${repolink}/cloudbrain/benchmark/get_child_types?benchmark_type_id=${type_id}`, (data) => {
console.log(JSON.stringify(data))
const n_length = data.child_types.length
const n_length = data['child_types'].length
let html=''
for (let i=0;i<n_length;i++){
html += `<option value="${data.child_types[i].Id}">"${data.child_types[i].Value}"</option>`;
html += `<option value="${data['child_types'][i].id}">"${data['child_types'][i].value}"</option>`;
}
document.getElementById("benchmark_child_types_id").innerHTML=html;
})


Loading…
Cancel
Save