Commit f0d5a2af9a51927a3f8e928ebec5da209f79cd16
1 parent
27a15f6c
修改图标剧中
Showing
3 changed files
with
11 additions
and
11 deletions
WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp
@@ -98,10 +98,9 @@ | @@ -98,10 +98,9 @@ | ||
98 | <td >${var.QUESTION_COUNT}</td> | 98 | <td >${var.QUESTION_COUNT}</td> |
99 | <td >${var.COMPLETE_COUNT == "0" ? "未完成":"已完成"}</td> | 99 | <td >${var.COMPLETE_COUNT == "0" ? "未完成":"已完成"}</td> |
100 | <td >${var.ALL_SCORE}</td> | 100 | <td >${var.ALL_SCORE}</td> |
101 | - <td> | 101 | + <td style="text-align:center"> |
102 | <c:if test="${var.COMPLETE_COUNT == '0'}"> | 102 | <c:if test="${var.COMPLETE_COUNT == '0'}"> |
103 | - <a onclick="homeReport('${var.HOMEWORK_ID}');"><img src="static/images/view.png" /></a> | ||
104 | - <a onclick="edit('${var.HOMEWORK_ID}');"><img src="static/images/eidtor.png" /></a> | 103 | + <a onclick="edit('${var.HOMEWORK_ID}');" style="margin-left: 28px"><img src="static/images/eidtor.png" /></a> |
105 | <a onclick="del('${var.HOMEWORK_ID}');"><img src="static/images/remove.png" /></a> | 104 | <a onclick="del('${var.HOMEWORK_ID}');"><img src="static/images/remove.png" /></a> |
106 | </c:if> | 105 | </c:if> |
107 | <c:if test="${var.COMPLETE_COUNT == '1'}"> | 106 | <c:if test="${var.COMPLETE_COUNT == '1'}"> |
WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp
@@ -327,28 +327,28 @@ | @@ -327,28 +327,28 @@ | ||
327 | 327 | ||
328 | }); | 328 | }); |
329 | 329 | ||
330 | - $(document).on("click",".ans_option",function(){ | ||
331 | - var className = $(this).siblings(".rel").attr("class"); | 330 | + $(document).on("click",".ans_list",function(){ |
331 | + var className = $(this).find(".ans_option").siblings(".rel").attr("class"); | ||
332 | 332 | ||
333 | 333 | ||
334 | $(".ans_option").attr("class","ans_option"); | 334 | $(".ans_option").attr("class","ans_option"); |
335 | if(className.indexOf("ans_error")>0){ | 335 | if(className.indexOf("ans_error")>0){ |
336 | - if($(this).hasClass("ans_error_round")){ | 336 | + if($(this).find(".ans_option").hasClass("ans_error_round")){ |
337 | return; | 337 | return; |
338 | }else{ | 338 | }else{ |
339 | - $(this).addClass("ans_error_round"); | 339 | + $(this).find(".ans_option").addClass("ans_error_round"); |
340 | } | 340 | } |
341 | 341 | ||
342 | }else{ | 342 | }else{ |
343 | - if($(this).hasClass("ans_correct_round")){ | 343 | + if($(this).find(".ans_option").hasClass("ans_correct_round")){ |
344 | return; | 344 | return; |
345 | }else{ | 345 | }else{ |
346 | - $(this).addClass("ans_correct_round"); | 346 | + $(this).find(".ans_option").addClass("ans_correct_round"); |
347 | } | 347 | } |
348 | } | 348 | } |
349 | 349 | ||
350 | //显示答题名单 | 350 | //显示答题名单 |
351 | - var _index = $(this).closest(".ans_list").index(); | 351 | + var _index = $(this).find(".ans_option").closest(".ans_list").index(); |
352 | console.log(data[_index].length); | 352 | console.log(data[_index].length); |
353 | var student_option_list=''; | 353 | var student_option_list=''; |
354 | for(i=0;i<data[_index].length;i++){ | 354 | for(i=0;i<data[_index].length;i++){ |
resources/mybatis1/sunvote/HomeworkMapper.xml