(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4c9daa59"],{"0ab0":function(t,e,a){"use strict";a.d(e,"h",(function(){return s})),a.d(e,"k",(function(){return n})),a.d(e,"l",(function(){return i})),a.d(e,"j",(function(){return o})),a.d(e,"i",(function(){return c})),a.d(e,"a",(function(){return u})),a.d(e,"d",(function(){return d})),a.d(e,"c",(function(){return f})),a.d(e,"e",(function(){return l})),a.d(e,"b",(function(){return m})),a.d(e,"f",(function(){return p})),a.d(e,"g",(function(){return v})),a.d(e,"m",(function(){return h})),a.d(e,"n",(function(){return g}));var r=a("6b2d");const s=t=>r.a.post("/fakeUserName/create",t),n=t=>r.a.get("/fakeUserName/list",{params:t}),i=t=>r.a.post("/fakeUserName/update",t),o=t=>r.a.get("/fakeUserName/detail",{params:t}),c=t=>r.a.get("/fakeUserName/del",{params:t}),u=t=>r.a.post("/fakeUserAvatar/create",t),d=t=>r.a.get("/fakeUserAvatar/list",{params:t}),f=t=>r.a.get("/fakeUserAvatar/detail",{params:t}),l=t=>r.a.post("/fakeUserAvatar/update",t),m=t=>r.a.get("/fakeUserAvatar/del",{params:t}),p=t=>r.a.post("/fakeUser/create",t),v=t=>r.a.get("/fakeUser/list",{params:t}),h=t=>r.a.post("/fakeUserText/create",t),g=t=>r.a.get("/fakeUserText/list",{params:t})},e521:function(t,e,a){"use strict";a.r(e);var r=a("0ab0"),s=a("b3ad"),n=(a("b6c4"),{data:()=>({form:{name:""}}),components:{MaterialSelect:s.a},methods:{submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;this.updateAvatar()})},addAvatar(){Object(r.a)(this.form).then(t=>{1==t.code?this.$message.success("新增成功!"):this.$message.error(t.msg)})},getAvatarDetail(){Object(r.c)({id:this.form.id}).then(t=>{this.form=t.data})},updateAvatar(){Object(r.e)(this.form).then(t=>{1==t.code?(this.$message.success("编辑成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(t.msg)})}},mounted(){this.getAvatarDetail()},created(){const t=this.$route.query;this.form.id=t.id}}),i=a("2877"),o=Object(i.a)(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card"},[a("el-page-header",{attrs:{content:"编辑马甲头像"},on:{back:function(e){return t.$router.go(-1)}}})],1),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("编辑马甲头像")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[a("el-form-item",{attrs:{required:"",prop:"avatar",label:"头像"}},[a("material-select",{attrs:{limit:1},model:{value:t.form.avatar,callback:function(e){t.$set(t.form,"avatar",e)},expression:"form.avatar"}})],1)],1)],1)]),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("编辑")])],1)])])}),[],!1,null,null,null);e.default=o.exports}}]);