moreShopAdmin/dist/admin/assets/indexList.718ead41.js

2 lines
6.0 KiB
JavaScript

import{C as j,D as A,w as M,F as q,L as O,M as Q,o as Z,N as z,O as G}from"./element-plus.ea2cdc63.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.9926caf5.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{d as g,r as w,s as W,Z as X,ap as Y,o as p,c as ee,U as e,L as u,u as o,aa as y,R as _,M as h,K as f,a as E,j as oe,Q as ae,n as te}from"./@vue.18505fe0.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.6e911004.js";import{h as ne}from"./index.af73db67.js";import"./lodash.60201f64.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.759767c9.js";import{_ as se}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.73ccd385.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.8bb6b5d5.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./user_label.1b8992c3.js";import"./purchase.vue_vue_type_script_setup_true_name_userLabelLists_lang.9c27aaaf.js";import"./balance.vue_vue_type_script_setup_true_name_userLabelLists_lang.893f3fac.js";import"./merchandise.vue_vue_type_script_setup_true_name_userLabelLists_lang.df23048a.js";import"./returnMoney.vue_vue_type_script_setup_true_name_userLabelLists_lang.5b05cde6.js";const ie={class:"mt-4"},pe={class:"flex mt-4 justify-end"},me=g({name:"userList"}),to=g({...me,setup(de){const b=w(null),v=W(),C=w(!1),r=X({nickname:"",account:"",mobile:""}),V=w([]),x=s=>{V.value=s.map(({id:a})=>a)},{dictData:D}=ue("sex,system_disable"),{pager:i,getLists:F,resetParams:K,resetPage:m}=le({fetchFun:ne,params:r}),R=async s=>{var a,n;C.value=!0,await te(),(a=v.value)==null||a.open("edit"),(n=v.value)==null||n.setFormData(s)},$=async s=>{var a,n;(a=b.value)==null||a.open(),(n=b.value)==null||n.setFormData(s)};return F(),(s,a)=>{const n=j,d=A,c=M,L=q,k=O,t=Q,U=Z,N=J,P=z,S=H,B=Y("perms"),T=G;return p(),ee("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(L,{class:"mb-[-16px]",model:o(r),inline:""},{default:u(()=>[e(d,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:u(()=>[e(n,{class:"w-[280px]",modelValue:o(r).nickname,"onUpdate:modelValue":a[0]||(a[0]=l=>o(r).nickname=l),onKeydown:y(o(m),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:u(()=>[e(n,{class:"w-[280px]",modelValue:o(r).account,"onUpdate:modelValue":a[1]||(a[1]=l=>o(r).account=l),onKeydown:y(o(m),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:u(()=>[e(n,{class:"w-[280px]",modelValue:o(r).mobile,"onUpdate:modelValue":a[2]||(a[2]=l=>o(r).mobile=l),onKeydown:y(o(m),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,null,{default:u(()=>[e(c,{type:"primary",onClick:o(m)},{default:u(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:o(K)},{default:u(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),h((p(),f(k,{class:"!border-none",shadow:"never"},{default:u(()=>[E("div",ie,[e(P,{data:o(i).lists,onSelectionChange:x},{default:u(()=>[e(t,{label:"ID",prop:"id","min-width":"55"}),e(t,{label:"\u5934\u50CF",prop:"avatar","show-overflow-tooltip":""},{default:u(({row:l})=>[e(U,{src:l.avatar},null,8,["src"])]),_:1}),e(t,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"}),e(t,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"100"}),e(t,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","min-width":"100"}),e(t,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","min-width":"100"}),e(t,{label:"\u7528\u6237\u6027\u522B",prop:"sex"},{default:u(({row:l})=>[e(N,{options:o(D).sex,value:l.sex},null,8,["options","value"])]),_:1}),e(t,{label:"\u6CE8\u518C\u6E20\u9053",prop:"channel"}),e(t,{label:"\u7528\u6237\u7C7B\u578B",prop:"vip_name"}),e(t,{label:"\u7528\u6237\u6807\u7B7E",prop:"label_name"}),e(t,{label:"\u793C\u54C1\u5238",prop:"integral"}),e(t,{label:"\u8FD4\u8FD8\u91D1",prop:"return_money"}),e(t,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),e(t,{label:"\u7528\u6237\u4F59\u989D",prop:"user_money"}),e(t,{label:"\u7D2F\u8BA1\u5145\u503C",prop:"total_recharge_amount"}),e(t,{label:"\u5730\u5740",prop:"user_address"}),e(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:l})=>[h((p(),f(c,{type:"primary",link:"",onClick:I=>R(l)},{default:u(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[B,["user.user/edit"]]]),h((p(),f(c,{type:"primary",link:"",onClick:I=>$(l)},{default:u(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[B,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])]),E("div",pe,[e(S,{modelValue:o(i),"onUpdate:modelValue":a[3]||(a[3]=l=>oe(i)?i.value=l:null),onChange:o(F)},null,8,["modelValue","onChange"])])]),_:1})),[[T,o(i).loading]]),e(se,{ref_key:"detailsRef",ref:b,"dict-data":o(D)},null,8,["dict-data"]),o(C)?(p(),f(re,{key:0,ref_key:"editRef",ref:v,"dict-data":o(D),onSuccess:o(F),onClose:a[4]||(a[4]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):ae("",!0)])}}});export{to as default};