webpackJsonp([7],{VcDh:function(s,e){},xW0G:function(s,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t("vMJZ"),a={data:function(){var s=this;return{form:{pass:"",checkPass:"",name:""},rules:{pass:[{validator:function(e,t,r){""===t?r(new Error("请输入密码")):(""!==s.form.checkPass&&s.$refs.form.validateField("checkPass"),r())},required:!0,trigger:"blur"}],checkPass:[{validator:function(e,t,r){""===t?r(new Error("请再次输入密码")):t!==s.form.pass?r(new Error("两次输入密码不一致!")):r()},required:!0,trigger:"blur"}]},loading:!1}},methods:{submitForm:function(){var s=this,e=s.form;s.$refs.form.validate(function(t){t&&(s.loading=!0,r.a.editPassword(e,!0).then(function(e){s.loading=!1,s.form.pass="",s.form.checkPass="",s.$message({type:"success",message:e.msg})}).catch(function(e){s.loading=!1}))})}}},o={render:function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"user"},[t("div",{staticClass:"product-content"},[t("div",{staticClass:"common-form"},[s._v("修改密码")]),s._v(" "),t("div",{staticClass:"table-wrap"},[t("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{size:"small",model:s.form,rules:s.rules,"label-width":"160px"}},[t("el-form-item",{attrs:{label:"密码",prop:"pass"}},[t("el-input",{staticClass:"max-w460",attrs:{type:"password",autocomplete:"off"},model:{value:s.form.pass,callback:function(e){s.$set(s.form,"pass",e)},expression:"form.pass"}})],1),s._v(" "),t("el-form-item",{attrs:{label:"确认密码",prop:"checkPass"}},[t("el-input",{staticClass:"max-w460",attrs:{type:"password",autocomplete:"off"},model:{value:s.form.checkPass,callback:function(e){s.$set(s.form,"checkPass",e)},expression:"form.checkPass"}})],1),s._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary",loading:s.loading},on:{click:function(e){return s.submitForm("form")}}},[s._v("提交")])],1)],1)],1)])])},staticRenderFns:[]};var c=t("VU/8")(a,o,!1,function(s){t("VcDh")},null,null);e.default=c.exports}});
//# sourceMappingURL=7.7f08791b24127ce1e9c1.js.map