|  |  | @ -202,6 +202,7 @@ | 
			
		
	
		
			
				
					|  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  | import { FetchUserList, FetchAddUser, FetchDeleteUser } from '@/api/system/user' | 
			
		
	
		
			
				
					|  |  |  | import { FetchDropDownList } from '@/api/system/role' | 
			
		
	
		
			
				
					|  |  |  | import { FetchCodeMsg } from '@/api/login' | 
			
		
	
		
			
				
					|  |  |  | import { isvalidPhone } from '@/utils/validate' | 
			
		
	
		
			
				
					|  |  |  | import { parseTime } from '@/utils/index.js' | 
			
		
	
		
			
				
					|  |  |  | import { mapGetters } from 'vuex' | 
			
		
	
	
		
			
				
					|  |  | @ -418,24 +419,20 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 获取验证码 | 
			
		
	
		
			
				
					|  |  |  |     getAuthCode() { | 
			
		
	
		
			
				
					|  |  |  |       // const param = { | 
			
		
	
		
			
				
					|  |  |  |       //   phone: this.editForm.phone | 
			
		
	
		
			
				
					|  |  |  |       // } | 
			
		
	
		
			
				
					|  |  |  |       // proxy.$http | 
			
		
	
		
			
				
					|  |  |  |       //   .post(proxy.$API.SENDMSGCODE, | 
			
		
	
		
			
				
					|  |  |  |       //     param | 
			
		
	
		
			
				
					|  |  |  |       //   ) | 
			
		
	
		
			
				
					|  |  |  |       //   .then(res => { | 
			
		
	
		
			
				
					|  |  |  |       //     if (res.type == 200) { | 
			
		
	
		
			
				
					|  |  |  |       //       this.countdown() | 
			
		
	
		
			
				
					|  |  |  |       //     } else { | 
			
		
	
		
			
				
					|  |  |  |       //       console.log(res.content) | 
			
		
	
		
			
				
					|  |  |  |       //     } | 
			
		
	
		
			
				
					|  |  |  |       //   }) | 
			
		
	
		
			
				
					|  |  |  |       //   .catch(res => { | 
			
		
	
		
			
				
					|  |  |  |       //     console.log(res) | 
			
		
	
		
			
				
					|  |  |  |       //   }) | 
			
		
	
		
			
				
					|  |  |  |       const param = { | 
			
		
	
		
			
				
					|  |  |  |         phone: this.editForm.phone | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       FetchCodeMsg(param).then(res => { | 
			
		
	
		
			
				
					|  |  |  |         if (res.code == 200) { | 
			
		
	
		
			
				
					|  |  |  |           this.countdown() | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |           this.$message.error(res.msg) | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }).catch(res => { | 
			
		
	
		
			
				
					|  |  |  |         console.log(res) | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 短信验证码倒计时 | 
			
		
	
		
			
				
					|  |  |  |     countdown() { | 
			
		
	
		
			
				
					|  |  |  |       if (this.disabledSendCode) { | 
			
		
	
		
			
				
					|  |  |  |         return | 
			
		
	
	
		
			
				
					|  |  | @ -446,7 +443,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.getAuthCode() | 
			
		
	
		
			
				
					|  |  |  |       this.disabledSendCode = true | 
			
		
	
		
			
				
					|  |  |  |       // this.isSendAuth = true | 
			
		
	
		
			
				
					|  |  |  |       this.countNum = 60 | 
			
		
	
		
			
				
					|  |  |  |       const timer = setInterval(() => { | 
			
		
	
		
			
				
					|  |  |  |         this.verification = this.countNum + '重新获取' | 
			
		
	
	
		
			
				
					|  |  | @ -455,7 +451,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           clearInterval(timer) | 
			
		
	
		
			
				
					|  |  |  |           this.verification = '重新获取' | 
			
		
	
		
			
				
					|  |  |  |           this.disabledSendCode = false | 
			
		
	
		
			
				
					|  |  |  |           // this.isSendAuth = false | 
			
		
	
		
			
				
					|  |  |  |           console.log('倒计时结束') | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }, 1000) | 
			
		
	
	
		
			
				
					|  |  | 
 |