2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
import{C as I,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.e226cbd2.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.11f62324.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 m,c as ee,U as e,L as u,u as o,aa as y,R as p,M as k,K as f,a as E,S as oe,j as ae,Q as te,n as le}from"./@vue.18505fe0.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.327e6c47.js";import{j as re}from"./index.bcc0f007.js";import"./lodash.60201f64.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.10c5fda1.js";import{_ as ie}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.eb7917c5.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.c6f2e1d0.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./user_label.435934e7.js";import"./purchase.vue_vue_type_script_setup_true_name_userLabelLists_lang.e4696c6b.js";import"./balance.vue_vue_type_script_setup_true_name_userLabelLists_lang.b635174e.js";import"./merchandise.vue_vue_type_script_setup_true_name_userLabelLists_lang.333935d3.js";import"./returnMoney.vue_vue_type_script_setup_true_name_userLabelLists_lang.e2f922e1.js";const me={class:"mt-4"},pe={class:"flex mt-4 justify-end"},de=g({name:"userList"}),lo=g({...de,setup(ce){const b=w(null),v=W(),D=w(!1),r=X({nickname:"",account:"",mobile:""}),x=w([]),V=s=>{x.value=s.map(({id:a})=>a)},{dictData:C}=ne("sex,system_disable"),{pager:i,getLists:F,resetParams:K,resetPage:d}=ue({fetchFun:re,params:r}),R=async s=>{var a,n;D.value=!0,await le(),(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=I,c=A,_=M,L=q,h=O,t=Q,N=Z,S=J,U=z,P=H,B=Y("perms"),T=G;return m(),ee("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(L,{class:"mb-[-16px]",model:o(r),inline:""},{default:u(()=>[e(c,{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(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:u(()=>[e(n,{class:"w-[280px]",modelValue:o(r).account,"onUpdate:modelValue":a[1]||(a[1]=l=>o(r).account=l),onKeydown:y(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:u(()=>[e(n,{class:"w-[280px]",modelValue:o(r).mobile,"onUpdate:modelValue":a[2]||(a[2]=l=>o(r).mobile=l),onKeydown:y(o(d),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),e(c,null,{default:u(()=>[e(_,{type:"primary",onClick:o(d)},{default:u(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(_,{onClick:o(K)},{default:u(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),k((m(),f(h,{class:"!border-none",shadow:"never"},{default:u(()=>[E("div",me,[e(U,{data:o(i).lists,onSelectionChange:V},{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(N,{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(S,{options:o(C).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"},{default:u(({row:l})=>[p(oe(Number(l.return_money).toFixed(2)),1)]),_:1}),e(t,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),e(t,{label:"\u7528\u6237\u4F59\u989D",prop:"now_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})=>[k((m(),f(_,{type:"primary",link:"",onClick:j=>R(l)},{default:u(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[B,["user.user/edit"]]]),k((m(),f(_,{type:"primary",link:"",onClick:j=>$(l)},{default:u(()=>[p(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[B,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])]),E("div",pe,[e(P,{modelValue:o(i),"onUpdate:modelValue":a[3]||(a[3]=l=>ae(i)?i.value=l:null),onChange:o(F)},null,8,["modelValue","onChange"])])]),_:1})),[[T,o(i).loading]]),e(ie,{ref_key:"detailsRef",ref:b,"dict-data":o(C)},null,8,["dict-data"]),o(D)?(m(),f(se,{key:0,ref_key:"editRef",ref:v,"dict-data":o(C),onSuccess:o(F),onClose:a[4]||(a[4]=l=>D.value=!1)},null,8,["dict-data","onSuccess"])):te("",!0)])}}});export{lo as default};
|