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

2 lines
4.9 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 K}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{u as O}from"./usePaging.6a6670f9.js";import{u as Q}from"./useDictOptions.d977dd94.js";import{h as Z}from"./index.de0baa52.js";import"./lodash.60201f64.js";import{_ as z}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.f694bade.js";import{d as C,s as G,r as v,Z as H,o as c,c as J,U as o,L as a,u as e,R as F,M as W,K as h,a as D,j as X,Q as Y}from"./@vue.18505fe0.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.d2805ba2.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const oo={class:"mt-4"},eo={class:"flex mt-4 justify-end"},lo=C({name:"userList"}),Ko=C({...lo,setup(to){const g=G(),d=v(!1),s=H({nickname:"",account:"",mobile:""}),E=v([]),B=_=>{E.value=_.map(({id:u})=>u)},{dictData:i}=Q("sex,system_disable"),{pager:n,getLists:p,resetParams:V,resetPage:k}=O({fetchFun:Z,params:s});return p(),(_,u)=>{const m=N,r=P,f=R,x=S,b=$,l=T,y=j,w=K,L=M,U=A,I=q;return c(),J("div",null,[o(b,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(x,{class:"mb-[-16px]",model:e(s),inline:""},{default:a(()=>[o(r,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:a(()=>[o(m,{class:"w-[280px]",modelValue:e(s).nickname,"onUpdate:modelValue":u[0]||(u[0]=t=>e(s).nickname=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue"])]),_:1}),o(r,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:a(()=>[o(m,{class:"w-[280px]",modelValue:e(s).account,"onUpdate:modelValue":u[1]||(u[1]=t=>e(s).account=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),o(r,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:a(()=>[o(m,{class:"w-[280px]",modelValue:e(s).mobile,"onUpdate:modelValue":u[2]||(u[2]=t=>e(s).mobile=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),o(r,null,{default:a(()=>[o(f,{type:"primary",onClick:e(k)},{default:a(()=>[F("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(f,{onClick:e(V)},{default:a(()=>[F("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),W((c(),h(b,{class:"!border-none",shadow:"never"},{default:a(()=>[D("div",oo,[o(L,{data:e(n).lists,onSelectionChange:B},{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(y,{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(w,{options:e(i).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(w,{options:e(i).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"])]),D("div",eo,[o(U,{modelValue:e(n),"onUpdate:modelValue":u[3]||(u[3]=t=>X(n)?n.value=t:null),onChange:e(p)},null,8,["modelValue","onChange"])])]),_:1})),[[I,e(n).loading]]),e(d)?(c(),h(z,{key:0,ref_key:"editRef",ref:g,"dict-data":e(i),onSuccess:e(p),onClose:u[4]||(u[4]=t=>d.value=!1)},null,8,["dict-data","onSuccess"])):Y("",!0)])}}});export{Ko as default};