(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0aefa08a"],{"62f7":function(e,r,n){"use strict";n("6932")},6932:function(e,r,n){},a9ad:function(e,r,n){"use strict";n.r(r);var o=n("1da1"),t=(n("96cf"),n("61f7")),a=n("6a1e"),s={name:"Login",mixins:[n("9f53").a],data:function(){var e=this;return{loginForm:{oldPassword:"",newPassword:"",confirmPassword:""},loginRules:{oldPassword:[{required:!0,trigger:"blur",validator:function(e,r,n){""===r?n(new Error("旧密码不能为空！")):!Object(t.c)(r)||r.length<6||18<r.length?n(new Error("旧密码为6-18位数字字母组合！")):Object(t.l)(r)?n(new Error("旧密码不能为纯数字！")):Object(t.s)(r)?n(new Error("旧密码不能为纯字母！")):n()}}],newPassword:[{required:!0,trigger:"blur",validator:function(r,n,o){""===n?o(new Error("新密码不能为空！")):e.loginForm.oldPassword===n?o(new Error("新密码不能与旧密码一致！")):!Object(t.c)(n)||n.length<6||18<n.length?o(new Error("新密码为6-18位数字字母组合！")):Object(t.l)(n)?o(new Error("新密码不能为纯数字！")):Object(t.s)(n)?o(new Error("新密码不能为纯字母！")):o()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(r,n,o){""===n?o(new Error("确认密码不能为空！")):e.loginForm.newPassword!==n?o(new Error("确认密码与新密码不一致！")):o()}}]},loading:!1,otherQuery:{}}},methods:{handleLogin:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$refs.loginForm.validate(function(){var r=Object(o.a)(regeneratorRuntime.mark((function r(n){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=4;break}e.loading||(e.loading=!0,t={oldpwd:e.loginForm.oldPassword,newpwd:e.loginForm.newPassword},a.a.setpwd(t).then(function(){var r=Object(o.a)(regeneratorRuntime.mark((function r(n){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n&&0===n.code)return e.loading=!1,e.$message.success(n.message),r.next=5,e.logout();r.next=7;break;case 5:r.next=14;break;case 7:if(n&&100<=n.code&&n.code<=104)return r.next=10,e.logout();r.next=12;break;case 10:r.next=14;break;case 12:e.$message.warning(n.message),e.loading=!1;case 14:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())),r.next=6;break;case 4:return r.abrupt("return",!1);case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());case 1:case"end":return r.stop()}}),r)})))()}}};n("62f7"),n("d65f"),n=n("2877"),n=Object(n.a)(s,(function(){var e=this,r=e.$createElement;r=e._self._c||r;return r("div",{staticClass:"change-password pagePadding"},[r("div",{staticClass:"change"},[r("div",{staticClass:"title"},[e._v(" 设置新登录密码 "),r("el-popover",{attrs:{placement:"top",title:"初始密码：",width:"200",trigger:"click",content:"dingding123"}},[r("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),r("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[r("el-form-item",{attrs:{prop:"oldPassword",label:"旧密码："}},[r("el-input",{ref:"oldPassword",attrs:{placeholder:"旧密码",name:"oldPassword",type:"password",tabindex:"1",maxlength:"16",autocomplete:"on"},model:{value:e.loginForm.oldPassword,callback:function(r){e.$set(e.loginForm,"oldPassword",r)},expression:"loginForm.oldPassword"}})],1),r("el-form-item",{attrs:{prop:"newPassword",label:"新密码："}},[r("el-input",{ref:"newPassword",attrs:{placeholder:"新密码",name:"newPassword",type:"password",maxlength:"16",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.newPassword,callback:function(r){e.$set(e.loginForm,"newPassword",r)},expression:"loginForm.newPassword"}})],1),r("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码："}},[r("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",maxlength:"16",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.confirmPassword,callback:function(r){e.$set(e.loginForm,"confirmPassword",r)},expression:"loginForm.confirmPassword"}})],1),r("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(r){return r.preventDefault(),e.handleLogin(r)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"3e496fef",null);r.default=n.exports},b1a7:function(e,r,n){},d65f:function(e,r,n){"use strict";n("b1a7")}}]);