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

4 months ago
"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