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-CLZzJyTP.js";import{l as z,p as B,_ as V}from"./DepartLeftTree-BPAoLJeh.js";import"./index-KOQNKxnC.js";import{useListPage as j}from"./useListPage-CevWQ3ci.js";import D from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./depart.user.api-Bvirj8Bq.js";import"./componentMap-DpsJvoqz.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.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};
