chunk-09e7ebe4.098fd021.js 4.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09e7ebe4"],{"32f4":function(o,t,e){o.exports={color_0:"#000",color_1:"#111",color_2:"#222",color_3:"#333",color_4:"#444",color_5:"#555",color_6:"#666",color_7:"#777",color_8:"#888",color_9:"#999",color_a:"#aaa",color_b:"#bbb",color_c:"#ccc",color_d:"#ddd",color_e:"#eee",color_f2:"#f2f2f2",color_f5:"#f5f5f5",color_fa:"#fafafa",color_fc:"#fcfcfc",color_f:"#fff",color_on:"#F66420",pad:"20px"}},"52b1":function(o,t,e){"use strict";e("32f4")},cf68:function(o,t,e){"use strict";e("d1c0")},d1c0:function(o,t,e){},e3e5:function(o,t,e){"use strict";e.r(t);var s=function(){var o=this,t=o.$createElement,e=o._self._c||t;return e("div",{staticClass:"modify"},[e("div",{staticClass:"container"},[e("h3",{staticClass:"title"},[o._v("修改密码")]),o._v(" "),e("el-form",{ref:"modifyForm",staticClass:"modify-form",attrs:{model:o.modifyForm,rules:o.modifyRules,"label-position":"left"}},[e("el-form-item",{attrs:{prop:"opwd"}},[e("el-input",{ref:"opwd",attrs:{type:o.modifyForm.opwdType,size:"small",name:"opwd",minlength:"6",maxlength:"8",placeholder:"请输入原密码"},model:{value:o.modifyForm.opwd,callback:function(t){o.$set(o.modifyForm,"opwd",t)},expression:"modifyForm.opwd"}},[e("span",{staticClass:"solt",attrs:{slot:"prefix"},slot:"prefix"},[o._v("原密码")]),o._v(" "),e("svg-icon",{attrs:{slot:"suffix","icon-class":"password"===o.modifyForm.opwdType?"eye":"eye-open"},on:{click:o.showOpwd},slot:"suffix"})],1)],1),o._v(" "),e("el-form-item",{attrs:{prop:"pwd"}},[e("el-input",{ref:"pwd",attrs:{type:o.modifyForm.pwdType,size:"small",name:"pwd",placeholder:"请输入密码"},model:{value:o.modifyForm.pwd,callback:function(t){o.$set(o.modifyForm,"pwd",t)},expression:"modifyForm.pwd"}},[e("span",{staticClass:"solt",attrs:{slot:"prefix"},slot:"prefix"},[o._v("密码")]),o._v(" "),e("svg-icon",{attrs:{slot:"suffix","icon-class":"password"===o.modifyForm.pwdType?"eye":"eye-open"},on:{click:o.showPwd},slot:"suffix"})],1)],1),o._v(" "),e("el-form-item",{attrs:{prop:"spwd"}},[e("el-input",{ref:"spwd",attrs:{type:o.modifyForm.spwdType,size:"small",name:"spwd",placeholder:"请确认密码"},model:{value:o.modifyForm.spwd,callback:function(t){o.$set(o.modifyForm,"spwd",t)},expression:"modifyForm.spwd"}},[e("span",{staticClass:"solt",attrs:{slot:"prefix"},slot:"prefix"},[o._v("确认密码")]),o._v(" "),e("svg-icon",{attrs:{slot:"suffix","icon-class":"password"===o.modifyForm.spwdType?"eye":"eye-open"},on:{click:o.showSpwd},slot:"suffix"})],1)],1),o._v(" "),e("el-button",{staticClass:"next-btn",attrs:{type:"danger",size:"small"},nativeOn:{click:function(t){return t.preventDefault(),o.Next(t)}}},[o._v("确定")])],1),o._v(" "),e("li",{staticClass:"toForg"},[e("span",{on:{click:o.gotoMenu}},[o._v("忘记密码")])])],1),o._v(" "),e("Forget",{attrs:{forgetShow:o.forgetShow},on:{putForget:o.getForget}})],1)},r=[],i=(e("a481"),e("a18c")),a=e("61f7"),d=e("b775"),c=e("4b27"),n={name:"Modify",components:{Forget:c["a"]},data:function(){var o=this,t=function(o,t,e){t?Object(a["f"])(t)?e():e(new Error("6~18位,只能包含字母、数字和下划线")):e(new Error("请输入密码"))},e=function(t,e,s){e?e!==o.modifyForm.pwd?s(new Error("两次密码不一致")):s():s(new Error("请再次输入密码"))};return{forgetShow:!1,modifyForm:{opwd:"",pwd:"",spwd:"",opwdType:"password",pwdType:"password",spwdType:"password"},modifyRules:{opwd:[{required:!0,message:"请输入原密码",trigger:"blur"}],pwd:[{required:!0,trigger:"blur",validator:t}],spwd:[{required:!0,trigger:"blur",validator:e}]}}},computed:{},methods:{showOpwd:function(){var o=this;this.modifyForm.opwdType="password"===this.modifyForm.opwdType?"":"password",this.$nextTick((function(){o.$refs.opwd.focus()}))},showPwd:function(){var o=this;this.modifyForm.pwdType="password"===this.modifyForm.pwdType?"":"password",this.$nextTick((function(){o.$refs.pwd.focus()}))},showSpwd:function(){var o=this;this.modifyForm.spwdType="password"===this.modifyForm.spwdType?"":"password",this.$nextTick((function(){o.$refs.spwd.focus()}))},gotoMenu:function(){this.forgetShow=!0},getForget:function(o){this.forgetShow=!1},Next:function(){var o=this;this.$refs.modifyForm.validate((function(t){if(!t)return!1;var e={transCode:"B00003",oldPassword:Object(d["a"])(o.modifyForm.opwd),newPassword:Object(d["a"])(o.modifyForm.pwd),authCode:"",pwdType:"",telNo:""};Object(d["c"])(e).then((function(t){o.$alert("密码修改成功,请重新登录!","提示",{confirmButtonText:"确定",center:!0,callback:function(t){o.$store.dispatch("user/changeState",{key:"token",value:""}),o.$store.dispatch("user/changeState",{key:"name",value:""}),o.$store.dispatch("user/changeState",{key:"userId",value:""}),o.$store.dispatch("user/changeState",{key:"loginStatus",value:!1}),Object(i["b"])(),setTimeout((function(){o.$router.replace("/indexLayout/home")}),1e3)}})})).catch((function(o){}))}))}}},f=n,p=(e("cf68"),e("52b1"),e("2877")),l=Object(p["a"])(f,s,r,!1,null,"9d8b03d2",null);t["default"]=l.exports}}]);