| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["RaffleBanner"],{"4fc4":function(t,e,a){},5697:function(t,e,a){"use strict";a("4fc4")},"78e1":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",[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"},[e("span",{staticClass:"crm-cursor",on:{click:t.toNew}},[e("i",{staticClass:"el-icon-plus"}),t.display["Raffle.R-RaffleBanner-add"].show?e("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]}):t._e()]),t.display["Raffle.R-RaffleBanner-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("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:"",label:t.$i18n.t("Raffle.WalletHistory.item3")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.amount||"0")+" ")]}}])}),e("el-table-column",{attrs:{prop:"addTime",align:"left",label:t.$i18n.t("Raffle.WalletHistory.item5")}}),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-RaffleBanner-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-RaffleBanner-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)},r=[],i=a("c14f"),c=a("5530"),s=a("1da1"),o=(a("14d9"),a("e9f5"),a("7d54"),a("b64b"),a("d3b7"),a("159b"),a("d35e")),u=a("f121"),l=a.n(u),f=l.a.Code,p={name:"Info",data:function(){return{imgUrl:l.a.Host85,pictLoading:!1,mock_tableData:[],search:{valid:"",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(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(i["a"])().m((function e(){var a;return Object(i["a"])().w((function(e){while(1)switch(e.n){case 0:if(t.pictLoading=!0,t.display["Raffle.R-RaffleBanner-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"].depositRafflePopupSearch(Object(c["a"])(Object(c["a"])({},t.search),{},{page:{current:t.pagerInfo.current,row:t.pagerInfo.row}}));case 2:a=e.v,a.code==f.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(),r=(new Date).getTime(),i=new Date(r+60*n*1e3+60*a*60*1e3),c=i.getFullYear(),s=i.getMonth()+1,o=i.getDate();s<10&&(s="0"+s),o<10&&(o="0"+o),t=c+"-"+s+"-01";var u=i.getMonth(),l=++u,f=new Date(i.getFullYear(),l,1),p=864e5,h=new Date(f-p),d=h.getDate();d<10&&(d="0"+d),e=c+"-"+s+"-"+d,this.search.date=[t,e]},toNew:function(){this.$router.push({path:"/web/raffle/banner/add",query:{type:"add"}}).catch((function(t){return t}))},toCheck:function(t){this.$router.push({path:"/web/raffle/banner/add",query:{id:t,type:"check"}}).catch((function(t){return t}))},toUpdate:function(t){this.$router.push({path:"/web/raffle/banner/add",query:{id:t,type:"update"}}).catch((function(t){return t}))},toDelete:function(){var t=Object(s["a"])(Object(i["a"])().m((function t(e){var a;return Object(i["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(i["a"])().m((function t(){var n,r;return Object(i["a"])().w((function(t){while(1)switch(t.n){case 0:return n=[],n.push(e),t.n=1,o["a"].depositRafflePopupDelete({ids:n});case 1:r=t.v,r.code==f.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(r.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(i["a"])().m((function t(){var e;return Object(i["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(i["a"])().m((function t(){var a;return Object(i["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,o["a"].depositRafflePopupDelete({ids:e.multipleSelection});case 1:a=t.v,a.code==f.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()}},h=p,d=(a("5697"),a("2877")),v=Object(d["a"])(h,n,r,!1,null,"598afb95",null);e["default"]=v.exports},d35e:function(t,e,a){"use strict";var n=a("c14f"),r=a("1da1"),i=a("d4ec"),c=a("bee2"),s=a("8f33"),o=a("262e"),u=a("ff2d"),l=a("bc3a"),f=a.n(l),p=a("f121"),h=a.n(p),d=function(t){function e(){var t;return Object(i["a"])(this,e),t=Object(s["a"])(this,e),f.a.defaults.baseURL=h.a.Host85,t}return Object(o["a"])(e,t),Object(c["a"])(e,[{key:"customUpdateBalance",value:function(){var t=Object(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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(r["a"])(Object(n["a"])().m((function t(){var e,a,r=arguments;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return e=r.length>0&&void 0!==r[0]?r[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}()}])}(u["a"]);e["a"]=new d}}]);
|