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 | 147 | #right_ans{ |
148 | 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 | 151 | </style> |
151 | 152 | </head> |
152 | 153 | |
... | ... | @@ -156,7 +157,10 @@ |
156 | 157 | <p> |
157 | 158 | <span class="right_b"></span>练习报表 |
158 | 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 | 164 | <div class="clear"></div> |
161 | 165 | </div> |
162 | 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 | 137 | <script src="../static/js/bootstrap.min.js" ></script> |
138 | 138 | <script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script> |
139 | 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 | 141 | </html> |
142 | 142 | \ No newline at end of file | ... | ... |
WebRoot/static/js/teach_paper.js
... | ... | @@ -12,7 +12,9 @@ |
12 | 12 | type:"post", |
13 | 13 | success:function(data){ |
14 | 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 | 18 | user_id=data.data.ID; |
17 | 19 | |
18 | 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 | 136 | ModelAndView mv = this.getModelAndView(); |
137 | 137 | PageData pd = new PageData(); |
138 | 138 | pd = this.getPageData(); |
139 | - if(pd.get("SCHOOL_ID") == null){ | |
139 | + if(pd.get("SCHOOL_ID") == null && pd.get("TEACHER_ID") == null){ | |
140 | 140 | pd.put("TEACHER_ID", getTeacherID()); |
141 | 141 | } |
142 | 142 | String keywords = pd.getString("keywords"); // 关键词检索条件 | ... | ... |
轻松考-网络版-概要设计 .doc
No preview for this file type