var g=(h,s,e)=>new Promise((m,r)=>{var c=t=>{try{i(e.next(t))}catch(a){r(a)}},d=t=>{try{i(e.throw(t))}catch(a){r(a)}},i=t=>t.done?m(t.value):Promise.resolve(t.value).then(c,d);i((e=e.apply(h,s)).next())});import{d as I,p as y,f as _,U as w,a2 as v,ad as k,af as n,k as l,a4 as N,u as x,G as S,a5 as T,a6 as P}from"./vue-vendor-CxLCUzY4.js";import{C as R}from"./index-Cy4uayzW.js";import{l as z,p as B,_ as V}from"./DepartLeftTree-UJ8tUNDo.js";import"./index-gyz1IdHU.js";import{useListPage as j}from"./useListPage-TMORxSEa.js";import D from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./depart.user.api-BbJ42Ps1.js";import"./componentMap-0iK4HQBq.js";import"./useFormItem-IOFWTdED.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";import"./injectionKey-DPVn4AgL.js";const F=[{title:"姓名",dataIndex:"realname",width:150},{title:"工号",dataIndex:"workNo",width:100},{title:"部门",dataIndex:"departName",width:200},{title:"职务",dataIndex:"post",width:150,slots:{customRender:"post"}},{title:"手机",width:150,dataIndex:"telephone"},{title:"邮箱",width:150,dataIndex:"email"}],K=[{label:"姓名",field:"realname",component:"Input",colProps:{span:6}},{label:"工号",field:"workNo",component:"Input",colProps:{span:6}}],L={style:{height:"100%"},class:"address-book"},Ut=I({__name:"index",setup(h){const{prefixCls:s}=R("address-list");y("prefixCls",s);const e=_(),m=_(""),r=_({}),{tableContext:c}=j({tableProps:{api:z,columns:F,rowKey:"userId",showIndexColumn:!0,formConfig:{schemas:K},canResize:!1,actionColumn:null,showTableSetting:!1,beforeFetch(o){o.orgCode=m.value}}}),[d,{reload:i}]=c;function t(o){m.value=o.orgCode,i()}function a(){return g(this,null,function*(){const o=yield B({pageSize:99999});if(o){let f={};o.records.forEach(p=>{f[p.id]=p.name}),r.value=f}})}return a(),(o,f)=>{const p=w("a-col"),C=w("a-row");return v(),k(C,{class:P(["p-4",`${x(s)}--box`]),type:"flex",gutter:10,style:{"max-height":"800px"}},{default:n(()=>[l(p,{xl:6,lg:24,md:24,style:{"margin-bottom":"10px"}},{default:n(()=>[l(V,{ref_key:"leftTree",ref:e,onSelect:t},null,512)]),_:1}),l(p,{xl:18,lg:24,md:24,style:{"margin-bottom":"10px"}},{default:n(()=>[N("div",L,[l(x(D),{onRegister:x(d)},{post:n(({text:b})=>[S(T((b||"").split(",").map(u=>r.value[u]?r.value[u]:u).join(",")),1)]),_:1},8,["onRegister"])])]),_:1})]),_:1},8,["class"])}}});export{Ut as default};
