Commit a7551346a87d4bd3717529def6be1add5c2b0d16
1 parent
f0689229
报表显示时间
Showing
2 changed files
with
9 additions
and
4 deletions
WebRoot/WEB-INF/jsp/sunvote/teacher/stduent_report.jsp
| @@ -116,7 +116,7 @@ li { | @@ -116,7 +116,7 @@ li { | ||
| 116 | <script type=""> | 116 | <script type=""> |
| 117 | var URL = '<%=basePath%>${URL}'; | 117 | var URL = '<%=basePath%>${URL}'; |
| 118 | </script> | 118 | </script> |
| 119 | - <script src="../static/js/control1.js?a=1"></script> | 119 | + <script src="../static/js/control1.js?a=2"></script> |
| 120 | <!-- 日期框 --> | 120 | <!-- 日期框 --> |
| 121 | <script> | 121 | <script> |
| 122 | //lay('#version').html('-v'+ laydate.v); | 122 | //lay('#version').html('-v'+ laydate.v); |
WebRoot/static/js/control1.js
| @@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
| 29 | } | 29 | } |
| 30 | $(".content_l ul").html(_html); | 30 | $(".content_l ul").html(_html); |
| 31 | console.log(_index); | 31 | console.log(_index); |
| 32 | - | 32 | + window.top.loading.remove(); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | }); | 35 | }); |
| @@ -65,9 +65,11 @@ | @@ -65,9 +65,11 @@ | ||
| 65 | // var date_arry=date_string.split(' - '); | 65 | // var date_arry=date_string.split(' - '); |
| 66 | // startDate=date_arry[0]; | 66 | // startDate=date_arry[0]; |
| 67 | // endDate=date_arry[1]; | 67 | // endDate=date_arry[1]; |
| 68 | + window.top.loading.show(); | ||
| 68 | startDate = $("#starDate").val(); | 69 | startDate = $("#starDate").val(); |
| 69 | endDate = $("#endDate").val(); | 70 | endDate = $("#endDate").val(); |
| 70 | getData(startDate,endDate); | 71 | getData(startDate,endDate); |
| 72 | + | ||
| 71 | }) | 73 | }) |
| 72 | 74 | ||
| 73 | $(".prev").click(function(){ | 75 | $(".prev").click(function(){ |
| @@ -112,7 +114,7 @@ | @@ -112,7 +114,7 @@ | ||
| 112 | if($("input[type='radio']:checked").val()==1){ | 114 | if($("input[type='radio']:checked").val()==1){ |
| 113 | for(var i=0;i<test_num;i++){ | 115 | for(var i=0;i<test_num;i++){ |
| 114 | if(data.data.studentList[index].testList[i].TOTAL_SCORE>0){ | 116 | if(data.data.studentList[index].testList[i].TOTAL_SCORE>0){ |
| 115 | - data0[i]=data.data.studentList[index].testList[i].NAME; | 117 | + data0[i]=data.data.studentList[index].testList[i].NAME + "\n" + data.data.studentList[index].testList[i].CREATE_DATE; |
| 116 | data1[i]=(data.data.studentList[index].testList[i].AVG_SCORE/data.data.studentList[index].testList[i].TOTAL_SCORE*100).toFixed(2); | 118 | data1[i]=(data.data.studentList[index].testList[i].AVG_SCORE/data.data.studentList[index].testList[i].TOTAL_SCORE*100).toFixed(2); |
| 117 | data2[i]=(data.data.studentList[index].testList[i].SCORE/data.data.studentList[index].testList[i].TOTAL_SCORE*100).toFixed(2); | 119 | data2[i]=(data.data.studentList[index].testList[i].SCORE/data.data.studentList[index].testList[i].TOTAL_SCORE*100).toFixed(2); |
| 118 | data3[i]=(data.data.studentList[index].testList[i].MAX_SCORE/data.data.studentList[index].testList[i].TOTAL_SCORE*100).toFixed(2); | 120 | data3[i]=(data.data.studentList[index].testList[i].MAX_SCORE/data.data.studentList[index].testList[i].TOTAL_SCORE*100).toFixed(2); |
| @@ -154,9 +156,12 @@ | @@ -154,9 +156,12 @@ | ||
| 154 | xAxis: { | 156 | xAxis: { |
| 155 | type: 'category', | 157 | type: 'category', |
| 156 | data: data0 | 158 | data: data0 |
| 159 | + /*, | ||
| 160 | + axisLabel:{interval: 0}*/ | ||
| 157 | }, | 161 | }, |
| 158 | yAxis: { | 162 | yAxis: { |
| 159 | - type: 'value' | 163 | + type: 'value', |
| 164 | + splitArea: {show: true} | ||
| 160 | }, | 165 | }, |
| 161 | series: [{ | 166 | series: [{ |
| 162 | data: data1, | 167 | data: data1, |