(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-12116066"],{"0ab0":function(t,a,e){"use strict";e.d(a,"h",(function(){return i})),e.d(a,"k",(function(){return n})),e.d(a,"l",(function(){return s})),e.d(a,"j",(function(){return u})),e.d(a,"i",(function(){return l})),e.d(a,"a",(function(){return c})),e.d(a,"d",(function(){return o})),e.d(a,"c",(function(){return p})),e.d(a,"e",(function(){return d})),e.d(a,"b",(function(){return m})),e.d(a,"f",(function(){return h})),e.d(a,"g",(function(){return f})),e.d(a,"m",(function(){return b})),e.d(a,"n",(function(){return k}));var r=e("6b2d");const i=t=>r.a.post("/fakeUserName/create",t),n=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}),l=t=>r.a.get("/fakeUserName/del",{params:t}),c=t=>r.a.post("/fakeUserAvatar/create",t),o=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,a,e){"use strict";e.r(a);var r=e("0ab0"),i={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null}}),methods:{handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,a){Object(r.k)({page:a}).then(t=>{this.table.currentPage=a,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)}},n=e("2877"),s=Object(n.a)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"ls-card m-b-12"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpAddName}},[t._v("新增马甲名称")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpAvatarList}},[t._v("马甲头像列表")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpMajiaList}},[t._v("马甲列表")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.jumpMajiaTalkList}},[t._v("马甲文案列表")])],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[e("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),e("el-table-column",{attrs:{prop:"name",label:"姓名",width:"180"}}),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.edit(a.row.id)}}},[t._v("编辑")]),e("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(e){return t.delItem(a.row.id)}}},[t._v("删除")])]}}])})],1)],1)}),[],!1,null,null,null);a.default=s.exports}}]);