import{B as K,C as q,O as D,P as M,h as N,D as O,H as R,q as $,K as A,L as I,M as S}from"./element-plus-z3MwpXC9.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang-Bd2lff9j.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang-CGG0C_jF.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-D1wv7vxr.js";import{d as k,Z as G,a4 as J,ah as Q,an as W,o as s,c as g,V as e,M as l,u as t,ab as X,U as Y,aa as ee,L as _,S as u,O as v,a as te,i as oe}from"./@vue-TMcuEboY.js";import{b as w}from"./consumer-CmAz6Tpe.js";import{C as ae,g as le}from"./index-DXEGVToZ.js";import{u as ne}from"./usePaging-DFi_nJOG.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./@element-plus-DRBc1Xzw.js";import"./dayjs-CMfar2R3.js";import"./balanced-match-mNcR6oh4.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./index-CdmO5-Ss.js";import"./nprogress-Cgf5DU8x.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";const re={class:"flex justify-end mt-4"},ie=k({name:"consumerLists"}),Ze=k({...ie,setup(se){const n=G({keyword:"",channel:"",create_time_start:"",create_time_end:""}),{pager:i,getLists:p,resetPage:c,resetParams:C}=ne({fetchFun:w,params:n});return J(()=>{p()}),p(),(me,o)=>{const h=K,m=q,V=Z,y=D,E=M,d=N,x=H,T=O,f=R,L=$,r=A,U=Q("router-link"),B=I,P=j,z=W("perms"),F=S;return s(),g("div",null,[e(f,{class:"!border-none",shadow:"never"},{default:l(()=>[e(T,{ref:"formRef",class:"mb-[-16px]",model:t(n),inline:!0},{default:l(()=>[e(m,{label:"用户信息"},{default:l(()=>[e(h,{class:"w-[280px]",modelValue:t(n).keyword,"onUpdate:modelValue":o[0]||(o[0]=a=>t(n).keyword=a),placeholder:"账号/昵称/手机号码",clearable:"",onKeyup:X(t(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"注册时间"},{default:l(()=>[e(V,{startTime:t(n).create_time_start,"onUpdate:startTime":o[1]||(o[1]=a=>t(n).create_time_start=a),endTime:t(n).create_time_end,"onUpdate:endTime":o[2]||(o[2]=a=>t(n).create_time_end=a)},null,8,["startTime","endTime"])]),_:1}),e(m,{label:"注册来源",class:"w-[280px]"},{default:l(()=>[e(E,{modelValue:t(n).channel,"onUpdate:modelValue":o[3]||(o[3]=a=>t(n).channel=a)},{default:l(()=>[(s(!0),g(Y,null,ee(t(ae),(a,b)=>(s(),_(y,{key:b,label:a,value:b},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,null,{default:l(()=>[e(d,{type:"primary",onClick:t(c)},{default:l(()=>o[5]||(o[5]=[u("查询")])),_:1},8,["onClick"]),e(d,{onClick:t(C)},{default:l(()=>o[6]||(o[6]=[u("重置")])),_:1},8,["onClick"]),e(x,{class:"ml-2.5","fetch-fun":t(w),params:t(n),"page-size":t(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(f,{class:"!border-none mt-4",shadow:"never"},{default:l(()=>[v((s(),_(B,{size:"large",data:t(i).lists},{default:l(()=>[e(r,{label:"头像","min-width":"100"},{default:l(({row:a})=>[e(L,{src:a.avatar,size:50},null,8,["src"])]),_:1}),e(r,{label:"昵称",prop:"nickname","min-width":"100"}),e(r,{label:"账号",prop:"account","min-width":"120"}),e(r,{label:"手机号码",prop:"mobile","min-width":"100"}),e(r,{label:"注册来源",prop:"channel","min-width":"100"}),e(r,{label:"注册时间",prop:"create_time","min-width":"120"}),e(r,{label:"操作",width:"120",fixed:"right"},{default:l(({row:a})=>[v((s(),_(d,{type:"primary",link:""},{default:l(()=>[e(U,{to:{path:t(le)("user.user/detail"),query:{id:a.id}}},{default:l(()=>o[7]||(o[7]=[u(" 详情 ")])),_:2},1032,["to"])]),_:2},1024)),[[z,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])),[[F,t(i).loading]]),te("div",re,[e(P,{modelValue:t(i),"onUpdate:modelValue":o[4]||(o[4]=a=>oe(i)?i.value=a:null),onChange:t(p)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Ze as default};
