| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["WinningList"],{"4da5":function(e,t,a){"use strict";a("6679")},6679:function(e,t,a){},d35e:function(e,t,a){"use strict";var n=a("c7eb"),r=a("1da1"),i=a("d4ec"),s=a("bee2"),c=a("8f33"),o=a("262e"),u=a("ff2d"),l=a("bc3a"),p=a.n(l),f=a("f121"),h=a.n(f),d=function(e){function t(){var e;return Object(i["a"])(this,t),e=Object(c["a"])(this,t),p.a.defaults.baseURL=h.a.Host85,e}return Object(o["a"])(t,e),Object(s["a"])(t,[{key:"customUpdateBalance",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/update/balance",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleSearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleSearchSingle",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleAdd",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleUpdate",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleDelete",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleAutomatic",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/get/config/week/raffle",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleAutomaticUpdate",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/update/config/week/raffle",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRafflePopupSearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRafflePopupSearchSingle",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRafflePopupAdd",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRafflePopupUpdate",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRafflePopupDelete",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customDepositRaffleSearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customDepositRaffleExport",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/export?email=&cId=&startDate=null&endDate=null",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customDepositRaffleNumber",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/update/number",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customDepositRaffleMarketsSearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/week/markets/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customDepositRaffleMarketsApprove",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/markets/week/approve",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customDepositRaffleManagerSearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/week/manager/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customDepositRaffleManagerApprove",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/week/approve",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customTransferSearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/transfer/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"walletHistorySearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/wallet/history/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"walletHistoryExport",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/wallet/history/export?email=&cId=null&startDate=null&endDate=null",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleNumberRecordSearch",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/number/record/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"depositRaffleNumberRecordExport",value:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,r=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/number/record/export",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}])}(u["a"]);t["a"]=new d},e5c9:function(e,t,a){"use strict";a.r(t);a("ac1f"),a("841c");var n=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"web_info","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"crm_search"},[t("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[t("el-row",[t("el-col",{attrs:{span:24,md:24,lg:24}},[t("el-form-item",{staticStyle:{"margin-right":"10px"}},[t("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.valid,callback:function(t){e.$set(e.search,"valid",t)},expression:"search.valid"}},[t("el-option",{attrs:{label:e.$t("Label.Show"),value:""},nativeOn:{click:function(t){return e.toSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:e.$t("Btn.No"),value:0},nativeOn:{click:function(t){return e.toSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:e.$t("Btn.Yes"),value:1},nativeOn:{click:function(t){return e.toSearch.apply(null,arguments)}}})],1)],1),t("el-form-item",{staticStyle:{"margin-right":"10px"}},[t("el-input",{staticClass:"crm-border-radius-no",staticStyle:{"margin-top":"5px"},attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch.apply(null,arguments)}},model:{value:e.search.account,callback:function(t){e.$set(e.search,"account",t)},expression:"search.account"}},[t("template",{slot:"prepend"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Raffle.WinningList.item1",expression:"'Raffle.WinningList.item1'"}],staticClass:"crm-cursor crm-border-radius-no"})])],2)],1),t("el-form-item",[t("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("Placeholder.Start"),"end-placeholder":e.$t("Placeholder.End")},on:{input:e.getSearchDate},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),t("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1),t("el-form-item",[t("div",{staticClass:"search_action_btn",staticStyle:{display:"flex","align-items":"center"}},[e.display["Raffle.R-WinningList-AutomaticLottery"].show?t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Raffle.R-WinningList-AutomaticLottery",expression:"'Raffle.R-WinningList-AutomaticLottery'"}]}),e._v(": "),t("el-switch",{staticClass:"my-switch",attrs:{disabled:!e.display["Raffle.R-WinningList-AutomaticLotteryU"].show,"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:e.toAutomaticLottery},model:{value:e.AutomaticLottery,callback:function(t){e.AutomaticLottery=t},expression:"AutomaticLottery"}})],1):e._e(),t("span",{staticClass:"crm-cursor",on:{click:e.toNew}},[t("i",{staticClass:"el-icon-plus"}),e.display["Raffle.R-WinningList-add"].show?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]}):e._e()]),e.display["Raffle.R-WinningList-Delete"].show?t("span",{staticClass:"crm-cursor delete",class:{active:this.multipleSelection.length},on:{click:e.toDeleteBatch}},[t("i",{staticClass:"el-icon-minus"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()])])],1)],1),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{align:"left",type:"selection",width:"55"}}),t("el-table-column",{attrs:{prop:"",label:e.$i18n.t("Label.Title")},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.title?t("span",{staticClass:"crm-text-underline crm-cursor crm-one-font",on:{click:function(t){return e.toCheck(a.row.id)}}},[t("i",{staticClass:"el-icon-caret-right"}),e._v(e._s(a.row.title||"--"))]):t("span",[e._v(e._s("--"))])]}}])}),t("el-table-column",{attrs:{prop:"",label:e.$i18n.t("Raffle.WinningList.item1")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.account||"--")+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Show")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.valid?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):e._e(),0==a.row.valid?t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]}):e._e()]}}])}),t("el-table-column",{attrs:{prop:"",label:e.$i18n.t("Label.Cover")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{lazy:!1,src:e.imgUrl+a.row.coverImage,"preview-src-list":[e.imgUrl+a.row.coverImage]}},[t("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t("i",{staticClass:"el-icon-picture-outline"})])])]}}])}),t("el-table-column",{attrs:{prop:"startTime",align:"left",label:e.$i18n.t("Placeholder.Start")}}),t("el-table-column",{attrs:{prop:"endTime",align:"left",label:e.$i18n.t("Placeholder.End")}}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.display["Raffle.R-WinningList-Update"].show?t("el-dropdown-item",{attrs:{command:{type:"editor",id:a.row.id}}},[t("i",{staticClass:"iconfont iconbianji3"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):e._e(),e.display["Raffle.R-WinningList-Delete"].show?t("el-dropdown-item",{attrs:{command:{type:"delete",id:a.row.id}}},[t("i",{staticClass:"iconfont iconshanchu"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("div",{staticClass:"crm_page_total"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),t("span",[e._v(e._s(e.pagerInfo.rowTotal))]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)},r=[],i=a("c7eb"),s=a("5530"),c=a("1da1"),o=(a("14d9"),a("e9f5"),a("7d54"),a("a9e3"),a("d3b7"),a("159b"),a("d35e")),u=a("f121"),l=a.n(u),p=l.a.Code,f={name:"Info",data:function(){return{imgUrl:l.a.Host05,pictLoading:!1,mock_tableData:[],search:{valid:"",account:"",lang:null,date:[],startDate:"",endDate:""},AutomaticLottery:0,multipleSelection:[],pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return this.Session.GetDisplay()}},methods:{handleCommand:function(e){"delete"==e.type?this.toDelete(e.id):"editor"==e.type&&this.toUpdate(e.id)},accountOpen:function(e){this.$router.push({path:"/web/popupadd/single",query:{id:e.id,type:"popup"}})},searchFunc:function(){var e=this;return Object(c["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["Raffle.R-WinningList-list"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=8,o["a"].depositRaffleSearch(Object(s["a"])(Object(s["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:a=t.sent,a.code==p.StatusOK?(e.mock_tableData=a.data,null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 10:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},getDate:function(){var e,t,a=2,n=(new Date).getTimezoneOffset(),r=(new Date).getTime(),i=new Date(r+60*n*1e3+60*a*60*1e3),s=i.getFullYear(),c=i.getMonth()+1,o=i.getDate();c<10&&(c="0"+c),o<10&&(o="0"+o),e=s+"-"+c+"-01";var u=i.getMonth(),l=++u,p=new Date(i.getFullYear(),l,1),f=864e5,h=new Date(p-f),d=h.getDate();d<10&&(d="0"+d),t=s+"-"+c+"-"+d,this.search.date=[e,t]},getAutomaticLottery:function(){var e=this;return Object(c["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["Raffle.R-WinningList-AutomaticLottery"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return t.next=7,o["a"].depositRaffleAutomatic({});case 7:a=t.sent,a.code==p.StatusOK?(e.AutomaticLottery=a.data||0,e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 9:case"end":return t.stop()}}),t)})))()},toAutomaticLottery:function(){var e=this;return Object(c["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["Raffle.R-WinningList-AutomaticLottery"].show&&e.display["Raffle.R-WinningList-AutomaticLotteryU"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return t.next=7,o["a"].depositRaffleAutomaticUpdate({weekRaffle:Number(e.AutomaticLottery)||0});case 7:a=t.sent,a.code==p.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 9:case"end":return t.stop()}}),t)})))()},toNew:function(){this.$router.push({path:"/web/winning/list/add",query:{type:"add"}}).catch((function(e){return e}))},toCheck:function(e){this.$router.push({path:"/web/winning/list/add",query:{id:e,type:"check"}}).catch((function(e){return e}))},toUpdate:function(e){this.$router.push({path:"/web/winning/list/add",query:{id:e,type:"update"}}).catch((function(e){return e}))},toDelete:function(){var e=Object(c["a"])(Object(i["a"])().mark((function e(t){var a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(c["a"])(Object(i["a"])().mark((function e(){var n,r;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],n.push(t),e.next=4,o["a"].depositRaffleDelete({ids:n});case 4:r=e.sent,r.code==p.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(r.msg);case 6:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),toDeleteBatch:function(){var e=Object(c["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.multipleSelection.length){e.next=2;break}return e.abrupt("return");case 2:t=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(c["a"])(Object(i["a"])().mark((function e(){var a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["a"].depositRaffleDelete({ids:t.multipleSelection});case 2:a=e.sent,a.code==p.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.DeleteSuccess")),t.searchFunc()):t.$pigeon.MessageError(a.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=this;this.multipleSelection=[],e.forEach((function(e){t.multipleSelection.push(e.id)}))},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.searchFunc(),this.getAutomaticLottery()}},h=f,d=(a("4da5"),a("2877")),v=Object(d["a"])(h,n,r,!1,null,"3000a5f3",null);t["default"]=v.exports}}]);
|