Commit 8a43805ad7d8fd1c15b321079e292c7fddfd0fc4
1 parent
c6b64ceb
修改bug
Showing
5 changed files
with
10 additions
and
4 deletions
WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp
| @@ -147,6 +147,7 @@ | @@ -147,6 +147,7 @@ | ||
| 147 | #right_ans{ | 147 | #right_ans{ |
| 148 | margin-right:30px; | 148 | margin-right:30px; |
| 149 | } | 149 | } |
| 150 | + .btn-primary{background-color:#3bc2d6 !important;border-color:#3bc2d6;display: inline-block;width: 100px;font-size:16px;text-shadow:none;} | ||
| 150 | </style> | 151 | </style> |
| 151 | </head> | 152 | </head> |
| 152 | 153 | ||
| @@ -156,7 +157,10 @@ | @@ -156,7 +157,10 @@ | ||
| 156 | <p> | 157 | <p> |
| 157 | <span class="right_b"></span>练习报表 | 158 | <span class="right_b"></span>练习报表 |
| 158 | </p> | 159 | </p> |
| 159 | - </div> | 160 | + </div> |
| 161 | + <div class="head_box_r"> | ||
| 162 | + <button class="btn btn-primary" onclick="history.go(-1)">返回</button> | ||
| 163 | + </div> | ||
| 160 | <div class="clear"></div> | 164 | <div class="clear"></div> |
| 161 | </div> | 165 | </div> |
| 162 | <div style="padding:0 20px;padding-top:3%;padding-bottom:3%;margin-top:102px;"> | 166 | <div style="padding:0 20px;padding-top:3%;padding-bottom:3%;margin-top:102px;"> |
WebRoot/WEB-INF/jsp/sunvote/teacher/teach_paper.jsp
| @@ -137,5 +137,5 @@ | @@ -137,5 +137,5 @@ | ||
| 137 | <script src="../static/js/bootstrap.min.js" ></script> | 137 | <script src="../static/js/bootstrap.min.js" ></script> |
| 138 | <script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script> | 138 | <script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script> |
| 139 | <script src="../static/ace/js/bootbox.js"></script> | 139 | <script src="../static/ace/js/bootbox.js"></script> |
| 140 | - <script src="../static/js/teach_paper.js?a=2"></script> | 140 | + <script src="../static/js/teach_paper.js?a=0"></script> |
| 141 | </html> | 141 | </html> |
| 142 | \ No newline at end of file | 142 | \ No newline at end of file |
WebRoot/static/js/teach_paper.js
| @@ -12,7 +12,9 @@ | @@ -12,7 +12,9 @@ | ||
| 12 | type:"post", | 12 | type:"post", |
| 13 | success:function(data){ | 13 | success:function(data){ |
| 14 | console.log(data); | 14 | console.log(data); |
| 15 | - subject_id=data.data.subjectList[0].SUBJECT_ID; | 15 | + if(typeof(data.data.subjectList) != 'undefind' && data.data.subjectList.length > 0){ |
| 16 | + subject_id=data.data.subjectList[0].SUBJECT_ID; | ||
| 17 | + } | ||
| 16 | user_id=data.data.ID; | 18 | user_id=data.data.ID; |
| 17 | 19 | ||
| 18 | if(data.data.classInfoList.length>0){ | 20 | if(data.data.classInfoList.length>0){ |
src/com/fh/controller/sunvote/homework/HomeworkController.java
| @@ -136,7 +136,7 @@ public class HomeworkController extends BaseController { | @@ -136,7 +136,7 @@ public class HomeworkController extends BaseController { | ||
| 136 | ModelAndView mv = this.getModelAndView(); | 136 | ModelAndView mv = this.getModelAndView(); |
| 137 | PageData pd = new PageData(); | 137 | PageData pd = new PageData(); |
| 138 | pd = this.getPageData(); | 138 | pd = this.getPageData(); |
| 139 | - if(pd.get("SCHOOL_ID") == null){ | 139 | + if(pd.get("SCHOOL_ID") == null && pd.get("TEACHER_ID") == null){ |
| 140 | pd.put("TEACHER_ID", getTeacherID()); | 140 | pd.put("TEACHER_ID", getTeacherID()); |
| 141 | } | 141 | } |
| 142 | String keywords = pd.getString("keywords"); // 关键词检索条件 | 142 | String keywords = pd.getString("keywords"); // 关键词检索条件 |
轻松考-网络版-概要设计 .doc
No preview for this file type