ting.yin 2 年之前
父節點
當前提交
f34769de96

+ 0 - 2
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/studentForm.jsp

@@ -71,8 +71,6 @@
 <script type="text/javascript">
 <script type="text/javascript">
     $(document).ready(function () {
     $(document).ready(function () {
         //$("#name").focus();
         //$("#name").focus();
-        var studentQuery =localStorage.getItem("studentQuery");
-        $("#studentQuery").attr("value",studentQuery);
         $("#inputForm").validate({
         $("#inputForm").validate({
 
 
             submitHandler: function (form) {
             submitHandler: function (form) {

+ 2 - 11
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/studentList.jsp

@@ -253,7 +253,7 @@
             <td>${student.examRoom}</td>
             <td>${student.examRoom}</td>
             <td>
             <td>
                 <c:if test="${web_user.schoolAdmin==true}">
                 <c:if test="${web_user.schoolAdmin==true}">
-                    <a href="${ctx}/admin/exam/student/update?id=${student.id}" id="update-btn">修改</a>
+                    <a href="${ctx}/admin/exam/student/update?id=${student.id}" class="update-btn">修改</a>
                     <c:if test="${examType!='MULTI_MEDIA'}">
                     <c:if test="${examType!='MULTI_MEDIA'}">
                         &nbsp;
                         &nbsp;
                         <a href="${ctx}/admin/exam/student/delete?id=${student.id}" onclick="return confirmx('确认要删除该考生吗?', this.href)">删除</a>
                         <a href="${ctx}/admin/exam/student/delete?id=${student.id}" onclick="return confirmx('确认要删除该考生吗?', this.href)">删除</a>
@@ -382,16 +382,7 @@
         });
         });
     }
     }
     
     
-    $('#update-btn').click(function () {
-    	 var studentQuery = [];
-    	 $('.studentQuery').each(function (i) {
-    		   // var val = $(this).attr("value");
-    		   // if(val!="" && val!=null && val!=undefined){
-    		    	/* var key= $(this).attr("name");
-    		    	var query={key:val};
-    		    	studentQuery.push(query); */
-    		   // }
-    		});
+    $('.update-btn').click(function () {
     	localStorage.setItem("studentQuery", JSON.stringify($("#searchForm").serializeArray()));
     	localStorage.setItem("studentQuery", JSON.stringify($("#searchForm").serializeArray()));
     });
     });
 </script>
 </script>