(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e6a14ae4"],{"4ebb":function(e,t,i){},da47:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("pageGenerator",{ref:"pageGenerator",attrs:{apiConfig:e.apiConfig,columns:e.columns,pageConfig:e.pageConfig,filterConfig:e.filterConfig,actionConfig:e.actionConfig},scopedSlots:e._u([{key:"prizeTitle",fn:function(t){var r=t.row;return[i("div",[e._v(e._s(r.prize?r.prize.title:""))])]}},{key:"prizeType",fn:function(t){var r=t.row;return[r.prize&&0==r.prize.type?i("el-tag",{attrs:{type:"info"}},[e._v("谢谢参与")]):r.prize&&1==r.prize.type?i("el-tag",{attrs:{type:"warning"}},[e._v("余额")]):r.prize&&2==r.prize.type?i("el-tag",{attrs:{type:"success"}},[e._v("积分")]):r.prize&&3==r.prize.type?i("el-tag",{attrs:{type:"danger"}},[e._v("优惠券")]):r.prize&&99==r.prize.type?i("el-tag",{attrs:{type:"primary"}},[e._v("其他奖励")]):e._e()]}},{key:"prizeReward",fn:function(t){var r=t.row;return[1==r.type?i("div",[e._v(e._s(r.prize?r.prize.reward+"元":""))]):2==r.type?i("div",[e._v(e._s(r.prize?r.prize.reward+"积分":""))]):i("div",[e._v(e._s(r.prize?r.prize.reward:""))])]}}])})],1)},n=[],a={name:"LuckywheelList",data:function(){return{pageConfig:{showAdd:!1,showRefresh:!0,showSelection:!1,showBatchDel:!1,showPagination:!0,showExport:!1,listQueryConfig:{page:1,limit:10},actionWidth:120,actionAlign:"center"},filterConfig:[],apiConfig:{getList:"luckywheel/lottery/getList",del:"luckywheel/lottery/delete"},columns:[{label:"ID",prop:"id",align:"center",width:80},{label:"用户信息",prop:"user",align:"center"},{label:"奖品名称",prop:"prize.title",align:"center",slot:"prizeTitle"},{label:"奖品类型",prop:"prize.type",align:"center",slot:"prizeType"},{label:"奖品内容",prop:"prize.reward",align:"center",slot:"prizeReward"},{label:"抽奖时间",prop:"createtime",align:"center"}],actionConfig:[{label:"确认发放",type:"primary",size:"mini",click:this.handleAudit,layout:"table",show:this.canExchange}]}},methods:{canExchange:function(e){return e&&0==e.status},refresh:function(){this.$refs.pageGenerator.getList()},handleAudit:function(e){var t=this;this.$confirm("请选择确认发放","确认发放",{confirmButtonText:"确认发放",cancelButtonText:"取消",distinguishCancelAndClose:!0,closeOnClickModal:!1,showClose:!0,type:"warning",showCancelButton:!0,showConfirmButton:!0}).then((function(i){"confirm"===i&&t.submitAudit(e.id)})).catch((function(){}))},submitAudit:function(e){var t=this;this.api.post("luckywheel/lottery/duihuan",{id:e}).then((function(e){1==e.code?(t.$util.success(e.message),t.refresh()):t.$util.error(e.message)}))}}},o=a,l=(i("de8c"),i("3d7a")),p=Object(l["a"])(o,r,n,!1,null,"742f1044",null);t["default"]=p.exports},de8c:function(e,t,i){"use strict";i("4ebb")}}]);