(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5d27ce28"],{"0ab0":function(e,t,a){"use strict";a.d(t,"h",(function(){return s})),a.d(t,"k",(function(){return n})),a.d(t,"l",(function(){return i})),a.d(t,"j",(function(){return o})),a.d(t,"i",(function(){return c})),a.d(t,"a",(function(){return d})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return u})),a.d(t,"e",(function(){return m})),a.d(t,"b",(function(){return f})),a.d(t,"f",(function(){return p})),a.d(t,"g",(function(){return b})),a.d(t,"m",(function(){return v})),a.d(t,"n",(function(){return k}));var r=a("6b2d");const s=e=>r.a.post("/fakeUserName/create",e),n=e=>r.a.get("/fakeUserName/list",{params:e}),i=e=>r.a.post("/fakeUserName/update",e),o=e=>r.a.get("/fakeUserName/detail",{params:e}),c=e=>r.a.get("/fakeUserName/del",{params:e}),d=e=>r.a.post("/fakeUserAvatar/create",e),l=e=>r.a.get("/fakeUserAvatar/list",{params:e}),u=e=>r.a.get("/fakeUserAvatar/detail",{params:e}),m=e=>r.a.post("/fakeUserAvatar/update",e),f=e=>r.a.get("/fakeUserAvatar/del",{params:e}),p=e=>r.a.post("/fakeUser/create",e),b=e=>r.a.get("/fakeUser/list",{params:e}),v=e=>r.a.post("/fakeUserText/create",e),k=e=>r.a.get("/fakeUserText/list",{params:e})},"6b2d":function(e,t,a){"use strict";var r=a("0613"),s=a("bc3a"),n=a.n(s),i=a("d70b"),o=a("afbc"),c=a("5c96"),d=a("6ddb");const l={baseURL:i.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},u=(Object(d.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),o.b.push("/account/login"),Promise.reject())),n.a.create(l));u.interceptors.request.use(e=>{const t=r.a.getters.token;return t&&(e.headers.token=t),e.headers.version=i.a.version,e},e=>Promise.reject(e)),u.interceptors.response.use(e=>e.data,e=>(Object(c.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(e))),t.a=u},fdb7:function(e,t,a){"use strict";a.r(t);var r=a("0ab0"),s=a("b3ad"),n=(a("b6c4"),{data:()=>({form:{id:0,name:""},avatars:[]}),components:{MaterialSelect:s.a},methods:{submitForm(e){this.$refs[e].validate(e=>{if(!e)return!1;this.addMajia()})},getAvatarList(){Object(r.d)().then(e=>{this.avatars=e.data})},addMajia(){Object(r.f)(this.form).then(e=>{1==e.code?this.$message.success("新增成功!"):this.$message.error(e.msg)})}},mounted(){this.getAvatarList()}}),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"ls-card"},[a("el-page-header",{attrs:{content:"新建马甲"},on:{back:function(t){return e.$router.go(-1)}}})],1),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[e._v("新建马甲")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[a("el-form-item",{attrs:{required:"",prop:"name",label:"马甲名称"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{required:"",prop:"id",label:"马甲ID"}},[a("el-input",{attrs:{type:"number"},model:{value:e.form.id,callback:function(t){e.$set(e.form,"id",t)},expression:"form.id"}})],1),a("el-form-item",{attrs:{required:"",prop:"avatar",label:"马甲头像"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.avatar,callback:function(t){e.$set(e.form,"avatar",t)},expression:"form.avatar"}},e._l(e.avatars,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id}},[a("el-image",{staticStyle:{width:"40px",height:"40px",padding:"5px"},attrs:{src:e.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(t){return e.$router.go(-1)}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("新建")])],1)])])}),[],!1,null,null,null);t.default=o.exports}}]);