You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
3.2 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9e842c46"],{"02ae":function(e,r,s){var t=s("24fb");r=t(!1),r.push([e.i,".yuebon-setting-form .el-input[data-v-251c5d43]{width:40%}.yuebon-setting-form .el-select .el-input[data-v-251c5d43]{width:100%}",""]),e.exports=r},"3e70":function(e,r,s){"use strict";s.r(r);var t=function(){var e=this,r=e.$createElement,s=e._self._c||r;return s("div",{staticClass:"app-container"},[s("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(r){e.activeName=r},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"修改密码",name:"first"}},[s("el-form",{ref:"editFrom",staticClass:"yuebon-setting-form",attrs:{model:e.editFrom,rules:e.rules}},[s("el-form-item",{attrs:{label:"原密码","label-width":e.formLabelWidth,prop:"OldPassword"}},[s("el-input",{attrs:{type:"password",placeholder:"请输入原密码",autocomplete:"off",clearable:""},model:{value:e.editFrom.OldPassword,callback:function(r){e.$set(e.editFrom,"OldPassword",r)},expression:"editFrom.OldPassword"}})],1),s("el-form-item",{attrs:{label:"新密码","label-width":e.formLabelWidth,prop:"NewPassword"}},[s("el-input",{attrs:{type:"password",placeholder:"请输入新密码",autocomplete:"off",clearable:""},model:{value:e.editFrom.NewPassword,callback:function(r){e.$set(e.editFrom,"NewPassword",r)},expression:"editFrom.NewPassword"}})],1),s("el-form-item",{attrs:{label:"再输入一次","label-width":e.formLabelWidth,prop:"NewPassword2"}},[s("el-input",{attrs:{type:"password",placeholder:"请再输入一次新密码",autocomplete:"off",clearable:""},model:{value:e.editFrom.NewPassword2,callback:function(r){e.$set(e.editFrom,"NewPassword2",r)},expression:"editFrom.NewPassword2"}})],1),s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:function(r){return e.saveEditForm()}}},[e._v("保 存")])],1)],1)],1)],1)],1)},a=[],o=s("da02"),l={name:"Usercentermodify",data:function(){return{activeName:"first",editFrom:{OldPassword:"",NewPassword:"",NewPassword2:""},rules:{OldPassword:[{required:!0,message:"请输入原密码",trigger:"blur"},{min:6,max:50,message:"长度在 6 到 32 个字符",trigger:"blur"}],NewPassword:[{required:!0,message:"请输入新密码",trigger:"blur"},{min:6,max:50,message:"长度在 6 到 32 个字符",trigger:"blur"}],NewPassword2:[{required:!0,message:"请再输入一次新密码",trigger:"blur"},{min:6,max:50,message:"长度在 6 到 32 个字符",trigger:"blur"}]},formLabelWidth:"100px"}},methods:{saveEditForm:function(){var e=this;this.$refs["editFrom"].validate((function(r){if(!r)return!1;var s={oldpassword:e.editFrom.OldPassword,password:e.editFrom.NewPassword,password2:e.editFrom.NewPassword2};Object(o["e"])(s).then((function(r){r.Success?(e.$message({message:"恭喜你,操作成功",type:"success"}),e.$refs["editFrom"].resetFields()):e.$message({message:r.ErrMsg,type:"error"})}))}))}}},d=l,i=(s("a95c"),s("2877")),m=Object(i["a"])(d,t,a,!1,null,"251c5d43",null);r["default"]=m.exports},"481d":function(e,r,s){var t=s("02ae");t.__esModule&&(t=t.default),"string"===typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);var a=s("499e").default;a("2b4a3040",t,!0,{sourceMap:!1,shadowMode:!1})},a95c:function(e,r,s){"use strict";s("481d")}}]);