| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -22,6 +22,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                placeholder="请输入用户名" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                prefix-icon="el-icon-s-custom" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                style="color: #fff" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                @keyup.native.enter="nextFocus('Username')" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              ></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </el-form-item> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-form-item label="" prop="Password" style="margin-bottom: 5px"> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -31,6 +32,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                placeholder="请输入密码" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                type="password" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                prefix-icon="el-icon-unlock" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                @keyup.native.enter="nextFocus('Password')" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ref="password" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              ></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </el-form-item> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-row> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -91,6 +94,13 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }    | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  methods: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    nextFocus(e){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if(e=='Username'){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.$refs['password'].focus() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }else( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.onSubmit() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    onSubmit() {      | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.$refs.form.validate((valid) => { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -99,7 +109,6 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            userName: this.form.Username, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            passWord: this.form.Password, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          }).then(ret =>{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(`/api/identity/users/login`,ret) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let res = ret.data           | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (res.code != -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |