2 lines
5.9 KiB
JavaScript
2 lines
5.9 KiB
JavaScript
import{C as j,D as I,w as A,F as M,L as q,M as O,o as Q,N as Z,O as z}from"./element-plus.7b9d0c0d.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.8b9de773.js";import{d as E,r as C,s as H,Z as J,ap as W,o as m,c as X,U as e,L as l,u as o,aa as w,R as p,M as y,K as f,a as g,S as Y,j as ee,Q as oe,n as te}from"./@vue.18505fe0.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.5cb791df.js";import{j as ne}from"./index.5fb8b8ef.js";import"./lodash.9dc701ad.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.ab3fa38b.js";import{_ as re}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.e0b22ece.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.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.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.5a1016d5.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./user_label.292ccdbe.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./purchase.vue_vue_type_script_setup_true_name_purchase_lang.9d7dc078.js";import"./balance.vue_vue_type_script_setup_true_name_balance_lang.a232f0bb.js";import"./merchandise.vue_vue_type_script_setup_true_name_merchandise_lang.0b3e0581.js";import"./freeze.vue_vue_type_script_setup_true_name_freeze_lang.44657d02.js";import"./returnMoney.vue_vue_type_script_setup_true_name_returnMoney_lang.1f102105.js";import"./receiveGifts.vue_vue_type_script_setup_true_name_receiveGifts_lang.1de90397.js";const ie={class:"mt-4"},se={class:"flex mt-4 justify-end"},me=E({name:"userList"}),lo=E({...me,setup(pe){const b=C(null),D=H(),v=C(!1),r=J({nickname:"",account:"",mobile:""}),V=C([]),x=i=>{V.value=i.map(({id:t})=>t)},{dictData:k}=le("sex,system_disable"),{pager:s,getLists:F,resetParams:K,resetPage:d}=ae({fetchFun:ne,params:r}),R=async i=>{var t,u;v.value=!0,await te(),(t=D.value)==null||t.open("edit"),(u=D.value)==null||u.setFormData(i)},L=async i=>{var t,u;(t=b.value)==null||t.open(),(u=b.value)==null||u.setFormData(i)};return F(),(i,t)=>{const u=j,c=I,_=A,N=M,h=q,n=O,S=Q,U=Z,$=G,B=W("perms"),P=z;return m(),X("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(N,{class:"mb-[-16px]",model:o(r),inline:""},{default:l(()=>[e(c,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:l(()=>[e(u,{class:"w-[280px]",modelValue:o(r).nickname,"onUpdate:modelValue":t[0]||(t[0]=a=>o(r).nickname=a),onKeydown:w(o(d),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(c,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:l(()=>[e(u,{class:"w-[280px]",modelValue:o(r).account,"onUpdate:modelValue":t[1]||(t[1]=a=>o(r).account=a),onKeydown:w(o(d),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),e(c,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:l(()=>[e(u,{class:"w-[280px]",modelValue:o(r).mobile,"onUpdate:modelValue":t[2]||(t[2]=a=>o(r).mobile=a),onKeydown:w(o(d),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),e(c,null,{default:l(()=>[e(_,{type:"primary",onClick:o(d)},{default:l(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:o(K)},{default:l(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),y((m(),f(h,{class:"!border-none",shadow:"never"},{default:l(()=>[g("div",ie,[e(U,{data:o(s).lists,onSelectionChange:x},{default:l(()=>[e(n,{label:"ID",prop:"id","min-width":"55"}),e(n,{label:"\u5934\u50CF",prop:"avatar","show-overflow-tooltip":""},{default:l(({row:a})=>[e(S,{src:a.avatar},null,8,["src"])]),_:1}),e(n,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"}),e(n,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"100"}),e(n,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","min-width":"100"}),e(n,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","min-width":"100"}),e(n,{label:"\u7528\u6237\u7C7B\u578B",prop:"vip_name"}),e(n,{label:"\u793C\u54C1\u5238",prop:"integral"}),e(n,{label:"\u8FD4\u8FD8\u91D1",prop:"return_money"},{default:l(({row:a})=>[p(Y(Number(a.return_money).toFixed(2)),1)]),_:1}),e(n,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),e(n,{label:"\u7528\u6237\u4F59\u989D",prop:"now_money"}),e(n,{label:"\u7D2F\u8BA1\u6D88\u8D39",prop:"total_recharge_amount"}),e(n,{label:"\u5730\u5740",prop:"format_address",width:"150"}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[y((m(),f(_,{type:"primary",link:"",onClick:T=>R(a)},{default:l(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[B,["user.user/edit"]]]),y((m(),f(_,{type:"primary",link:"",onClick:T=>L(a)},{default:l(()=>[p(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[B,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])]),g("div",se,[e($,{modelValue:o(s),"onUpdate:modelValue":t[3]||(t[3]=a=>ee(s)?s.value=a:null),onChange:o(F)},null,8,["modelValue","onChange"])])]),_:1})),[[P,o(s).loading]]),e(re,{ref_key:"detailsRef",ref:b,"dict-data":o(k)},null,8,["dict-data"]),o(v)?(m(),f(ue,{key:0,ref_key:"editRef",ref:D,"dict-data":o(k),onSuccess:o(F),onClose:t[4]||(t[4]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):oe("",!0)])}}});export{lo as default};
|