(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f40a011"],{dc59:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[r("el-input",{attrs:{maxlength:"30"},model:{value:e.user.nickName,callback:function(t){e.$set(e.user,"nickName",t)},expression:"user.nickName"}})],1),r("el-form-item",{attrs:{label:"手机号码",prop:"phoneNum"}},[r("el-input",{attrs:{maxlength:"11"},model:{value:e.user.phoneNum,callback:function(t){e.$set(e.user,"phoneNum",t)},expression:"user.phoneNum"}})],1),r("el-form-item",{attrs:{label:"所属部门",prop:"user.dept.deptName"}},[r("el-input",{attrs:{maxlength:"50"},model:{value:e.user.dept.deptName,callback:function(t){e.$set(e.user.dept,"deptName",t)},expression:"user.dept.deptName"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},n=[],u=(r("14d9"),r("f474")),a=r("4360"),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(t){t&&(e.user.password="",Object(u["a"])(e.user).then((function(t){200==t.code?(e.$message({message:"修改成功",type:"success"}),setTimeout((function(){a["a"].dispatch("user/resetToken").then((function(){location.reload()}))}),1e3)):e.$message.error(t.msg)})))}))},close:function(){this.$router.push("/dashboard")}}},o=i,l=r("2877"),m=Object(l["a"])(o,s,n,!1,null,null,null);t["default"]=m.exports},f474:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return u}));var s=r("b775");function n(e){return Object(s["a"])({url:"/getInfo",method:"get",data:e})}function u(e){return Object(s["a"])({url:"/system/user/updateUser",method:"post",data:e})}}}]);