(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b6974"],{"1e8b":function(e,r,t){"use strict";t.r(r);var l=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[t("el-input",{attrs:{maxlength:"30"},model:{value:e.form.nickName,callback:function(r){e.$set(e.form,"nickName",r)},expression:"form.nickName"}})],1),t("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[t("el-input",{attrs:{maxlength:"11"},model:{value:e.form.phonenumber,callback:function(r){e.$set(e.form,"phonenumber",r)},expression:"form.phonenumber"}})],1),t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{maxlength:"50"},model:{value:e.form.email,callback:function(r){e.$set(e.form,"email",r)},expression:"form.email"}})],1),t("el-form-item",{attrs:{label:"性别"}},[t("el-radio-group",{model:{value:e.form.sex,callback:function(r){e.$set(e.form,"sex",r)},expression:"form.sex"}},[t("el-radio",{attrs:{label:"0"}},[e._v("男")]),t("el-radio",{attrs:{label:"1"}},[e._v("女")])],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),t("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},a=[],m=t("c0c7"),n={props:{user:{type:Object}},data:function(){return{form:{},rules:{nickName:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],email:[{required:!0,message:"邮箱地址不能为空",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],phonenumber:[{required:!0,message:"手机号码不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},watch:{user:{handler:function(e){e&&(this.form={nickName:e.nickName,phonenumber:e.phonenumber,email:e.email,sex:e.sex})},immediate:!0}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(r){r&&Object(m["l"])(e.form).then((function(r){e.$modal.msgSuccess("修改成功"),e.user.phonenumber=e.form.phonenumber,e.user.email=e.form.email}))}))},close:function(){this.$tab.closePage()}}},o=n,i=t("2877"),s=Object(i["a"])(o,l,a,!1,null,null,null);r["default"]=s.exports}}]);