moreShopAdmin/build/admin/assets/index.1989ee3c.js

2 lines
5.5 KiB
JavaScript

import{C as T,D as j,w as A,F as M,L as q,M as z,b as K,N as O,O as Q}from"./element-plus.1e96d4ee.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.272adef5.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import{u as H}from"./usePaging.6a6670f9.js";import{u as J}from"./useDictOptions.e14923a1.js";import{f as W,z as X,B as Y}from"./index.8ad484bc.js";import"./lodash.60201f64.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.22b2b4d6.js";import{d as E,s as oe,r as k,Z as le,ap as te,o as p,c as ae,U as e,L as t,u as o,R as _,M as F,K as f,a as g,j as ue,Q as se,n as ne}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.f7cd38f9.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ie={class:"mt-4"},re={class:"flex mt-4 justify-end"},pe=E({name:"userLists"}),Je=E({...pe,setup(me){const b=oe(),v=k(!1),s=le({nickname:"",account:"",mobile:""}),B=k([]),V=n=>{B.value=n.map(({id:a})=>a)},{dictData:w}=J("sex,system_disable"),{pager:r,getLists:m,resetParams:x,resetPage:y}=H({fetchFun:Y,params:s}),U=async n=>{var a,i;v.value=!0,await ne(),(a=b.value)==null||a.open("edit"),(i=b.value)==null||i.setFormData(n)},L=async n=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:n}),m()};return m(),(n,a)=>{const i=T,c=j,d=A,$=M,h=q,u=z,I=K,C=G,N=O,P=Z,D=te("perms"),R=Q;return p(),ae("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:o(s),inline:""},{default:t(()=>[e(c,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:o(s).nickname,"onUpdate:modelValue":a[0]||(a[0]=l=>o(s).nickname=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:o(s).account,"onUpdate:modelValue":a[1]||(a[1]=l=>o(s).account=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:o(s).mobile,"onUpdate:modelValue":a[2]||(a[2]=l=>o(s).mobile=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(d,{type:"primary",onClick:o(y)},{default:t(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:o(x)},{default:t(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((p(),f(h,{class:"!border-none",shadow:"never"},{default:t(()=>[g("div",ie,[e(N,{data:o(r).lists,onSelectionChange:V},{default:t(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u5934\u50CF",prop:"avatar","show-overflow-tooltip":""},{default:t(({row:l})=>[e(I,{src:l.avatar},null,8,["src"])]),_:1}),e(u,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237\u6027\u522B",prop:"sex"},{default:t(({row:l})=>[e(C,{options:o(w).sex,value:l.sex},null,8,["options","value"])]),_:1}),e(u,{label:"\u6CE8\u518C\u6E20\u9053",prop:"channel","show-overflow-tooltip":""}),e(u,{label:"\u662F\u5426\u7981\u7528",prop:"is_disable"},{default:t(({row:l})=>[e(C,{options:o(w).system_disable,value:l.is_disable},null,8,["options","value"])]),_:1}),e(u,{label:"\u6700\u540E\u767B\u5F55IP",prop:"login_ip","show-overflow-tooltip":""}),e(u,{label:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",prop:"login_time","show-overflow-tooltip":""}),e(u,{label:"\u7528\u6237\u4F59\u989D",prop:"user_money","show-overflow-tooltip":""}),e(u,{label:"\u7D2F\u8BA1\u5145\u503C",prop:"total_recharge_amount","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[F((p(),f(d,{type:"primary",link:"",onClick:S=>U(l)},{default:t(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[D,["user.user/edit"]]]),F((p(),f(d,{type:"danger",link:"",onClick:S=>L(l.id)},{default:t(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[D,["user.user/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",re,[e(P,{modelValue:o(r),"onUpdate:modelValue":a[3]||(a[3]=l=>ue(r)?r.value=l:null),onChange:o(m)},null,8,["modelValue","onChange"])])]),_:1})),[[R,o(r).loading]]),o(v)?(p(),f(ee,{key:0,ref_key:"editRef",ref:b,"dict-data":o(w),onSuccess:o(m),onClose:a[4]||(a[4]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{Je as default};