(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5cd80cb6"],{"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 u})),a.d(e,"i",(function(){return l})),a.d(e,"a",(function(){return c})),a.d(e,"d",(function(){return d})),a.d(e,"c",(function(){return o})),a.d(e,"e",(function(){return p})),a.d(e,"b",(function(){return f})),a.d(e,"f",(function(){return h})),a.d(e,"g",(function(){return m})),a.d(e,"m",(function(){return b})),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),u=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),d=t=>r.a.get("/fakeUserAvatar/list",{params:t}),o=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}),h=t=>r.a.post("/fakeUser/create",t),m=t=>r.a.get("/fakeUser/list",{params:t}),b=t=>r.a.post("/fakeUserText/create",t),g=t=>r.a.get("/fakeUserText/list",{params:t})},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}}]);