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