| 1 |
- var g=(h,p,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,p)).next())});import{d as I,p as y,f as _,ag as w,aB as v,ar as k,aD as n,k as l,at as N,u as x,G as S,au as T,as as P}from"./vue-vendor-Be68asQ6.js";import{F as B}from"./index-BFfnEkVs.js";import{_ as R,p as z,l as D}from"./DepartLeftTree-Rnak7X3q.js";import"./index-D2G57Sln.js";import{useListPage as F}from"./useListPage-aOfrd-Tw.js";import V from"./BasicTable-CuSLkXEu.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./depart.user.api-BnXDTdho.js";import"./componentMap-BUTAcOmo.js";import"./useFormItem-CtGMPcLp.js";import"./index-CETWS1o0.js";import"./BasicModal-D4gc2R81.js";import"./useTimeout-Ca5eqGu-.js";import"./useWindowSizeFn-BTSGGcie.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./download-CjoX0_mR.js";import"./base64Conver-24EVOS6V.js";import"./index-D1703ozz.js";import"./index-Bi7PIj53.js";import"./useCountdown-B7iR27pS.js";import"./useFormItemSingle-nLM0QlcI.js";import"./JSelectUser-DCwPqRxp.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";import"./JAddInput-BBXQvvpq.js";import"./areaDataUtil-Cik-Rc_P.js";import"./index-BOEzG86y.js";import"./index-BNFwynfr.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.js";import"./depart.api-CDwTvdwQ.js";import"./JSelectDept-DT6g7V5M.js";import"./JPopup-DKJW27Yk.js";import"./JEllipsis-C04xKxcI.js";import"./JUpload-cB_Qj2H2.js";import"./index-iuayQczx.js";import"./index-DJQB4_Pr.js";import"./index-D68l__AG.js";import"./BasicForm-Cv-dsB-e.js";import"./useForm-kcRIHoe0.js";import"./JAreaLinkage-BNOKwn5l.js";import"./JCodeEditor-CSivhUhT.js";import"./htmlmixed-DNSd26j0.js";import"./vue-DbzutmLn.js";/* empty css */import"./EasyCronInput-wCv2YMHn.js";import"./injectionKey-DPVn4AgL.js";const j=[{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"},Lt=I({__name:"index",setup(h){const{prefixCls:p}=B("address-list");y("prefixCls",p);const e=_(),m=_(""),r=_({}),{tableContext:c}=F({tableProps:{api:D,columns:j,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 z({pageSize:99999});if(o){let f={};o.records.forEach(s=>{f[s.id]=s.name}),r.value=f}})}return a(),(o,f)=>{const s=w("a-col"),C=w("a-row");return k(),v(C,{class:P(["p-4",`${x(p)}--box`]),type:"flex",gutter:10,style:{"max-height":"800px"}},{default:n(()=>[l(s,{xl:6,lg:24,md:24,style:{"margin-bottom":"10px"}},{default:n(()=>[l(R,{ref_key:"leftTree",ref:e,onSelect:t},null,512)]),_:1}),l(s,{xl:18,lg:24,md:24,style:{"margin-bottom":"10px"}},{default:n(()=>[N("div",L,[l(x(V),{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{Lt as default};
|