"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[665],{77665:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"find-password container"},[t("h3",{staticClass:"title"},[e._v("忘记密码")]),t("el-card",{staticClass:"procees-contaner"},[t("el-steps",{attrs:{active:e.processActive,"align-center":""}},[t("el-step",{attrs:{title:"填写账号信息",description:""}}),t("el-step",{attrs:{title:"设置新密码",description:""}}),t("el-step",{attrs:{title:"完成",description:""}})],1),1==e.processActive?t("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"用户名",prop:"username"}},[t("el-input",{model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),e.form.phonenumber?t("el-form-item",{attrs:{label:"注册手机号"}},[t("el-col",{attrs:{span:20}},[t("span",[e._v(e._s(e.form.phonenumber))])]),t("el-col",{attrs:{span:4}})],1):e._e(),t("el-form-item",{attrs:{label:"短信验证码",prop:"code"}},[t("el-col",{attrs:{span:20}},[t("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),t("el-col",{attrs:{span:4}},[t("el-button",{directives:[{name:"show",rawName:"v-show",value:10===e.countDown,expression:"countDown === 10"}],staticClass:"btn-get-code",attrs:{size:"small",type:"primary",plain:""},on:{click:e.getSmgCode}},[e._v("获取验证码")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:10!==e.countDown,expression:"countDown !== 10"}],staticClass:"btn-get-code",attrs:{size:"small",disabled:""}},[e._v("重新获取("+e._s(e.countDown)+")")])],1)],1),t("el-form-item",{attrs:{label:""}},[t("el-button",{attrs:{type:"primary"},on:{click:e.processActiveAdd}},[e._v(" 下一步")])],1)],1):e._e(),2==e.processActive?t("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"新密码",prop:"password"}},[t("el-input",{attrs:{type:e.flagType,"auto-complete":"off",placeholder:""},on:{input:e.strengthColor},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}},[t("i",{staticClass:"el-input__icon el-icon-view",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:function(t){return e.getFlageye()}},slot:"suffix"})]),t("div",{staticClass:"divClass"},[t("span",{class:"1"==e.passwords?"weak":"2"==e.passwords?"medium":"3"==e.passwords?"strong":""}),t("span",{class:"2"==e.passwords?"medium":"3"==e.passwords?"strong":""}),t("span",{class:"3"==e.passwords?"strong":""})])],1),t("el-form-item",{attrs:{label:"确认密码",prop:"passwords"}},[t("el-input",{attrs:{type:"password"},model:{value:e.form.passwords,callback:function(t){e.$set(e.form,"passwords",t)},expression:"form.passwords"}})],1),t("el-form-item",{attrs:{label:""}},[t("el-button",{attrs:{type:"primary"},on:{click:e.processActiveRome}},[e._v(" 上一步")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleAuthon}},[e._v(" 提交")])],1)],1):e._e(),3==e.processActive?t("el-form",{ref:"form",attrs:{model:e.form,"label-width":"0px"}},[t("el-form-item",{attrs:{label:""}},[t("div",{staticClass:"success-tips",staticStyle:{color:"#1ae51ad1","font-size":"24px","font-weight":"600","text-align":"center"}},[t("i",{staticClass:"icon el-icon-success"}),e._v(" 修改成功")]),t("div",{staticClass:"go-back",staticStyle:{"text-align":"center"}},[t("span",{staticStyle:{color:"red","font-size":"18px","font-weight":"bold"}},[e._v(e._s(e.remainingTime))]),e._v("秒后 "),t("span",[e._v("自动返回登录页")])]),t("div",{staticClass:"btn-back",staticStyle:{"text-align":"center"}},[t("el-button",{attrs:{type:"primary"}},[t("router-link",{attrs:{to:"/login"}},[e._v("立即返回")])],1)],1)])],1):e._e()],1)],1)},o=[],n=(r(32564),r(83710),r(32900)),a=r(12223),i=r(41051);const l={name:"FindPwd",data:function(){return{isShowMenu:!1,passwords:"1",flagType:"password",processActive:1,form:{username:"",code:"",password:"",passwords:"",phonenumber:""},remainingTime:5,keyiv:"",countDown:10,rules:{username:[{required:!0,message:"用户名不能为空",trigger:"blur"}],code:[{required:!0,message:"验证码不能为空",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[^]{8,16}$/,message:"密码须包含数字、大小写字母且长度在8-16之间",trigger:"blur"}],passwords:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[^]{8,16}$/,message:"密码须包含数字、大小写字母且长度在8-16之间",trigger:"blur"}]}}},created:function(){this.getKeyiv()},methods:{getFlageye:function(){this.flagType="password"===this.flagType?"text":"password"},strengthColor:function(){this.form.password.length<=6?this.passwords="1":this.form.password.length<=10?this.passwords="2":this.passwords="3"},getKeyiv:function(){var e=this;(0,a.Z6)().then((function(t){e.keyiv=t.data}))},getSmgCode:function(){var e=this;this.setTimer(),console.log(this.form.username),(0,n["in"])(this.form.username).then((function(t){e.form.phonenumber=t.data.phonenumber,(0,n.bL)(e.form.phonenumber).then((function(t){e.form.code=t.data.code}))}))},setTimer:function(){var e=this,t=null;t=setInterval((function(){e.countDown--,e.countDown<0&&(clearInterval(t),e.countDown=10)}),1e3)},processActiveAdd:function(){var e=this;this.$refs["form"].validate((function(t){t&&(0,n.F7)(e.form.code).then((function(t){e.processActive++}))}))},processActiveRome:function(){this.form.phonenumber="",this.form.code="",this.processActive--},handleAuthon:function(){var e=this;this.form.password==this.form.passwords?this.$refs["form"].validate((function(t){t&&(e.form.passwords="",e.form.password=(0,i.H)(e.keyiv,e.form.password+","+(new Date).getTime()),(0,n.c0)(e.form).then((function(t){e.processActive++,e.countdownInterval=setInterval((function(){console.log("倒计时结束"),e.remainingTime>0?e.remainingTime--:clearInterval(e.countdownInterval),e.$router.push("/login")}),1e3)})))})):this.$message({type:"warning",message:"新密码与确认密码不一致!"})}},beforeDestroy:function(){clearTimeout(this.countdownInterval)}},c=l;var u=r(43736),m=(0,u.Z)(c,s,o,!1,null,"6b71d0fc",null);const p=m.exports},32900:(e,t,r)=>{r.d(t,{Cp:()=>x,F7:()=>C,Hc:()=>y,Ht:()=>l,JE:()=>w,W1:()=>d,WG:()=>a,_I:()=>_,aX:()=>o,bL:()=>A,c0:()=>k,cT:()=>b,d5:()=>n,e_:()=>h,en:()=>c,fR:()=>i,in:()=>Z,jr:()=>v,oK:()=>f,qS:()=>m,rK:()=>g,uN:()=>p,ur:()=>u});var s=r(73821);function o(e){return(0,s.Z)({url:"/myApply/laboratoryList",method:"get",params:e})}function n(e){return(0,s.Z)({url:"/myApply/laboratoryDetail?reviewId="+e,method:"get"})}function a(e){return(0,s.Z)({url:"/myApply/exportList",method:"get",params:e})}function i(e){return(0,s.Z)({url:"/myApply/download",method:"get",params:e})}function l(e){return(0,s.Z)({url:"/myLab/list",method:"get",params:e})}function c(e){return(0,s.Z)({url:"/myLab/info?applyId="+e,method:"get"})}function u(e){return(0,s.Z)({url:"/myLab/restart",method:"post",data:e})}function m(e){return(0,s.Z)({url:"/myLab/dataInjection",method:"post",data:e})}function p(e){return(0,s.Z)({url:"/myLab/fileList?applyId="+e,method:"get"})}function d(e){return(0,s.Z)({url:"/myLab/applyDown",method:"post",data:e})}function f(e){return(0,s.Z)({url:"/api/userApiList",method:"get",params:e})}function h(e){return(0,s.Z)({url:"/api/userApiStatisticsList",method:"get",params:e})}function g(e){return(0,s.Z)({url:"/myMessage/page",method:"get",params:e})}function w(e){return(0,s.Z)({url:"/myMessage/detail?msgId="+e,method:"post"})}function v(e){return(0,s.Z)({url:"myMessage/markRead",method:"post",data:e})}function y(e){return(0,s.Z)({url:"/myResources/list",method:"get",params:e})}function b(e){return(0,s.Z)({url:"/myResources/uploadFile",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}})}function _(e){return(0,s.Z)({url:"/myResources/delete?fileId="+e,method:"delete"})}function Z(e){return(0,s.Z)({url:"/rePwd/getPhoneByUser?username="+e,method:"get"})}function A(){return(0,s.Z)({url:"/rePwd/sendPhoneCode",method:"get"})}function C(e){return(0,s.Z)({url:"/rePwd/verifyPhoneCode?phoneCode="+e,method:"get"})}function k(e){return(0,s.Z)({url:"/rePwd/reset",method:"post",data:e})}function x(e){return(0,s.Z)({url:"/changePassword",method:"post",data:e})}}}]);