2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
import{C as Q,D as q,K as M,L as Z,w as z,F as G,T as H,O as J,b as W,Q as X,R as Y}from"./element-plus.681b9893.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{j as te,f as oe,m as ae,b as le,i as ue}from"./index.0c8416f0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.b307efcf.js";import{d as U,s as ne,r as V,Z as re,ap as pe,o as n,c as x,U as e,L as a,u as o,T as me,a9 as de,K as p,R as c,M as f,a as C,S as ce,j as _e,Q as fe,n as B}from"./@vue.18505fe0.js";import"./lodash.466e9fe4.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.9f6729df.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.e5caaa2a.js";import"./index.a7179cc9.js";import"./index.aa6e526e.js";import"./index.e954b8f4.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";const ve={class:"mt-4"},Fe={class:"flex mt-4 justify-end"},we=U({name:"userLists"}),Bt=U({...we,setup(De){const b=ne(),v=V(!1),u=re({nickname:"",account:"",mobile:"",is_disable:""}),D=V([]),L=i=>{D.value=i.map(({id:l})=>l)},{dictData:g}=se("sex_type,system_disable"),{pager:_,getLists:F,resetParams:S,resetPage:$}=ie({fetchFun:ue,params:u}),R=async()=>{var i;v.value=!0,await B(),(i=b.value)==null||i.open("add")},T=async i=>{var m,r;let l=await te({id:i.id});v.value=!0,await B(),(m=b.value)==null||m.open("edit"),(r=b.value)==null||r.setFormData(l)},h=async i=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:i}),F()};return F(),(i,l)=>{const m=Q,r=q,y=M,P=Z,d=z,I=G,E=H,N=le,s=J,j=W,A=X,K=ee,w=pe("perms"),O=Y;return n(),x("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(I,{class:"mb-[-16px]",model:o(u),inline:""},{default:a(()=>[e(r,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:o(u).nickname,"onUpdate:modelValue":l[0]||(l[0]=t=>o(u).nickname=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:o(u).account,"onUpdate:modelValue":l[1]||(l[1]=t=>o(u).account=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:o(u).mobile,"onUpdate:modelValue":l[2]||(l[2]=t=>o(u).mobile=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u662F\u5426\u7981\u7528",prop:"is_disable"},{default:a(()=>[e(P,{class:"w-[280px]",modelValue:o(u).is_disable,"onUpdate:modelValue":l[3]||(l[3]=t=>o(u).is_disable=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7981\u7528"},{default:a(()=>[e(y,{label:"\u5168\u90E8",value:""}),(n(!0),x(me,null,de(o(g).system_disable,(t,k)=>(n(),p(y,{key:k,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:a(()=>[e(d,{type:"primary",onClick:o($)},{default:a(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:o(S)},{default:a(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),p(E,{class:"!border-none",shadow:"never"},{default:a(()=>[f((n(),p(d,{type:"primary",onClick:R},{icon:a(()=>[e(N,{name:"el-icon-Plus"})]),default:a(()=>[c(" \u65B0\u589E ")]),_:1})),[[w,["user.user/add"]]]),f((n(),p(d,{disabled:!o(D).length,onClick:l[4]||(l[4]=t=>h(o(D)))},{default:a(()=>[c(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["user.user/delete"]]]),C("div",ve,[e(A,{data:o(_).lists,onSelectionChange:L},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id",width:"100"}),e(s,{label:"\u5934\u50CF",prop:"avatar",width:"60"},{default:a(({row:t})=>[e(j,{src:t.avatar,style:{width:"50px",height:"50px"}},null,8,["src"])]),_:1}),e(s,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237\u6027\u522B",prop:"sex"},{default:a(({row:t})=>[C("span",null,ce(t.sex),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[f((n(),p(d,{type:"primary",link:"",onClick:k=>T(t)},{default:a(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["user.user/edit"]]]),f((n(),p(d,{type:"danger",link:"",onClick:k=>h(t.id)},{default:a(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["user.user/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",Fe,[e(K,{modelValue:o(_),"onUpdate:modelValue":l[5]||(l[5]=t=>_e(_)?_.value=t:null),onChange:o(F)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(_).loading]]),o(v)?(n(),p(be,{key:0,ref_key:"editRef",ref:b,"dict-data":o(g),onSuccess:o(F),onClose:l[6]||(l[6]=t=>v.value=!1)},null,8,["dict-data","onSuccess"])):fe("",!0)])}}});export{Bt as default};
|