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-CYriLmQo.js";import{l as z,p as B,_ as V}from"./DepartLeftTree-C7iFUo-x.js";import"./index-BN5Ac_IG.js";import{useListPage as j}from"./useListPage-i3Wl0_Fg.js";import D from"./BasicTable-DAfCfXmD.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./depart.user.api-CYrzDJMj.js";import"./componentMap-7D1QIeNI.js";import"./useFormItem-CWa0w7fA.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.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"},Gt=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{Gt as default};
