You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
7.2 KiB

"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[242],{6242:(t,e,s)=>{s.r(e),s.d(e,{default:()=>c});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"find-password container"},[e("h3",{staticClass:"title"},[t._v(" 修改密码"),"0"==t.firstFlag?e("span",{staticStyle:{"text-align":"center",padding:"10px",color:"red"}},[t._v("(初次登陆需修改初始密码)")]):t._e(),t.pwdRemainderDate<=15&&null!=t.pwdRemainderDate?e("span",{staticStyle:{"text-align":"center",padding:"10px",color:"red"}},[t._v("(密码失效修改密码)")]):t._e()]),e("el-card",{staticClass:"procees-contaner"},[e("el-steps",{attrs:{active:t.processActive,"align-center":""}},[e("el-step",{attrs:{title:"设置新密码",description:""}}),e("el-step",{attrs:{title:"完成",description:""}})],1),1==t.processActive?e("el-form",{ref:"form",attrs:{rules:t.rules,model:t.form,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"原密码",prop:"oldPassword"}},[e("el-input",{attrs:{type:"password"},model:{value:t.form.oldPassword,callback:function(e){t.$set(t.form,"oldPassword",e)},expression:"form.oldPassword"}})],1),e("el-form-item",{attrs:{label:"新密码",prop:"password"}},[e("el-input",{attrs:{type:t.flagType,"auto-complete":"off",placeholder:""},on:{input:t.strengthColor},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}},[e("i",{staticClass:"el-input__icon el-icon-view",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:function(e){return t.getFlageye()}},slot:"suffix"})]),e("div",{staticClass:"divClass"},[e("span",{class:"1"==t.passwords?"weak":"2"==t.passwords?"medium":"3"==t.passwords?"strong":""}),e("span",{class:"2"==t.passwords?"medium":"3"==t.passwords?"strong":""}),e("span",{class:"3"==t.passwords?"strong":""})])],1),e("el-form-item",{attrs:{label:"确认密码",prop:"passwords"}},[e("el-input",{attrs:{type:"password"},model:{value:t.form.passwords,callback:function(e){t.$set(t.form,"passwords",e)},expression:"form.passwords"}})],1),e("el-form-item",{attrs:{label:""}},[e("el-button",{attrs:{type:"primary"},on:{click:t.handleAuthon}},[t._v(" 提交")])],1)],1):t._e(),2==t.processActive?e("el-form",{ref:"form",attrs:{model:t.form,"label-width":"0px"}},[e("el-form-item",{attrs:{label:""}},[e("div",{staticClass:"success-tips",staticStyle:{color:"#1ae51ad1","font-size":"24px","font-weight":"600","text-align":"center"}},[e("i",{staticClass:"icon el-icon-success"}),t._v(" 修改成功 ")]),e("div",{staticClass:"go-back",staticStyle:{"text-align":"center"}},[e("span",{staticStyle:{color:"red","font-size":"18px","font-weight":"bold"}},[t._v(t._s(t.remainingTime))]),t._v("秒后 "),e("span",[t._v("自动返回登录页")])]),e("div",{staticClass:"btn-back",staticStyle:{"text-align":"center"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.logout}},[t._v("重新登录")])],1)])],1):t._e()],1)],1)},o=[],a=(s(47941),s(83710),s(32564),s(32900)),n=s(12223),i=s(41051);const l={name:"ResetPwd",data:function(){return{isShowMenu:!1,passwords:"1",flagType:"password",processActive:1,form:{oldPassword:"",password:"",passwords:""},firstFlag:"",pwdRemainderDate:"",remainingTime:5,keyiv:"",countDown:10,rules:{oldPassword:[{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(){var t=localStorage.getItem("myData");if(t){var e=JSON.parse(t);this.firstFlag=e.firstFlag,this.pwdRemainderDate=e.pwdRemainderDate}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 t=this;(0,n.Z6)().then((function(e){t.keyiv=e.data}))},logout:function(){var t=this;this.$store.dispatch("LogOut").then((function(){t.$router.push("/login")}))},handleAuthon:function(){var t=this;this.form.password==this.form.passwords?this.$refs["form"].validate((function(e){e&&(t.form.passwords="",t.form.oldPassword=(0,i.H)(t.keyiv,t.form.oldPassword+","+(new Date).getTime()),t.form.password=(0,i.H)(t.keyiv,t.form.password+","+(new Date).getTime()),(0,a.Cp)(t.form).then((function(e){200==e.code?(t.processActive++,t.countdownInterval=setInterval((function(){console.log("倒计时结束"),t.remainingTime>0?t.remainingTime--:clearInterval(t.countdownInterval),t.$store.dispatch("LogOut").then((function(){t.$router.push("/login")}))}),1e3)):(t.form.oldPassword="",t.form.password="",t.strengthColor())})))})):this.$message({type:"warning",message:"新密码与确认密码不一致!"})}},beforeDestroy:function(){clearTimeout(this.countdownInterval)}},d=l;var u=s(43736),p=(0,u.Z)(d,r,o,!1,null,"d37bfed6",null);const c=p.exports},32900:(t,e,s)=>{s.d(e,{Cp:()=>P,F7:()=>x,Hc:()=>v,Ht:()=>l,JE:()=>w,W1:()=>m,WG:()=>n,_I:()=>Z,aX:()=>o,bL:()=>C,c0:()=>k,cT:()=>b,d5:()=>a,e_:()=>g,en:()=>d,fR:()=>i,in:()=>_,jr:()=>y,oK:()=>f,qS:()=>p,rK:()=>h,uN:()=>c,ur:()=>u});var r=s(73821);function o(t){return(0,r.Z)({url:"/myApply/laboratoryList",method:"get",params:t})}function a(t){return(0,r.Z)({url:"/myApply/laboratoryDetail?reviewId="+t,method:"get"})}function n(t){return(0,r.Z)({url:"/myApply/exportList",method:"get",params:t})}function i(t){return(0,r.Z)({url:"/myApply/download",method:"get",params:t})}function l(t){return(0,r.Z)({url:"/myLab/list",method:"get",params:t})}function d(t){return(0,r.Z)({url:"/myLab/info?applyId="+t,method:"get"})}function u(t){return(0,r.Z)({url:"/myLab/restart",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/myLab/dataInjection",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/myLab/fileList?applyId="+t,method:"get"})}function m(t){return(0,r.Z)({url:"/myLab/applyDown",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/api/userApiList",method:"get",params:t})}function g(t){return(0,r.Z)({url:"/api/userApiStatisticsList",method:"get",params:t})}function h(t){return(0,r.Z)({url:"/myMessage/page",method:"get",params:t})}function w(t){return(0,r.Z)({url:"/myMessage/detail?msgId="+t,method:"post"})}function y(t){return(0,r.Z)({url:"myMessage/markRead",method:"post",data:t})}function v(t){return(0,r.Z)({url:"/myResources/list",method:"get",params:t})}function b(t){return(0,r.Z)({url:"/myResources/uploadFile",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function Z(t){return(0,r.Z)({url:"/myResources/delete?fileId="+t,method:"delete"})}function _(t){return(0,r.Z)({url:"/rePwd/getPhoneByUser?username="+t,method:"get"})}function C(){return(0,r.Z)({url:"/rePwd/sendPhoneCode",method:"get"})}function x(t){return(0,r.Z)({url:"/rePwd/verifyPhoneCode?phoneCode="+t,method:"get"})}function k(t){return(0,r.Z)({url:"/rePwd/reset",method:"post",data:t})}function P(t){return(0,r.Z)({url:"/changePassword",method:"post",data:t})}}}]);