From d7348237114a673d44973191d6b5080d06dc98c4 Mon Sep 17 00:00:00 2001 From: jack-rabbit <376168706@qq.com> Date: Thu, 27 Jun 2019 17:01:24 +0800 Subject: [PATCH] 1.修改课后练报表页面 --- WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp | 4 ++-- WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------ src/com/fh/controller/sunvote/homework/HomeworkController.java | 8 ++++---- 3 files changed, 138 insertions(+), 24 deletions(-) diff --git a/WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp index 82d6c72..b40d50e 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp @@ -184,8 +184,8 @@ parent.$("#mainFrame").attr('src',path); window.top.loading.show(); } - function homeReport(){ - var path = '<%=basePath%>homework/report.do?'; + function homeReport(homework_id){ + var path = '<%=basePath%>homework/report2.do?HOMEWORK_ID='+homework_id; parent.$("#mainFrame").attr('src',path); window.top.loading.show(); } diff --git a/WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp b/WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp index 396893d..9e31303 100644 --- a/WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp +++ b/WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp @@ -52,6 +52,7 @@ float:left; list-style:none; border:1px solid #ddd; + cursor: pointer; } .correct{ color:#28be56; @@ -68,17 +69,21 @@ } .q_charts{ width:100%; - height:200px; + height:240px; + postion:relative; + margin-top:20px; + text-align:center; } .rel{ - width:20px; + width:40px; height:100%; + position:relative; } .ans_correct{ - background:#f00; + background:#28be56; } .ans_error{ - background:#ff0; + background:#ff5353; } .ans_list{ display:inline-block; @@ -86,13 +91,57 @@ margin:0 10px; } .ans_list p{ - margin:0; + margin-bottom:0; + margin-top:5px; line-height:20px; + text-align:center; + } + .ans_option{ + cursor: pointer; } .p_num{ - + position:absolute; + top:-20px; } - + .ans_error_round{ + width:20px; + height:20px; + margin:0 auto; + background:#ff5353; + color:#fff; + border-radius:10px; + } + .ans_correct_round{ + width:20px; + height:20px; + margin:0 auto; + background:#28be56; + color:#fff; + border-radius:10px; + } + .student_list{ + width:100%; + padding:10px; + background:#f3f3f3; + box-sizing:border-box; + } + .cle:after{ + visibility:hidden; + display:block; + font-size:0; + content:'\20'; + clear:both; + height:0; + } + .student_list li{ + width:120px; + height:20px; + list-style:none; + text-align:center; + line-height:20px; + float:left; + } + @@ -105,7 +154,7 @@
-
+

作业总体情况:

@@ -117,13 +166,17 @@ - - + + - + - +
提交情况:25/30题量:10最高得分率:100%题量:${page_data.QUESTION_COUNT}最高得分率:${page_data.GET_MAX_SCORE*100/page_data.ALL_SCORE}% 最低得分率:10%平均得分率:60%平均得分率:${page_data.GET_SCORE_PERSENT}
未提交人:张三、李四未提交人:${data[0].STUDENT_NAME } + + 、${var.STUDENT_NAME} + +
@@ -161,15 +214,40 @@

正确答案:D 得分率:84%

-

8人

-
+ +
+

8人

+

A

-
-

8人

-
-

A

+
+
+

16人

+
+

B

+
+
+

32人

+
+

C

+
+
+
+

24人

+
+

D

+
+
+
+
  • 黄某某
  • +
  • 黄某某
  • +
  • 黄某某
  • +
  • 黄某某
  • +
  • 黄某某
  • +
  • 黄某某
  • +
  • 黄某某
  • +
  • 黄某某
  • @@ -196,6 +274,21 @@