| 
					
					
						
							
						
					
					
				 | 
				@ -25,9 +25,12 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				                prefix-icon="el-icon-unlock" | 
				 | 
				 | 
				                prefix-icon="el-icon-unlock" | 
			
		
		
	
		
			
				 | 
				 | 
				              ></el-input> | 
				 | 
				 | 
				              ></el-input> | 
			
		
		
	
		
			
				 | 
				 | 
				            </el-form-item> | 
				 | 
				 | 
				            </el-form-item> | 
			
		
		
	
		
			
				 | 
				 | 
				            <el-button type="primary" class="btn" @click="onSubmit(form)" | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            <!-- <el-button type="success" class="btn" @click="onSubmit(form)" | 
			
		
		
	
		
			
				 | 
				 | 
				              >用户登录</el-button | 
				 | 
				 | 
				              >用户登录</el-button | 
			
		
		
	
		
			
				 | 
				 | 
				            > | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            > --> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            <button type="success" class="btn" @click="onSubmit(form)"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              用户登录 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            </button> | 
			
		
		
	
		
			
				 | 
				 | 
				          </el-form> | 
				 | 
				 | 
				          </el-form> | 
			
		
		
	
		
			
				 | 
				 | 
				        </div> | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				      </div> | 
				 | 
				 | 
				      </div> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -75,25 +78,24 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				          }) | 
				 | 
				 | 
				          }) | 
			
		
		
	
		
			
				 | 
				 | 
				            .then((res) => { | 
				 | 
				 | 
				            .then((res) => { | 
			
		
		
	
		
			
				 | 
				 | 
				              msgs = res.data.msg; | 
				 | 
				 | 
				              msgs = res.data.msg; | 
			
		
		
	
		
			
				 | 
				 | 
				              if(res.code==1){ | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                     writetoken(res.data.expires_in); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				              window.localStorage.setItem("token", res.data.access_token); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				              window.localStorage.setItem( | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                "refresh_token", | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                res.data.refresh_token | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				              ); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				              window.localStorage.setItem("tokentype", res.data.token_type); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				              window.localStorage.setItem("user", this.form.Username); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              if (res.code == 1) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                writetoken(res.data.expires_in); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                window.localStorage.setItem("token", res.data.access_token); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                window.localStorage.setItem( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                  "refresh_token", | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                  res.data.refresh_token | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                ); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                window.localStorage.setItem("tokentype", res.data.token_type); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                window.localStorage.setItem("user", this.form.Username); | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				              this.$router.push({ path: "home" }); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				              this.$store.state.changepassword = this.form.Password; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                this.$router.push({ path: "home" }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                this.$store.state.changepassword = this.form.Password; | 
			
		
		
	
		
			
				 | 
				 | 
				              } | 
				 | 
				 | 
				              } | 
			
		
		
	
		
			
				 | 
				 | 
				              this.$message.success(msgs); | 
				 | 
				 | 
				              this.$message.success(msgs); | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				              console.log(res,'res'); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              console.log(res, "res"); | 
			
		
		
	
		
			
				 | 
				 | 
				              // if (res.code != -1 && res.data.code == 1) { | 
				 | 
				 | 
				              // if (res.code != -1 && res.data.code == 1) { | 
			
		
		
	
		
			
				 | 
				 | 
				              //   window.sessionStorage.setItem("peisid", res.data.peisid); //设置当前人员所属体检中心 | 
				 | 
				 | 
				              //   window.sessionStorage.setItem("peisid", res.data.peisid); //设置当前人员所属体检中心 | 
			
		
		
	
		
			
				 | 
				 | 
				            | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				              //   return this.$axios.post( | 
				 | 
				 | 
				              //   return this.$axios.post( | 
			
		
		
	
		
			
				 | 
				 | 
				              //     mm.apiurl + "/connect/token", | 
				 | 
				 | 
				              //     mm.apiurl + "/connect/token", | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -286,6 +288,9 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				  // background: url("https://img.zcool.cn/community/013c8b5b62d108a801206a35bea1eb.jpg@2o.jpg");1 | 
				 | 
				 | 
				  // background: url("https://img.zcool.cn/community/013c8b5b62d108a801206a35bea1eb.jpg@2o.jpg");1 | 
			
		
		
	
		
			
				 | 
				 | 
				  // background: url("https://img1.baidu.com/it/u=1097534320,1746985227&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"); | 
				 | 
				 | 
				  // background: url("https://img1.baidu.com/it/u=1097534320,1746985227&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"); | 
			
		
		
	
		
			
				 | 
				 | 
				  background: url("@/assets/images/logn.png"); | 
				 | 
				 | 
				  background: url("@/assets/images/logn.png"); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  background-size: cover; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  width: 100%; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				  height: 100%; | 
				 | 
				 | 
				  height: 100%; | 
			
		
		
	
		
			
				 | 
				 | 
				  width: 100%; | 
				 | 
				 | 
				  width: 100%; | 
			
		
		
	
		
			
				 | 
				 | 
				  min-height: 100vh; | 
				 | 
				 | 
				  min-height: 100vh; | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -296,7 +301,9 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				  height: 300px; | 
				 | 
				 | 
				  height: 300px; | 
			
		
		
	
		
			
				 | 
				 | 
				  display: flex; | 
				 | 
				 | 
				  display: flex; | 
			
		
		
	
		
			
				 | 
				 | 
				  // background: #fff; | 
				 | 
				 | 
				  // background: #fff; | 
			
		
		
	
		
			
				 | 
				 | 
				  background: rgb(190, 243, 210); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  // background: rgb(190, 243, 210); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  background: rgba(186, 251, 185, 1); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  opacity: .5; | 
			
		
		
	
		
			
				 | 
				 | 
				  position: absolute; | 
				 | 
				 | 
				  position: absolute; | 
			
		
		
	
		
			
				 | 
				 | 
				  left: 50%; | 
				 | 
				 | 
				  left: 50%; | 
			
		
		
	
		
			
				 | 
				 | 
				  top: 50%; | 
				 | 
				 | 
				  top: 50%; | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -310,6 +317,8 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				    text-align: center; | 
				 | 
				 | 
				    text-align: center; | 
			
		
		
	
		
			
				 | 
				 | 
				    font-weight: 700; | 
				 | 
				 | 
				    font-weight: 700; | 
			
		
		
	
		
			
				 | 
				 | 
				    font-size: 20px; | 
				 | 
				 | 
				    font-size: 20px; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    color: rgba(73, 73, 73, 1); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    opacity: .5; | 
			
		
		
	
		
			
				 | 
				 | 
				  } | 
				 | 
				 | 
				  } | 
			
		
		
	
		
			
				 | 
				 | 
				} | 
				 | 
				 | 
				} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -317,8 +326,16 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				  margin-top: 20px; | 
				 | 
				 | 
				  margin-top: 20px; | 
			
		
		
	
		
			
				 | 
				 | 
				  padding: 20px; | 
				 | 
				 | 
				  padding: 20px; | 
			
		
		
	
		
			
				 | 
				 | 
				} | 
				 | 
				 | 
				} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				.btn :hover { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  background-color: rgb(0, 183, 92); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				} | 
			
		
		
	
		
			
				 | 
				 | 
				.btn { | 
				 | 
				 | 
				.btn { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  background-color: rgb(0, 183, 92); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  // background-color: #ccc; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  border: none; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  color: #fff; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  font-weight: 700; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  height: 40px; | 
			
		
		
	
		
			
				 | 
				 | 
				  width: 100%; | 
				 | 
				 | 
				  width: 100%; | 
			
		
		
	
		
			
				 | 
				 | 
				} | 
				 | 
				 | 
				} | 
			
		
		
	
		
			
				 | 
				 | 
				</style> | 
				 | 
				 | 
				</style> |