|
@@ -252,22 +252,25 @@
|
|
|
}
|
|
|
|
|
|
let tableHTML = '';
|
|
|
- data.map(item => {
|
|
|
+
|
|
|
+ Object.keys(data).map(key => {
|
|
|
tableHTML += `
|
|
|
<tr>
|
|
|
<td>
|
|
|
<label>
|
|
|
- <input type="checkbox" name="channelValue" ${item.checked?'checked="checked"':''} value="${item.value}" />
|
|
|
- ${item.name}${item.ratio&&pageInit?`(
|
|
|
- ${sortType == 'ratio'? "<span style='color:red;'>"+`${item.ratio}`+"</span>": item.ratio},
|
|
|
- ${sortType == 'succ'? "<span style='color:red;'>"+`${item.succ}`+"</span>": item.succ},
|
|
|
- ${sortType == 'commit'? "<span style='color:red;'>"+`${item.commit}`+"</span>": item.commit},
|
|
|
- ${sortType == 'succ_time'? "<span style='color:red;'>"+`${item.succ_time}`+"</span>": item.succ_time},
|
|
|
- ${sortType == 'fail_time'? "<span style='color:red;'>"+`${item.fail_time}`+"</span>": item.fail_time}
|
|
|
+ <input type="checkbox" name="channelValue" ${data[key].checked?'checked="checked"':''} value="${data[key].value}" />
|
|
|
+ ${data[key].name}${data[key].ratio&&pageInit?`(
|
|
|
+ ${sortType == 'ratio'? "<span style='color:red;'>"+`${data[key].ratio}`+"</span>": data[key].ratio},
|
|
|
+ ${sortType == 'succ'? "<span style='color:red;'>"+`${data[key].succ}`+"</span>": data[key].succ},
|
|
|
+ ${sortType == 'commit'? "<span style='color:red;'>"+`${data[key].commit}`+"</span>": data[key].commit},
|
|
|
+ ${sortType == 'succ_time'? "<span style='color:red;'>"+`${data[key].succ_time}`+"</span>": data[key].succ_time},
|
|
|
+ ${sortType == 'fail_time'? "<span style='color:red;'>"+`${data[key].fail_time}`+"</span>": data[key].fail_time}
|
|
|
)`:''}</label></td>
|
|
|
</tr>
|
|
|
`;
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
$('#checkChannelContent').append(tableHTML);
|
|
|
}
|
|
|
|