moreShopAdmin/dist/admin/assets/indexList.d6af0519.js

2 lines
5.0 KiB
JavaScript

import{C as N,D as P,w as R,F as S,L as $,M as T,b as j,N as M,O as q}from"./element-plus.78e68aed.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{d as E,s as Q,r as h,Z,o as d,c as z,U as o,L as a,u as e,aa as _,R as D,M as G,K as C,a as g,j as H,Q as J}from"./@vue.18505fe0.js";import{u as W}from"./usePaging.6a6670f9.js";import{u as X}from"./useDictOptions.7b30efd5.js";import{h as Y}from"./index.2b30fcbd.js";import"./lodash.60201f64.js";import{_ as oo}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.9215527a.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.0e9dc428.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const eo={class:"mt-4"},lo={class:"flex mt-4 justify-end"},to=E({name:"userList"}),Oo=E({...to,setup(ao){const y=Q(),f=h(!1),n=Z({nickname:"",account:"",mobile:""}),B=h([]),V=w=>{B.value=w.map(({id:u})=>u)},{dictData:p}=X("sex,system_disable"),{pager:s,getLists:m,resetParams:k,resetPage:r}=W({fetchFun:Y,params:n});return m(),(w,u)=>{const c=N,i=P,b=R,x=S,v=$,l=T,K=j,F=O,L=M,U=A,I=q;return d(),z("div",null,[o(v,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(x,{class:"mb-[-16px]",model:e(n),inline:""},{default:a(()=>[o(i,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:a(()=>[o(c,{class:"w-[280px]",modelValue:e(n).nickname,"onUpdate:modelValue":u[0]||(u[0]=t=>e(n).nickname=t),onKeydown:_(e(r),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(i,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:a(()=>[o(c,{class:"w-[280px]",modelValue:e(n).account,"onUpdate:modelValue":u[1]||(u[1]=t=>e(n).account=t),onKeydown:_(e(r),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),o(i,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:a(()=>[o(c,{class:"w-[280px]",modelValue:e(n).mobile,"onUpdate:modelValue":u[2]||(u[2]=t=>e(n).mobile=t),onKeydown:_(e(r),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),o(i,null,{default:a(()=>[o(b,{type:"primary",onClick:e(r)},{default:a(()=>[D("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(b,{onClick:e(k)},{default:a(()=>[D("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),G((d(),C(v,{class:"!border-none",shadow:"never"},{default:a(()=>[g("div",eo,[o(L,{data:e(s).lists,onSelectionChange:V},{default:a(()=>[o(l,{type:"selection",width:"55"}),o(l,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(l,{label:"\u5934\u50CF",prop:"avatar","show-overflow-tooltip":""},{default:a(({row:t})=>[o(K,{src:t.avatar},null,8,["src"])]),_:1}),o(l,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name","show-overflow-tooltip":""}),o(l,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","show-overflow-tooltip":""}),o(l,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","show-overflow-tooltip":""}),o(l,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","show-overflow-tooltip":""}),o(l,{label:"\u7528\u6237\u6027\u522B",prop:"sex"},{default:a(({row:t})=>[o(F,{options:e(p).sex,value:t.sex},null,8,["options","value"])]),_:1}),o(l,{label:"\u6CE8\u518C\u6E20\u9053",prop:"channel","show-overflow-tooltip":""}),o(l,{label:"\u662F\u5426\u7981\u7528",prop:"is_disable"},{default:a(({row:t})=>[o(F,{options:e(p).system_disable,value:t.is_disable},null,8,["options","value"])]),_:1}),o(l,{label:"\u6700\u540E\u767B\u5F55IP",prop:"login_ip","show-overflow-tooltip":""}),o(l,{label:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",prop:"login_time","show-overflow-tooltip":""}),o(l,{label:"\u7528\u6237\u4F59\u989D",prop:"user_money","show-overflow-tooltip":""}),o(l,{label:"\u7D2F\u8BA1\u5145\u503C",prop:"total_recharge_amount","show-overflow-tooltip":""})]),_:1},8,["data"])]),g("div",lo,[o(U,{modelValue:e(s),"onUpdate:modelValue":u[3]||(u[3]=t=>H(s)?s.value=t:null),onChange:e(m)},null,8,["modelValue","onChange"])])]),_:1})),[[I,e(s).loading]]),e(f)?(d(),C(oo,{key:0,ref_key:"editRef",ref:y,"dict-data":e(p),onSuccess:e(m),onClose:u[4]||(u[4]=t=>f.value=!1)},null,8,["dict-data","onSuccess"])):J("",!0)])}}});export{Oo as default};