(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77303084"],{dcdc8:function(e,r,t){"use strict";t.r(r);var s=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"app-container"},[t("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"100px"}},[t("el-form-item",{attrs:{label:"旧密码",prop:"old_password"}},[t("el-input",{style:{width:"100%"},attrs:{placeholder:"请输入旧密码",clearable:"","show-password":""},model:{value:e.formData.old_password,callback:function(r){e.$set(e.formData,"old_password",r)},expression:"formData.old_password"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"新密码",prop:"new_password1"}},[t("el-input",{style:{width:"100%"},attrs:{placeholder:"请输入新密码",clearable:"","show-password":""},model:{value:e.formData.new_password1,callback:function(r){e.$set(e.formData,"new_password1",r)},expression:"formData.new_password1"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"新密码",prop:"new_password2"}},[t("el-input",{style:{width:"100%"},attrs:{placeholder:"请再次输入新密码",clearable:"","show-password":""},model:{value:e.formData.new_password2,callback:function(r){e.$set(e.formData,"new_password2",r)},expression:"formData.new_password2"}})],1),e._v(" "),t("el-form-item",{attrs:{size:"large"}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交")]),e._v(" "),t("el-button",{on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)},a=[],o=(t("96cf"),t("1da1")),n=t("c24f"),l={components:{},props:[],data:function(){return{formData:{old_password:void 0,new_password1:void 0,new_password2:void 0},rules:{old_password:[{required:!0,message:"请输入旧密码",trigger:"blur"}],new_password1:[{required:!0,message:"请输入新密码",trigger:"blur"}],new_password2:[{required:!0,message:"请再次输入新密码",trigger:"blur"}]}}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{submitForm:function(){var e=this;this.$refs["elForm"].validate((function(r){r&&Object(n["a"])(e.formData).then(function(){var r=Object(o["a"])(regeneratorRuntime.mark((function r(t){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$message({message:"密码修改成功,请重新登陆",type:"success"}),r.next=3,e.$store.dispatch("user/logout");case 3:e.$router.push("/login");case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())}))},resetForm:function(){this.$refs["elForm"].resetFields()}}},i=l,d=t("2877"),p=Object(d["a"])(i,s,a,!1,null,null,null);r["default"]=p.exports}}]);