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