chunk-70fb1560.a71317e2.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70fb1560","chunk-353e3c84","chunk-7514a610","chunk-8e628654","chunk-b8e74848","chunk-05ad0f38"],{"0068":function(t,e,s){"use strict";s("0541")},"0541":function(t,e,s){},"256a":function(t,e,s){},"2a42":function(t,e,s){"use strict";s("3c5a")},"2c14":function(t,e,s){},"35bd":function(t,e,s){},"3c5a":function(t,e,s){},"8e46":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("a-form",{staticStyle:{margin:"40px auto 0"}},[e("result",{attrs:{title:"更改密码成功","is-success":!0}},[e("div",{staticClass:"toLogin"},[e("h3",[t._v("将在"),e("span",[t._v(t._s(t.time))]),t._v("秒后返回登录页面.")])])])],1)],1)},r=[],n=s("9a3d"),i={name:"Step4",props:["userList"],components:{Result:n["default"]},data:function(){return{loading:!1,time:0}},methods:{countDown:function(){var t=this;t.time--}},mounted:function(){var t=this;t.time=5,setInterval(t.countDown,1e3)},watch:{time:function(t,e){if(0==t){var s={username:this.userList.username};this.$router.push({name:"login",params:s})}}}},o=i,c=(s("2a42"),s("2877")),u=Object(c["a"])(o,a,r,!1,null,"02373d6c",null);e["default"]=u.exports},"8e99":function(t,e,s){"use strict";s("256a")},"9a3d":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"result"},[e("div",[e("a-icon",{class:[t.isSuccess?"success":"error","icon"],attrs:{type:t.isSuccess?"check-circle":"close-circle"}})],1),t.title?e("div",{staticClass:"title"},[t._v(t._s(t.title))]):t._e(),t.description?e("div",{staticClass:"description"},[t._v(t._s(t.description))]):t._e(),t.content?e("div",{staticClass:"content"},[t._t("default")],2):t._e(),e("div",{staticClass:"action"},[t._t("action")],2)])},r=[],n={name:"Result",props:{isSuccess:{type:Boolean,default:!1},title:{type:String,default:""},description:{type:String,default:""},content:{type:Boolean,default:!0}}},i=n,o=(s("0068"),s("2877")),c=Object(o["a"])(i,a,r,!1,null,"5cd17224",null);e["default"]=c.exports},ba6d:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("a-form",{staticStyle:{"max-width":"500px",margin:"40px auto 0"},attrs:{form:t.form},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.nextStep.apply(null,arguments)}}},[e("a-form-item",{attrs:{label:"账号名",labelCol:{span:5},wrapperCol:{span:19}}},[e("a-input",{style:{width:"310px"},attrs:{type:"text",autocomplete:"false",value:t.accountName,disabled:""}})],1),e("a-form-item",{attrs:{label:"手机",labelCol:{span:5},wrapperCol:{span:19}}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",{initialValue:t.defaultPhone,rules:t.validatorRules.phone.rule}],expression:"['phone',{initialValue: defaultPhone, rules: validatorRules.phone.rule}]"}],style:{width:"310px"},attrs:{type:"text",autocomplete:"false",placeholder:"请输入手机号"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),t.show?e("a-form-item",{attrs:{label:"验证码",labelCol:{span:5},wrapperCol:{span:19}}},[e("a-row",{staticStyle:{"margin-left":"2px"},attrs:{gutter:16}},[e("a-col",{staticClass:"gutter-row",attrs:{span:12}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["captcha",t.validatorRules.captcha],expression:"['captcha',validatorRules.captcha]"}],attrs:{type:"text",placeholder:"手机短信验证码"}})],1),e("a-col",{staticClass:"gutter-row",attrs:{span:8}},[e("a-button",{attrs:{tabindex:"-1",size:"default",disabled:t.state.smsSendBtn},domProps:{textContent:t._s(t.state.smsSendBtn?t.state.time+" s":"获取验证码")},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.getCaptcha.apply(null,arguments)}}})],1)],1)],1):t._e(),e("a-form-item",{attrs:{wrapperCol:{span:19,offset:5}}},[e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.prevStep}},[t._v("上一步")]),e("a-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("下一步")])],1)],1)],1)},r=[],n=s("0fea"),i={name:"Step2",props:["userList"],data:function(){return{form:this.$form.createForm(this),loading:!1,accountName:this.userList.username,dropList:"0",captcha:"",show:!0,state:{time:60,smsSendBtn:!1},formLogin:{captcha:"",mobile:""},validatorRules:{captcha:{rule:[{required:!0,message:"请输入短信验证码!"},{validator:this.validateCaptcha}]},phone:{rule:[{required:!0,message:"请输入手机号码!"}]}}}},computed:{defaultPhone:function(){return this.userList.isPhone?this.userList.phone:null}},methods:{nextStep:function(){var t=this,e=this;e.loading=!0,this.form.validateFields((function(s,a){if(!s&&"0"==e.dropList)if(void 0==a.captcha)t.cmsFailed("请输入短信验证码!");else{var r={};r.phone=t.userList.phone,r.smscode=a.captcha,Object(n["j"])("/sys/user/phoneVerification",r).then((function(s){if(s.success){var a={username:t.userList.username,phone:t.userList.phone,smscode:s.result};setTimeout((function(){e.$emit("nextStep",a)}),0)}else t.cmsFailed(s.message)}))}}))},prevStep:function(){this.$emit("prevStep",this.userList)},getCaptcha:function(t){var e=this;t.preventDefault();var s=this;this.state.smsSendBtn=!0;var a=window.setInterval((function(){s.state.time--<=0&&(s.state.time=60,s.state.smsSendBtn=!1,window.clearInterval(a))}),1e3),r=this.$message.loading("验证码发送中..",0),i={mobile:this.userList.phone,smsmode:"2"};Object(n["j"])("/sys/sms",i).then((function(t){t.success||(setTimeout(r,1),e.cmsFailed(t.message)),setTimeout(r,500)}))},cmsFailed:function(t){this.$notification["error"]({message:"验证错误",description:t,duration:4})},handleChangeSelect:function(t){var e=this;0==t?(e.dropList="0",e.show=!0):(e.dropList="1",e.show=!1)}}},o=i,c=(s("d086"),s("2877")),u=Object(c["a"])(o,a,r,!1,null,"0d38e0f0",null);e["default"]=u.exports},d086:function(t,e,s){"use strict";s("35bd")},d5ac:function(t,e){t.exports="data:image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MqAb2wCWXan/BGebzf2Tb5f3f7rxDcp8r7j/qYD8wx8p56c8YPfA+sTFkdaeBgVV3zSl3J5fdjHt/lY4P4vnHj/4W+n/CTz9/+oNqdcXbyJD4F0+Obatva/EaVdVGPvSSarK9sep6zy2bDk4GB2wPUvH3gO38eWdmk11fWFzptz9ss7yzdUntZfLeIspYMvMcsiEMpBDn615Po37MVvZeJ5NL1T7ZfSXgl1e18S2c1xb3kNzFPC6/aVLvBJLudJEO0I3kN+6AQUFHoV/8T9R03V5Fbwb4lk0qO4Nqb6FYJGJDFfNECyGUw5GNwXceDs2fPXL+M7mzs/FPxVubiNpNJh8KWx1KNV/1kqpfM4Hq3kGIH22Y71k2vgnxpo/gfXGvvFXjzUtc0W5Npai2+yxQ6vuWNoZVH2ZiifvVWQjcEaOXGQtV/EP7NEs1pY2Oo+Z4y8SeIImh1XXdXM/2GCONOhtbd40bO7aillJG7dIcAEA6z9nC1urG/wDHkF9/x+Q63Zx3GTn94NC0oNz9c16RbRsskjFmIY4AI9M89M98d+APfPN/Cr4aQ/DDw41mt9fate3TrPf6hePvnvphFHD5jH/rnFGoHOAgySck9UpyKAKeqi6aS1FvNHFH5pa4DQtI0kYRvlQgjY27YdxDcBgBkhluVi6rfXb+LbOzjtz9l8hpZJZI2MbHIxtdSQHQquUdV3CQMj/u5FO1QAUUUUAFFFFABRRRQBW1H92FkUsGwV68YIz06dhzUUnJK7nxsR+GI53Z/wAjpjjpxRRQA91xCZNzbk34+Y46nqOh/GrdFFABUMsjJNGo6M2D+RP9KKKAJqKKKAP/2Q=="},f14a:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main"},[e("a-form",{staticStyle:{"max-width":"500px",margin:"40px auto 0"},attrs:{form:t.form},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.nextStep.apply(null,arguments)}}},[e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["username",t.validatorRules.username],expression:"['username',validatorRules.username]"}],attrs:{size:"large",type:"text",autocomplete:"false",placeholder:"请输入用户账号或手机号"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e("a-row",{attrs:{gutter:0}},[e("a-col",{attrs:{span:14}},[e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["inputCode",t.validatorRules.inputCode],expression:"['inputCode',validatorRules.inputCode]"}],attrs:{size:"large",type:"text",placeholder:"请输入验证码"},on:{change:t.inputCodeChange}},[t.inputCodeContent==t.verifiedCode?e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"smile"},slot:"prefix"}):e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"frown"},slot:"prefix"})],1)],1)],1),e("a-col",{staticStyle:{"text-align":"right"},attrs:{span:10}},[t.requestCodeSuccess?e("img",{staticStyle:{"margin-top":"2px"},attrs:{src:t.randCodeImage},on:{click:t.handleChangeCheckCode}}):e("img",{staticStyle:{"margin-top":"2px"},attrs:{src:s("d5ac")},on:{click:t.handleChangeCheckCode}})])],1),e("a-form-item",{attrs:{wrapperCol:{span:19,offset:5}}},[e("router-link",{staticStyle:{float:"left","line-height":"40px"},attrs:{to:{name:"login"}}},[t._v("使用已有账户登录")]),e("a-button",{attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("下一步")])],1)],1)],1)},r=[],n=s("0fea"),i=s("4ec3"),o={name:"Step1",data:function(){return{form:this.$form.createForm(this),inputCodeContent:"",inputCodeNull:!0,verifiedCode:"",validatorRules:{username:{rules:[{required:!1},{validator:this.validateInputUsername}]},inputCode:{rules:[{required:!0,message:"请输入验证码!"}]}},randCodeImage:"",requestCodeSuccess:!0,currdatetime:""}},created:function(){this.handleChangeCheckCode()},methods:{handleChangeCheckCode:function(){var t=this;this.currdatetime=(new Date).getTime(),Object(n["c"])("/sys/randomImage/".concat(this.currdatetime)).then((function(e){e.success?(t.randCodeImage=e.result,t.requestCodeSuccess=!0):(t.$message.error(e.message),t.requestCodeSuccess=!1)})).catch((function(){t.requestCodeSuccess=!1}))},nextStep:function(){var t=this;this.form.validateFields((function(e,s){if(!e){var a=!1,r={},i=/^[1-9]\d*$|^0$/,o=s.username;1==i.test(o)?(r.phone=o,a=!0):r.username=o,t.validateInputCode().then((function(){Object(n["c"])("/sys/user/querySysUser",r).then((function(e){if(e.success){var s={username:e.result.username,phone:e.result.phone,isPhone:a};setTimeout((function(){t.$emit("nextStep",s)}))}}))}))}}))},validateInputCode:function(){var t=this;return new Promise((function(e,s){Object(n["j"])("/sys/checkCaptcha",{captcha:t.inputCodeContent,checkKey:t.currdatetime}).then((function(a){a.success?e():(t.$message.error(a.message),s())}))}))},inputCodeChange:function(t){this.inputCodeContent=t.target.value,t.target.value&&0!=t.target.value?(this.inputCodeContent=this.inputCodeContent.toLowerCase(),this.inputCodeNull=!1):this.inputCodeNull=!0},generateCode:function(t){this.verifiedCode=t.toLowerCase()},validateInputUsername:function(t,e,s){var a=/^[0-9]+.?[0-9]*/;if(e||s("请输入用户名和手机号!"),a.test(e)){var r={phone:e};Object(i["h"])(r).then((function(t){t.success?s("用户名不存在!"):s()}))}else{r={username:e};Object(i["h"])(r).then((function(t){t.success?s("用户名不存在!"):s()}))}}}},c=o,u=s("2877"),l=Object(u["a"])(c,a,r,!1,null,"deafc256",null);e["default"]=l.exports},f4c1:function(t,e,s){"use strict";s("2c14")},f6d9:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("a-form",{staticStyle:{"max-width":"500px",margin:"40px auto 0"},attrs:{form:t.form}},[e("a-form-item",{attrs:{label:"账号名",labelCol:{span:5},wrapperCol:{span:19}}},[e("a-input",{attrs:{type:"text",autocomplete:"false",value:t.accountName,disabled:""}})],1),e("a-form-item",{staticClass:"stepFormText",attrs:{label:"新密码",labelCol:{span:5},wrapperCol:{span:19}}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",t.validatorRules.password],expression:"['password',validatorRules.password]"}],attrs:{type:"password",autocomplete:"false"}})],1),e("a-form-item",{staticClass:"stepFormText",attrs:{label:"确认密码",labelCol:{span:5},wrapperCol:{span:19}}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["confirmPassword",t.validatorRules.confirmPassword],expression:"['confirmPassword',validatorRules.confirmPassword]"}],attrs:{type:"password",autocomplete:"false"}})],1),e("a-form-item",{attrs:{wrapperCol:{span:19,offset:5}}},[e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.prevStep}},[t._v("上一步")]),e("a-button",{staticStyle:{"margin-left":"20px"},attrs:{loading:t.loading,type:"primary"},on:{click:t.nextStep}},[t._v("提交")])],1)],1)],1)},r=[],n=s("0fea"),i={name:"Step3",props:["userList"],data:function(){return{loading:!1,form:this.$form.createForm(this),accountName:this.userList.username,validatorRules:{username:{rules:[{required:!0,message:"用户名不能为空!"}]},password:{rules:[{required:!0,pattern:/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,}$/,message:"密码由8位数字、大小写字母和特殊符号组成!!"},{validator:this.handlePasswordLevel}]},confirmPassword:{rules:[{required:!0,message:"密码不能为空!"},{validator:this.handlePasswordCheck}]}}}},methods:{nextStep:function(){var t=this,e=this;e.loading=!0,this.form.validateFields((function(s,a){if(s)e.loading=!1;else{var r={};r.username=t.userList.username,r.password=a.password,r.smscode=t.userList.smscode,r.phone=t.userList.phone,Object(n["c"])("/sys/user/passwordChange",r).then((function(s){if(s.success){var a={username:t.userList.username};setTimeout((function(){e.$emit("nextStep",a)}),1500)}else t.passwordFailed(s.message),e.loading=!1}))}}))},prevStep:function(){this.$emit("prevStep",this.userList)},handlePasswordCheck:function(t,e,s){var a=this.form.getFieldValue("password");e&&a&&e.trim()!==a.trim()&&s(new Error("两次密码不一致")),s()},passwordFailed:function(t){this.$notification["error"]({message:"更改密码失败",description:t,duration:4})}}},o=i,c=(s("f4c1"),s("2877")),u=Object(c["a"])(o,a,r,!1,null,"1bbf13ad",null);e["default"]=u.exports},ffc3:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("a-card",{staticStyle:{width:"130%","text-align":"center","margin-left":"-10%"},attrs:{bordered:!1}},[e("a-steps",{staticClass:"steps",attrs:{current:t.currentTab}},[e("a-step",{attrs:{title:"用户账户"}}),e("a-step",{attrs:{title:"手机验证"}}),e("a-step",{attrs:{title:"密码"}}),e("a-step",{attrs:{title:"完成"}})],1),e("div",{staticClass:"content"},[0===t.currentTab?e("step1",{on:{nextStep:t.nextStep}}):t._e(),1===t.currentTab?e("step2",{attrs:{userList:t.userList},on:{nextStep:t.nextStep,prevStep:t.prevStep}}):t._e(),2===t.currentTab?e("step3",{attrs:{userList:t.userList},on:{nextStep:t.nextStep,prevStep:t.prevStep}}):t._e(),3===t.currentTab?e("step4",{attrs:{userList:t.userList},on:{prevStep:t.prevStep,finish:t.finish}}):t._e()],1)],1)},r=[],n=s("f14a"),i=s("ba6d"),o=s("f6d9"),c=s("8e46"),u={name:"Alteration",components:{Step1:n["default"],Step2:i["default"],Step3:o["default"],Step4:c["default"]},data:function(){return{description:"将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。",currentTab:0,userList:{},form:null}},methods:{nextStep:function(t){this.userList=t,this.currentTab<4&&(this.currentTab+=1)},prevStep:function(t){this.userList=t,this.currentTab>0&&(this.currentTab-=1)},finish:function(){this.currentTab=0}}},l=u,p=(s("8e99"),s("2877")),d=Object(p["a"])(l,a,r,!1,null,"63c12498",null);e["default"]=d.exports}}]);