(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-bf939f72"],{"0ab0":function(t,e,a){"use strict";a.d(e,"h",(function(){return n})),a.d(e,"k",(function(){return s})),a.d(e,"l",(function(){return i})),a.d(e,"j",(function(){return c})),a.d(e,"i",(function(){return o})),a.d(e,"a",(function(){return u})),a.d(e,"d",(function(){return d})),a.d(e,"c",(function(){return l})),a.d(e,"e",(function(){return p})),a.d(e,"b",(function(){return f})),a.d(e,"f",(function(){return m})),a.d(e,"g",(function(){return b})),a.d(e,"m",(function(){return h})),a.d(e,"n",(function(){return g}));var r=a("6b2d");const n=t=>r.a.post("/fakeUserName/create",t),s=t=>r.a.get("/fakeUserName/list",{params:t}),i=t=>r.a.post("/fakeUserName/update",t),c=t=>r.a.get("/fakeUserName/detail",{params:t}),o=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}),l=t=>r.a.get("/fakeUserAvatar/detail",{params:t}),p=t=>r.a.post("/fakeUserAvatar/update",t),f=t=>r.a.get("/fakeUserAvatar/del",{params:t}),m=t=>r.a.post("/fakeUser/create",t),b=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})},"6b2d":function(t,e,a){"use strict";var r=a("0613"),n=a("bc3a"),s=a.n(n),i=a("d70b"),c=a("afbc"),o=a("5c96"),u=a("6ddb");const d={baseURL:i.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},l=(Object(u.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),c.b.push("/account/login"),Promise.reject())),s.a.create(d));l.interceptors.request.use(t=>{const e=r.a.getters.token;return e&&(t.headers.token=e),t.headers.version=i.a.version,t},t=>Promise.reject(t)),l.interceptors.response.use(t=>t.data,t=>(Object(o.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=l},ab1b:function(t,e,a){"use strict";a.r(e);var r=a("0ab0"),n={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null}}),methods:{handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,e){Object(r.d)({page:e}).then(t=>{this.table.currentPage=e,this.table.total=t.data.length,this.table.data=t.data})},jumpAdd(){this.$router.push({path:"/application/majia/avatar/add",query:{}})},edit(t){this.$router.push({path:"/application/majia/avatar/edit",query:{id:t}})},delItem(t){this.$confirm("此操作将永久删除该头像, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(r.b)({id:t}).then(t=>{1==t.code?(this.$message.success("删除成功!"),this.getData(10,this.table.currentPage)):this.$message.error(t.msg)})}).catch(()=>{})}},mounted(){this.getData(10,1)}},s=a("2877"),i=Object(s.a)(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card m-b-12"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpAdd}},[t._v("新建")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),a("el-table-column",{attrs:{label:"头像",width:"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.row.avatar}})]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.edit(e.row.id)}}},[t._v("编辑")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(a){return t.delItem(e.row.id)}}},[t._v("删除")])]}}])})],1)],1)}),[],!1,null,null,null);e.default=i.exports}}]);