import{a2 as E,a3 as L,C as p,X as b}from"./index.Df8UJ10K.js";import{c as D,G as N}from"./crud.DfJUD0f0.js";import{g as j}from"./index.es.DmevZXPX.js";import{a as f,r as e,w as G,q as d,aj as t,J as K,o as m,K as a,S as r,H as M,c as O,M as T,u,ai as U}from"./vue.D1BjjNmv.js";import{_ as V}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./dictionary.BEN7awPC.js";import"./authFunction.Cmg2kwFe.js";import"./md5.DLPczxzP.js";import"./commonCrud.CrA7L57K.js";const X={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},q=f({name:"user"}),A=f({...q,setup(H){j(U),e("请输入部门名称");const g=e(""),h=e();G(g,o=>{h.value.filter(o)});let v=e([]);const x=()=>{N({}).then(o=>{const _=o.data,n=b.toArrayTree(_,{parentKey:"parent",children:"children"});v.value=n})};d(()=>{x()});const l=e(),i=e(),{crudExpose:s}=E({crudRef:l,crudBinding:i}),{crudOptions:w}=D({crudExpose:s});return L({crudExpose:s,crudOptions:w}),d(()=>{s.doRefresh()}),(o,_)=>{const n=t("el-image"),y=t("fs-crud"),C=t("el-card"),k=t("el-col"),B=t("el-row"),R=t("fs-page");return m(),K(R,null,{default:a(()=>[r(B,{class:"mx-2"},{default:a(()=>[r(k,{xs:"24",sm:24,md:24,lg:24,xl:24,class:"p-1"},{default:a(()=>[r(C,{"body-style":{height:"100%"}},{default:a(()=>[r(y,M({ref_key:"crudRef",ref:l},i.value),{cell_avatar:a(c=>[c.row.avatar?(m(),O("div",X,[r(n,{style:{width:"50px",height:"50px","border-radius":"50%","aspect-ratio":"1 /1"},src:u(p)(c.row.avatar),"preview-src-list":[u(p)(c.row.avatar)],"preview-teleported":!0},null,8,["src","preview-src-list"])])):T("",!0)]),_:1},16)]),_:1})]),_:1})]),_:1})]),_:1})}}}),Z=V(A,[["__scopeId","data-v-211c15d8"]]);export{Z as default};
