(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-052f78e0"],{"0ab0":function(t,e,a){"use strict";a.d(e,"h",(function(){return n})),a.d(e,"k",(function(){return i})),a.d(e,"l",(function(){return s})),a.d(e,"j",(function(){return u})),a.d(e,"i",(function(){return o})),a.d(e,"a",(function(){return c})),a.d(e,"d",(function(){return l})),a.d(e,"c",(function(){return p})),a.d(e,"e",(function(){return d})),a.d(e,"b",(function(){return m})),a.d(e,"f",(function(){return h})),a.d(e,"g",(function(){return f})),a.d(e,"m",(function(){return b})),a.d(e,"n",(function(){return k}));var r=a("6b2d");const n=t=>r.a.post("/fakeUserName/create",t),i=t=>r.a.get("/fakeUserName/list",{params:t}),s=t=>r.a.post("/fakeUserName/update",t),u=t=>r.a.get("/fakeUserName/detail",{params:t}),o=t=>r.a.get("/fakeUserName/del",{params:t}),c=t=>r.a.post("/fakeUserAvatar/create",t),l=t=>r.a.get("/fakeUserAvatar/list",{params:t}),p=t=>r.a.get("/fakeUserAvatar/detail",{params:t}),d=t=>r.a.post("/fakeUserAvatar/update",t),m=t=>r.a.get("/fakeUserAvatar/del",{params:t}),h=t=>r.a.post("/fakeUser/create",t),f=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})},4780: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.k)({page:e}).then(t=>{this.table.currentPage=e,this.table.total=t.data.length,this.table.data=t.data})},edit(t){this.$router.push({path:"/application/majia/edit",query:{id:t}})},jumpMajiaList(){this.$router.push({path:"/application/majia/list/list",query:{}})},jumpAddName(){this.$router.push({path:"/application/majia/add",query:{}})},delItem(t){this.$confirm("此操作将永久删除该名称, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(r.i)({id:t}).then(t=>{1==t.code?(this.$message.success("删除成功!"),this.getData(10,this.table.currentPage)):this.$message.error(t.msg)})}).catch(()=>{})},jumpAvatarList(){this.$router.push({path:"/application/majia/avatar/list",query:{}})},jumpMajiaTalkList(){this.$router.push({path:"/application/majia/talk/list",query:{}})}},mounted(){this.getData(10,1)}},i=a("2877"),s=Object(i.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.jumpAddName}},[t._v("新增马甲名称")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpAvatarList}},[t._v("马甲头像列表")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpMajiaList}},[t._v("马甲列表")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpMajiaTalkList}},[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:{prop:"name",label:"姓名",width:"180"}}),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=s.exports},"6b2d":function(t,e,a){"use strict";var r=a("0613"),n=a("bc3a"),i=a.n(n),s=a("d70b"),u=a("afbc"),o=a("5c96"),c=a("6ddb");const l={baseURL:s.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},p=(Object(c.g)(()=>(r.a.commit("setToken",""),r.a.commit("setUserInfo",{}),r.a.commit("setPermission",{}),u.b.push("/account/login"),Promise.reject())),i.a.create(l));p.interceptors.request.use(t=>{const e=r.a.getters.token;return e&&(t.headers.token=e),t.headers.version=s.a.version,t},t=>Promise.reject(t)),p.interceptors.response.use(t=>t.data,t=>(Object(o.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=p}}]);