|  | @ -202,6 +202,7 @@ | 
		
	
		
			
				|  |  | <script> |  |  | <script> | 
		
	
		
			
				|  |  | import { FetchUserList, FetchAddUser, FetchDeleteUser } from '@/api/system/user' |  |  | import { FetchUserList, FetchAddUser, FetchDeleteUser } from '@/api/system/user' | 
		
	
		
			
				|  |  | import { FetchDropDownList } from '@/api/system/role' |  |  | import { FetchDropDownList } from '@/api/system/role' | 
		
	
		
			
				|  |  |  |  |  | import { FetchCodeMsg } from '@/api/login' | 
		
	
		
			
				|  |  | import { isvalidPhone } from '@/utils/validate' |  |  | import { isvalidPhone } from '@/utils/validate' | 
		
	
		
			
				|  |  | import { parseTime } from '@/utils/index.js' |  |  | import { parseTime } from '@/utils/index.js' | 
		
	
		
			
				|  |  | import { mapGetters } from 'vuex' |  |  | import { mapGetters } from 'vuex' | 
		
	
	
		
			
				|  | @ -418,24 +419,20 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 获取验证码 |  |  |     // 获取验证码 | 
		
	
		
			
				|  |  |     getAuthCode() { |  |  |     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() { |  |  |     countdown() { | 
		
	
		
			
				|  |  |       if (this.disabledSendCode) { |  |  |       if (this.disabledSendCode) { | 
		
	
		
			
				|  |  |         return |  |  |         return | 
		
	
	
		
			
				|  | @ -446,7 +443,6 @@ export default { | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |       this.getAuthCode() |  |  |       this.getAuthCode() | 
		
	
		
			
				|  |  |       this.disabledSendCode = true |  |  |       this.disabledSendCode = true | 
		
	
		
			
				|  |  |       // this.isSendAuth = true |  |  |  | 
		
	
		
			
				|  |  |       this.countNum = 60 |  |  |       this.countNum = 60 | 
		
	
		
			
				|  |  |       const timer = setInterval(() => { |  |  |       const timer = setInterval(() => { | 
		
	
		
			
				|  |  |         this.verification = this.countNum + '重新获取' |  |  |         this.verification = this.countNum + '重新获取' | 
		
	
	
		
			
				|  | @ -455,7 +451,6 @@ export default { | 
		
	
		
			
				|  |  |           clearInterval(timer) |  |  |           clearInterval(timer) | 
		
	
		
			
				|  |  |           this.verification = '重新获取' |  |  |           this.verification = '重新获取' | 
		
	
		
			
				|  |  |           this.disabledSendCode = false |  |  |           this.disabledSendCode = false | 
		
	
		
			
				|  |  |           // this.isSendAuth = false |  |  |  | 
		
	
		
			
				|  |  |           console.log('倒计时结束') |  |  |           console.log('倒计时结束') | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |       }, 1000) |  |  |       }, 1000) | 
		
	
	
		
			
				|  | 
 |