chunk-d0938f4c.4885c139.js 5.1 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d0938f4c"],{"62f7":function(e,r,n){"use strict";n("6932")},6932:function(e,r,n){},"6a1e":function(e,r,n){"use strict";var t=n("1b69");r.a={verfiy:function(e,r){return Object(t.a)("Api/verify_code",e,"post",r)},resetpwd:function(e,r){return Object(t.a)("Api/passmobile",e,"post",r)},resetmobile:function(e,r){return Object(t.a)("Api/resetmobile",e,"post",r)},setpwd:function(e,r){return Object(t.a)("Api/passsave",e,"post",r)},list:function(e,r){return Object(t.a)("admin/menu",e,"post",r)},detail:function(e,r){return Object(t.a)("Admin/userinfo",e,"post",r)},version:function(e,r){return Object(t.a)("Admin/lastversion",e,"post",r)},prefect:function(e,r){return Object(t.a)("Api/prefect",e,"post",r)}}},"85db":function(e,r,n){"use strict";n("fe57")},a9ad:function(e,r,n){"use strict";n.r(r);var t=n("1da1"),o=(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(o.b)(r)||r.length<6||18<r.length?n(new Error("旧密码为6-18位数字字母组合!")):Object(o.i)(r)?n(new Error("旧密码不能为纯数字!")):Object(o.o)(r)?n(new Error("旧密码不能为纯字母!")):n()}}],newPassword:[{required:!0,trigger:"blur",validator:function(r,n,t){""===n?t(new Error("新密码不能为空!")):e.loginForm.oldPassword===n?t(new Error("新密码不能与旧密码一致!")):!Object(o.b)(n)||n.length<6||18<n.length?t(new Error("新密码为6-18位数字字母组合!")):Object(o.i)(n)?t(new Error("新密码不能为纯数字!")):Object(o.o)(n)?t(new Error("新密码不能为纯字母!")):t()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(r,n,t){""===n?t(new Error("确认密码不能为空!")):e.loginForm.newPassword!==n?t(new Error("确认密码与新密码不一致!")):t()}}]},loading:!1,otherQuery:{}}},methods:{handleLogin:function(){var e=this;return Object(t.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(t.a)(regeneratorRuntime.mark((function r(n){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=4;break}e.loading||(e.loading=!0,o={oldpwd:e.loginForm.oldPassword,newpwd:e.loginForm.newPassword},a.a.setpwd(o).then(function(){var r=Object(t.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("85db"),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",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",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",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,"47333433",null);r.default=n.exports},fe57:function(e,r,n){}}]);