(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b6974"],{"1e8b":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("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[t("el-input",{attrs:{maxlength:"30"},model:{value:e.user.nickName,callback:function(r){e.$set(e.user,"nickName",r)},expression:"user.nickName"}})],1),t("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[t("el-input",{attrs:{maxlength:"11"},model:{value:e.user.phonenumber,callback:function(r){e.$set(e.user,"phonenumber",r)},expression:"user.phonenumber"}})],1),t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{maxlength:"50"},model:{value:e.user.email,callback:function(r){e.$set(e.user,"email",r)},expression:"user.email"}})],1),t("el-form-item",{attrs:{label:"性别"}},[t("el-radio-group",{model:{value:e.user.sex,callback:function(r){e.$set(e.user,"sex",r)},expression:"user.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)},l=[],a=t("c0c77"),i={props:{user:{type:Object}},data:function(){return{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"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(r){r&&Object(a["m"])(e.user).then((function(r){e.$modal.msgSuccess("修改成功")}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},n=i,u=t("2877"),o=Object(u["a"])(n,s,l,!1,null,null,null);r["default"]=o.exports}}]);