(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-17691106"],{"46a9":function(t,e,a){"use strict";a.r(e);var l=a("f19e"),n={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null}}),methods:{delItem(t){Object(l.b)({id:t}).then(t=>{1==t.code&&this.getData(10,this.table.currentPage)})},goEdit(t){this.$router.push({path:"/application/blindBoxe/blindBoxeEdit",query:{id:t}})},handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t,this.getData(10,this.table.currentPage)},getData(t,e){Object(l.d)({page:e}).then(t=>{this.table.currentPage=e,this.table.total=t.data.total,this.table.data=t.data.data})},jumpAdd(){this.$router.push({path:"/application/blindBoxe/blindBoxeAdd",query:{}})}},mounted(){this.getData(10,1)}},r=a("2877"),i=Object(r.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-alert",{attrs:{title:"温馨提示：该页面用来管理盲盒。",type:"info","show-icon":"",closable:!1}})],1),a("div",{staticClass:"ls-card",staticStyle:{"min-height":"60vh"}},[a("el-button",{staticStyle:{"margin-right":"10px","margin-bottom":"12px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.jumpAdd()}}},[t._v("创建")]),a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"ID"}}),a("el-table-column",{attrs:{prop:"user_id",label:"用户ID"}}),a("el-table-column",{attrs:{prop:"title",label:"标题"}}),a("el-table-column",{attrs:{prop:"desc",label:"描述"}}),a("el-table-column",{attrs:{prop:"content",label:"内容"}}),a("el-table-column",{attrs:{prop:"min_age",label:"最小年龄"}}),a("el-table-column",{attrs:{prop:"max_age",label:"最大年龄"}}),a("el-table-column",{attrs:{prop:"location_scope",label:"location_scope"}}),a("el-table-column",{attrs:{prop:"status",label:"状态"}}),a("el-table-column",{attrs:{prop:"region_id",label:"地区id"}}),a("el-table-column",{attrs:{prop:"expire_time",label:"失效时间"}}),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.goEdit(e.row.id)}}},[t._v("编辑")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"}},[t._v("删除")])]}}])})],1),a("el-pagination",{attrs:{"current-page":t.table.currentPage,"page-sizes":t.table.pageSizes,"page-size":10,layout:"total, sizes, prev, pager, next, jumper",total:t.table.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])}),[],!1,null,null,null);e.default=i.exports},f19e:function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"h",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"e",(function(){return d})),a.d(e,"f",(function(){return s})),a.d(e,"g",(function(){return u})),a.d(e,"a",(function(){return c}));var l=a("6b2d");const n=t=>l.a.get("/blind_boxe.BlindBoxe/list",{params:t}),r=t=>l.a.get("/blind_boxe.BlindBoxe/detail",{params:t}),i=t=>l.a.post("/blind_boxe.BlindBoxe/update",t),o=t=>l.a.get("/blind_boxe.BlindBoxe/detail",{params:t}),d=t=>l.a.get("/blind_boxe.BlindBoxeOrder/list",{params:t}),s=t=>l.a.get("/blind_boxe.BlindBoxeOrder/detail",{params:t}),u=t=>l.a.post("/blind_boxe.BlindBoxeOrder/update",t),c=t=>l.a.get("/blind_boxe.BlindBoxeRecord/detail",{params:t})}}]);