multiStoreAdmin/dist/store/assets/index.54c6fbaa.js

2 lines
4.4 KiB
JavaScript

import{C as z,D as A,Q as N,R,w as j,F as I,I as K,o as M,L as $,M as q,N as O}from"./element-plus.eb2e53ea.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.f75f9565.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.93b91151.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.214e2a43.js";import{d as g,a0 as G,bd as H,af as J,am as X,o as s,c as b,W as e,O as a,u as t,a8 as Y,V as Z,a7 as ee,M as _,T as d,P as E,a as te,j as oe}from"./@vue.c3e77981.js";import{u as ae}from"./usePaging.d25ebf19.js";import{C as le,j as ne}from"./index.33b7474b.js";import{b as F}from"./consumer.2398cfea.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.906920ed.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const re={class:"flex justify-end mt-4"},ie=g({name:"consumerLists"}),Ge=g({...ie,setup(se){const l=G({keyword:"",channel:"",create_time_start:"",create_time_end:""}),{pager:i,getLists:u,resetPage:c,resetParams:v}=ae({fetchFun:F,params:l});return H(()=>{u()}),u(),(me,n)=>{const w=z,m=A,h=W,k=N,V=R,p=j,y=S,x=I,f=K,T=M,r=$,B=J("router-link"),D=q,L=Q,P=X("perms"),U=O;return s(),b("div",null,[e(f,{class:"!border-none",shadow:"never"},{default:a(()=>[e(x,{ref:"formRef",class:"mb-[-16px]",model:t(l),inline:!0},{default:a(()=>[e(m,{label:"\u7528\u6237\u4FE1\u606F"},{default:a(()=>[e(w,{class:"w-[280px]",modelValue:t(l).keyword,"onUpdate:modelValue":n[0]||(n[0]=o=>t(l).keyword=o),placeholder:"\u8D26\u53F7/\u6635\u79F0/\u624B\u673A\u53F7\u7801",clearable:"",onKeyup:Y(t(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u6CE8\u518C\u65F6\u95F4"},{default:a(()=>[e(h,{startTime:t(l).create_time_start,"onUpdate:startTime":n[1]||(n[1]=o=>t(l).create_time_start=o),endTime:t(l).create_time_end,"onUpdate:endTime":n[2]||(n[2]=o=>t(l).create_time_end=o)},null,8,["startTime","endTime"])]),_:1}),e(m,{label:"\u6CE8\u518C\u6765\u6E90"},{default:a(()=>[e(V,{class:"w-[280px]",modelValue:t(l).channel,"onUpdate:modelValue":n[3]||(n[3]=o=>t(l).channel=o)},{default:a(()=>[(s(!0),b(Z,null,ee(t(le),(o,C)=>(s(),_(k,{key:C,label:o,value:C},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,null,{default:a(()=>[e(p,{type:"primary",onClick:t(c)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:t(v)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(y,{class:"ml-2.5","fetch-fun":t(F),params:t(l),"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:a(()=>[E((s(),_(D,{size:"large",data:t(i).lists},{default:a(()=>[e(r,{label:"\u5934\u50CF","min-width":"100"},{default:a(({row:o})=>[e(T,{src:o.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:a(({row:o})=>[E((s(),_(p,{type:"primary",link:""},{default:a(()=>[e(B,{to:{path:t(ne)("user.user/detail"),query:{id:o.id}}},{default:a(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["to"])]),_:2},1024)),[[P,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])),[[U,t(i).loading]]),te("div",re,[e(L,{modelValue:t(i),"onUpdate:modelValue":n[4]||(n[4]=o=>oe(i)?i.value=o:null),onChange:t(u)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{Ge as default};