import{_ as e,aj as a,s as l,m as t,r as s,by as o,bu as r,f as i,o as n,c as u,d,a as m,b as c,p,q as v,W as g,a0 as b,v as f,t as h,aU as _,aY as j,j as C,ag as I,aZ as T}from"./index-BhrLSE9x.js";import{E as y}from"./el-pagination-D-QLvIpf.js";import{a as D,E as Y}from"./el-table-column-BSUoH3qj.js";import"./el-tooltip-l0sNRNKZ.js";import{a as x,E as V}from"./el-form-DT7MBZet.js";import"./el-form-item-l0sNRNKZ.js";import{e as N}from"./agencyCenter-C3B7tV0O.js";/* empty css              */import"./raf-ClpXBvnZ.js";const k={class:"alldata-page"},z={class:"level-block"},A={class:"filter-area"},M={class:"items"},E={class:"item has-btn"},P=["src"],S={class:"btn"},U={class:"table-content"},w={class:"pagination-box"},B=e({__name:"AllData",setup(e){const B=a(),{userDetail:L}=l(B),{theme:$}=t(),q=s({date:[o,r]}),W=s({startTime:o,endTime:r,userId:""}),Z=s(!1),F=s([]),G=s({pageNo:1,pageSize:10,totalPage:0,totalCount:0}),H=()=>{const e={...G.value,userId:W.value.userId,statTimeStart:W.value.startTime,statTimeEnd:W.value.endTime};Z.value=!0,N(e).then((e=>{if(1===e.code){const{records:a,totalPage:l,totalCount:t}=e.data;F.value=a,G.value.totalPage=l,G.value.totalCount=t}})).finally((()=>{Z.value=!1}))},J=()=>{G.value.pageNo=1,H()},K=()=>{G.value.pageNo=1,q.value.date=[o,r],W.value={startTime:o,endTime:r,userId:""},H()},O=e=>{G.value.pageNo=e,H()},Q=e=>{G.value.pageSize=e,G.value.pageNo=1,H()},R=e=>{if(Array.isArray(e)&&2===e.length){const a=_(e[0]).format("YYYY-MM-DD 00:00:00"),l=_(e[1]).format("YYYY-MM-DD 23:59:59");q.value.date=[a,l],W.value.startTime=a,W.value.endTime=l}};return i((()=>{H()})),(e,a)=>{const l=j,t=x,s=C,o=I,r=V,i=D,_=Y,N=y,B=T;return n(),u("div",k,[d("div",z,[d("div",A,[m(r,{model:q.value},{default:c((()=>[d("div",M,[d("div",E,[m(t,{label:"日期:"},{default:c((()=>[m(l,{modelValue:q.value.date,"onUpdate:modelValue":a[0]||(a[0]=e=>q.value.date=e),type:"daterange","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"large",onChange:R,teleported:!1},null,8,["modelValue"])])),_:1}),m(t,{class:"search",label:"会员ID:"},{default:c((()=>[m(s,{class:"search-input",modelValue:W.value.userId,"onUpdate:modelValue":a[1]||(a[1]=e=>W.value.userId=e),modelModifiers:{trim:!0},placeholder:e.$t("请输入会员ID"),maxlength:"50"},{suffix:c((()=>[d("img",{class:"icon",onClick:J,width:"22",height:"22",src:p(v)(`games/search_${p($)}.png`),alt:""},null,8,P)])),_:1},8,["modelValue","placeholder"])])),_:1}),d("div",S,[m(o,{loading:Z.value,onClick:J},{default:c((()=>a[3]||(a[3]=[g("查询")]))),_:1},8,["loading"]),m(o,{class:"reset",onClick:K},{default:c((()=>a[4]||(a[4]=[g("重置")]))),_:1})])])])])),_:1},8,["model"])])]),d("div",U,[b((n(),f(_,{"header-cell-class-name":"my-header-cell-class-name",stripe:"",data:F.value,style:{width:"100%","min-height":"550px"}},{default:c((()=>[m(i,{label:"代理等级",align:"center","class-name":"table-items table-items-1"},{default:c((e=>[d("p",null,"LV "+h(p(L).vipLevel),1)])),_:1}),m(i,{prop:"userId",label:"会员ID",align:"center","class-name":"table-items table-items-2"}),m(i,{prop:"createTime",label:"交易时间",align:"center","class-name":"table-items table-items-3"}),m(i,{prop:"thirdValidBetAmount",label:"有效投注",align:"center","class-name":"table-items table-items-3"}),m(i,{prop:"rechargeAmount",label:"充值",align:"center","class-name":"table-items table-items-3"})])),_:1},8,["data"])),[[B,Z.value]]),d("div",w,[m(N,{"current-page":G.value.pageNo,"onUpdate:currentPage":a[2]||(a[2]=e=>G.value.pageNo=e),background:"",layout:"prev, pager, next",total:+G.value.totalCount,"page-size":10,onSizeChange:Q,onCurrentChange:O,style:{"z-index":"99"}},null,8,["current-page","total"])])])])}}},[["__scopeId","data-v-8ecf3e0e"]]);export{B as default};
