2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{B as P,C as A,Q as K,R as N,w as R,D as $,I,L as M,o as j,M as q,N as S}from"./element-plus.54aed4cc.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.fccb4113.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.e03814eb.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.6593fe88.js";import{d as h,$ as H,b0 as J,a4 as W,af as X,o as s,c as b,U as e,L as o,a9 as Y,u as n,V as Z,a7 as ee,M as E,K as _,a as te,k as oe,S as d}from"./@vue.e8706010.js";import{u as ae}from"./usePaging.160b82b8.js";import{C as ne,j as le}from"./index.58a5fcc1.js";import{b as F}from"./consumer.950fa60f.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.f1e4cccc.js";import"./axios.d363e68d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a3400ab9.js";import"./lodash.c4b79a6f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.3c571821.js";import"./color.0ff1625c.js";import"./clone.78cb864b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a0babc59.js";import"./ms.a9ae1d6d.js";import"./nprogress.046b2704.js";import"./vue-clipboard3.8c1c7368.js";import"./clipboard.5f2f245e.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const re=d("\u67E5\u8BE2"),ie=d("\u91CD\u7F6E"),se=d(" \u8BE6\u60C5 "),me={class:"flex justify-end mt-4"},ue=h({name:"consumerLists"}),Ze=h({...ue,setup(pe){const a=H({keyword:"",channel:"",create_time_start:"",create_time_end:""}),{pager:i,getLists:u,resetPage:c,resetParams:g}=ae({fetchFun:F,params:a});return J(()=>{u()}),u(),(_e,l)=>{const v=P,m=A,w=G,k=K,V=N,p=R,y=Q,x=$,f=I,r=M,B=j,T=W("router-link"),L=q,U=O,D=X("perms"),z=S;return s(),b("div",null,[e(f,{class:"!border-none",shadow:"never"},{default:o(()=>[e(x,{ref:"formRef",class:"mb-[-16px]",model:a,inline:!0},{default:o(()=>[e(m,{label:"\u7528\u6237\u4FE1\u606F"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:a.keyword,"onUpdate:modelValue":l[0]||(l[0]=t=>a.keyword=t),placeholder:"\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7\u7801",clearable:"",onKeyup:Y(n(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u6CE8\u518C\u65F6\u95F4"},{default:o(()=>[e(w,{startTime:a.create_time_start,"onUpdate:startTime":l[1]||(l[1]=t=>a.create_time_start=t),endTime:a.create_time_end,"onUpdate:endTime":l[2]||(l[2]=t=>a.create_time_end=t)},null,8,["startTime","endTime"])]),_:1}),e(m,{label:"\u6CE8\u518C\u6765\u6E90"},{default:o(()=>[e(V,{class:"w-[280px]",modelValue:a.channel,"onUpdate:modelValue":l[3]||(l[3]=t=>a.channel=t)},{default:o(()=>[(s(!0),b(Z,null,ee(n(ne),(t,C)=>(s(),_(k,{key:C,label:t,value:C},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,null,{default:o(()=>[e(p,{type:"primary",onClick:n(c)},{default:o(()=>[re]),_:1},8,["onClick"]),e(p,{onClick:n(g)},{default:o(()=>[ie]),_:1},8,["onClick"]),e(y,{class:"ml-2.5","fetch-fun":n(F),params:a,"page-size":n(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(f,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[E((s(),_(L,{size:"large",data:n(i).lists},{default:o(()=>[e(r,{label:"\u7528\u6237\u7F16\u53F7",prop:"sn","min-width":"120"}),e(r,{label:"\u5934\u50CF","min-width":"100"},{default:o(({row:t})=>[e(B,{src:t.avatar,size:50},null,8,["src"])]),_:1}),e(r,{label:"\u6635\u79F0",prop:"nickname","min-width":"100"}),e(r,{label:"\u8D26\u53F7",prop:"account","min-width":"120"}),e(r,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile","min-width":"100"}),e(r,{label:"\u6CE8\u518C\u6765\u6E90",prop:"channel","min-width":"100"}),e(r,{label:"\u6CE8\u518C\u65F6\u95F4",prop:"create_time","min-width":"120"}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:t})=>[E((s(),_(p,{type:"primary",link:""},{default:o(()=>[e(T,{to:{path:n(le)("user.user/detail"),query:{id:t.id}}},{default:o(()=>[se]),_:2},1032,["to"])]),_:2},1024)),[[D,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])),[[z,n(i).loading]]),te("div",me,[e(U,{modelValue:n(i),"onUpdate:modelValue":l[4]||(l[4]=t=>oe(i)?i.value=t:null),onChange:n(u)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Ze as default};
|