| 
					
				 | 
			
			
				@@ -283,16 +283,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.sName === "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$message.error("学生昵称不能为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else if (this.sId === "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$message.error("学生学号不能为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else if (this.sPhone === "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$message.error("学生手机号不能为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else if (this.sByClass === "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }  else if (this.sByClass === "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$message.error("请为学生选择班级"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else if (!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.sPhone)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } else if (this.sId != "" && !/^[1][3,4,5,7,8][0-9]{9}$/.test(this.sPhone)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$message.error("手机号格式不正确"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else if ( 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -301,14 +295,22 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$message.error("邮箱格式不正确"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // else if (this.sId === "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   this.$message.error("学生学号不能为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // } else if (this.sPhone === "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   this.$message.error("学生手机号不能为空"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.time()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        let params = { un: this.sPhone }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.ajax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          .get(this.$store.state.api + "findPhone", params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          .then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (res.data[0].length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.$message.error("此学生手机号码已被注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // let params = { un: this.sPhone }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.ajax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   .get(this.$store.state.api + "findPhone", params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   .then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     if (res.data[0].length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //       this.$message.error("此学生手机号码已被注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               let params = { un: this.sMail }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.ajax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .get(this.$store.state.api + "findMail", params) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -316,29 +318,29 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   if (res.data[0].length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.$message.error("此学生邮箱已被注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    let params = { un: this.sId }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.ajax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      .get(this.$store.state.api + "findSid", params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      .then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        if (res.data[0].length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          this.$message.error("此学生学号已被注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    // let params = { un: this.sId }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    // this.ajax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //   .get(this.$store.state.api + "findSid", params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //   .then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        // if (res.data[0].length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        //   this.$message.error("此学生学号已被注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        // } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                           this.add_Student(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      .catch((err) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        console.error(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      // .catch((err) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      //   console.error(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .catch((err) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   console.error(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          .catch((err) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.error(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // .catch((err) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   console.error(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     add_Student() { 
			 |