(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2ebcf396"],{"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 l})),a.d(e,"a",(function(){return c})),a.d(e,"d",(function(){return u})),a.d(e,"c",(function(){return d})),a.d(e,"e",(function(){return f})),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 b})),a.d(e,"n",(function(){return k}));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}),l=t=>r.a.get("/fakeUserName/del",{params:t}),c=t=>r.a.post("/fakeUserAvatar/create",t),u=t=>r.a.get("/fakeUserAvatar/list",{params:t}),d=t=>r.a.get("/fakeUserAvatar/detail",{params:t}),f=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}),b=t=>r.a.post("/fakeUserText/create",t),k=t=>r.a.get("/fakeUserText/list",{params:t})},fdb7:function(t,e,a){"use strict";a.r(e);var r=a("0ab0"),s=a("b3ad"),n=(a("b6c4"),{data:()=>({form:{id:0,name:""},avatars:[]}),components:{MaterialSelect:s.a},methods:{submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;this.addMajia()})},getAvatarList(){Object(r.d)().then(t=>{this.avatars=t.data})},addMajia(){Object(r.f)(this.form).then(t=>{1==t.code?this.$message.success("新增成功!"):this.$message.error(t.msg)})}},mounted(){this.getAvatarList()}}),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:"name",label:"马甲名称"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{required:"",prop:"id",label:"马甲ID"}},[a("el-input",{attrs:{type:"number"},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}})],1),a("el-form-item",{attrs:{required:"",prop:"avatar",label:"马甲头像"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.avatar,callback:function(e){t.$set(t.form,"avatar",e)},expression:"form.avatar"}},t._l(t.avatars,(function(t){return a("el-option",{key:t.id,attrs:{value:t.id}},[a("el-image",{staticStyle:{width:"40px",height:"40px",padding:"5px"},attrs:{src:t.avatar}})],1)})),1)],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}}]);