| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["WinningList"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"1aa6":function(e,t,r){"use strict";r("7bee")},"7bee":function(e,t,r){},"841c":function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("1d80"),s=r("129f"),o=r("14c3");n("search",1,(function(e,t,r){return[function(t){var r=i(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var i=a(e),c=String(this),u=i.lastIndex;s(u,0)||(i.lastIndex=0);var l=o(i,c);return s(i.lastIndex,u)||(i.lastIndex=u),null===l?-1:l.index}]}))},d35e:function(e,t,r){"use strict";r("96cf");var n=r("1da1"),a=r("d4ec"),i=r("bee2"),s=r("262e"),o=r("2caf"),c=r("ff2d"),u=r("bc3a"),l=r.n(u),p=r("f121"),h=r.n(p),d=function(e){Object(s["a"])(r,e);var t=Object(o["a"])(r);function r(){var e;return Object(a["a"])(this,r),e=t.call(this),l.a.defaults.baseURL=h.a.Host85,e}return Object(i["a"])(r,[{key:"customUpdateBalance",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/update/balance",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/add",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/update",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/delete",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/add",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/update",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/custom/deposit/raffle/popup/delete",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/export?email=&cId=&startDate=null&endDate=null",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/update/number",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/week/markets/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/markets/week/approve",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/week/manager/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/week/approve",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/transfer/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/wallet/history/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/wallet/history/export?email=&cId=null&startDate=null&endDate=null",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/number/record/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);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(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/activity/deposit/raffle/number/record/export",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(c["a"]);t["a"]=new d},e5c9:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("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"}},[r("div",{staticClass:"crm_search"},[r("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[r("el-row",[r("el-col",{attrs:{span:24,md:24,lg:24}},[r("el-form-item",{staticStyle:{"margin-right":"10px"}},[r("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"}},[r("el-option",{attrs:{label:e.$t("Label.Show"),value:""},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Btn.No"),value:0},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Btn.Yes"),value:1},nativeOn:{click:function(t){return e.toSearch(t)}}})],1)],1),r("el-form-item",{staticStyle:{"margin-right":"10px"}},[r("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(t)}},model:{value:e.search.account,callback:function(t){e.$set(e.search,"account",t)},expression:"search.account"}},[r("template",{slot:"prepend"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Raffle.WinningList.item1",expression:"'Raffle.WinningList.item1'"}],staticClass:"crm-cursor crm-border-radius-no"})])],2)],1),r("el-form-item",[r("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"}}),r("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),r("el-form-item",[r("div",{staticClass:"search_action_btn"},[r("span",{staticClass:"crm-cursor",on:{click:e.toNew}},[r("i",{staticClass:"el-icon-plus"}),e.display["Raffle.R-WinningList-add"].show?r("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]}):e._e()]),e.display["Raffle.R-WinningList-Delete"].show?r("span",{staticClass:"crm-cursor delete",class:{active:this.multipleSelection.length},on:{click:e.toDeleteBatch}},[r("i",{staticClass:"el-icon-minus"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()])])],1)],1),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{align:"left",type:"selection",width:"55"}}),r("el-table-column",{attrs:{prop:"",label:e.$i18n.t("Label.Title")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.title?r("span",{staticClass:"crm-text-underline crm-cursor crm-one-font",on:{click:function(r){return e.toCheck(t.row.id)}}},[r("i",{staticClass:"el-icon-caret-right"}),e._v(e._s(t.row.title||"--"))]):r("span",[e._v(e._s("--"))])]}}])}),r("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||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.Show")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.valid?r("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Yes",expression:"'Btn.Yes'"}]}):e._e(),0==t.row.valid?r("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.No",expression:"'Btn.No'"}]}):e._e()]}}])}),r("el-table-column",{attrs:{prop:"",label:e.$i18n.t("Label.Cover")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{lazy:!1,src:e.imgUrl+t.row.coverImage,"preview-src-list":[e.imgUrl+t.row.coverImage]}},[r("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[r("i",{staticClass:"el-icon-picture-outline"})])])]}}])}),r("el-table-column",{attrs:{prop:"startTime",align:"left",label:e.$i18n.t("Placeholder.Start")}}),r("el-table-column",{attrs:{prop:"endTime",align:"left",label:e.$i18n.t("Placeholder.End")}}),r("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[r("span",{staticClass:"el-dropdown-link crm-cursor"},[r("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.display["Raffle.R-WinningList-Update"].show?r("el-dropdown-item",{attrs:{command:{type:"editor",id:t.row.id}}},[r("i",{staticClass:"iconfont iconbianji3"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):e._e(),e.display["Raffle.R-WinningList-Delete"].show?r("el-dropdown-item",{attrs:{command:{type:"delete",id:t.row.id}}},[r("i",{staticClass:"iconfont iconshanchu"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.rowTotal?r("div",{staticClass:"crm_pagination"},[r("div",{staticClass:"crm_page_total"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),r("span",[e._v(e._s(e.pagerInfo.rowTotal))]),r("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),r("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)},a=[],i=(r("4160"),r("ac1f"),r("841c"),r("159b"),r("5530")),s=(r("96cf"),r("1da1")),o=r("d35e"),c=r("f121"),u=r.n(c),l=u.a.Code,p={name:"Info",data:function(){return{imgUrl:u.a.Host85,pictLoading:!1,mock_tableData:[],search:{valid:"",account:"",lang:null,date:[],startDate:"",endDate:""},multipleSelection:[],pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},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(s["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.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(i["a"])(Object(i["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:r=t.sent,r.code==l.StatusOK?(e.mock_tableData=r.data,null!=r.page?(e.pagerInfo.rowTotal=r.page.rowTotal,e.pagerInfo.pageTotal=r.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(r.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,r=2,n=(new Date).getTimezoneOffset(),a=(new Date).getTime(),i=new Date(a+60*n*1e3+60*r*60*1e3),s=i.getFullYear(),o=i.getMonth()+1,c=i.getDate();o<10&&(o="0"+o),c<10&&(c="0"+c),e=s+"-"+o+"-01";var u=i.getMonth(),l=++u,p=new Date(i.getFullYear(),l,1),h=864e5,d=new Date(p-h),f=d.getDate();f<10&&(f="0"+f),t=s+"-"+o+"-"+f,this.search.date=[e,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(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=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"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.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:a=e.sent,a.code==l.StatusOK?(r.$pigeon.MessageOK(r.$i18n.t("Msg.DeleteSuccess")),r.searchFunc()):r.$pigeon.MessageError(a.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(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.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(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["a"].depositRaffleDelete({ids:t.multipleSelection});case 2:r=e.sent,r.code==l.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.DeleteSuccess")),t.searchFunc()):t.$pigeon.MessageError(r.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()}},h=p,d=(r("1aa6"),r("2877")),f=Object(d["a"])(h,n,a,!1,null,"0d9661f0",null);t["default"]=f.exports}}]);
|