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

2 lines
5.5 KiB
JavaScript
Raw Normal View History

2024-06-05 09:03:47 +08:00
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