(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20ed7a"],{b0a7:function(e,t,s){"use strict";s.r(t);var a,i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-dialog",{attrs:{persistent:"","max-width":"600px"},model:{value:e.thisValue,callback:function(t){e.thisValue=t},expression:"thisValue"}},[s("v-card",[s("v-card-title",[s("span",{staticClass:"headline"},[e._v("修改信息")])]),s("v-card-text",[s("v-container",[s("v-text-field",{attrs:{label:"姓名"},model:{value:e.thisMsg.realname,callback:function(t){e.$set(e.thisMsg,"realname",t)},expression:"thisMsg.realname"}}),s("v-text-field",{attrs:{label:"手机号"},model:{value:e.thisMsg.tel_number,callback:function(t){e.$set(e.thisMsg,"tel_number",t)},expression:"thisMsg.tel_number"}}),s("v-select",{attrs:{items:e.roles,rules:[function(e){return!!e||"请选择一个角色"}],required:"",label:"选择一个角色*","item-text":"role_name","item-value":"id"},model:{value:e.thisMsg.role_id,callback:function(t){e.$set(e.thisMsg,"role_id",t)},expression:"thisMsg.role_id"}})],1)],1),s("v-card-actions",{staticClass:"justify-space-between"},[s("v-btn",{attrs:{color:"blue gray",text:""},on:{click:function(t){e.thisValue=!1}}},[e._v("取消")]),s("v-btn",{attrs:{color:"dark darken-1",loading:e.loading,text:""},on:{click:function(t){return e.doUpdate()}}},[e._v("保存")])],1)],1)],1)},n=[],l={props:{value:{type:Boolean,required:!0,default:!1},msg:{type:Object,required:!0,default:{realname:"",tel_number:""}}},data:function(){return{thisValue:this.value,thisMsg:JSON.parse(JSON.stringify(this.msg)),loading:!1,roles:[]}},watch:{value:function(e){this.thisValue=e},thisValue:function(e){this.$emit("change",e)},msg:function(e){this.thisMsg=e}},mounted:function(){a=this,a.getRoleData()},methods:{getRoleData:function(){this.$post("role/list",{status:1,sorts:"sort asc",currentPage:1,pageSize:100},function(e){0===e.errno&&(a.roles=e.data.data)})},doUpdate:function(){this.loading=!0,this.$post("admin/updateMsg",{id:this.thisMsg.id,tel_number:this.thisMsg.tel_number,realname:this.thisMsg.realname},function(e){a.loading=!1,0==e.errno&&(a.$message({showClose:!0,message:e.errmsg,type:"success"}),a.thisValue=!1,a.$emit("changemsg",e))})}}},r=l,o=s("6691"),u=Object(o["a"])(r,i,n,!1,null,null,null);t["default"]=u.exports}}]);
//# sourceMappingURL=chunk-2d20ed7a.67684180.js.map