2 lines
4.2 KiB
Java
2 lines
4.2 KiB
Java
var b=(t,o,a)=>new Promise((d,n)=>{var f=r=>{try{m(a.next(r))}catch(s){n(s)}},h=r=>{try{m(a.throw(r))}catch(s){n(s)}},m=r=>r.done?d(r.value):Promise.resolve(r.value).then(f,h);m((a=a.apply(t,o)).next())});import{d as z,p as N,ah as I,aC as R,as as T,aF as l,k as c,f as x,au as S,u,G as k,av as B,at as D}from"./vue-vendor-C7Zq48Yl.js";import{cg as y,n as H,ch as P,ci as E}from"./index-BI6CMai0.js";import{_ as j,p as F,l as K}from"./DepartLeftTree-eZY-vytb.js";import"./index-BgJbdjPf.js";import{useListPage as V}from"./useListPage-BWia52we.js";import A from"./BasicTable-DfLkrEeh.js";import{J as G}from"./componentMap-BBZeqR-K.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./vxe-table-vendor-B88kchpX.js";import"./depart.user.api-Bund-856.js";import"./TreeIcon-DE4jdeZV.js";import"./useMethods-DVip17X8.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./index-DeEq83Ov.js";import"./index-Du0A3ksf.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useTimeout-DDl4l82I.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./areaDataUtil-CbYCy3Ig.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JSelectDept-DRDVeruW.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./JCodeEditor-CLVZA7Uj.js";import"./useFormItem-BdW6EoZe.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./JAddInput-D6qcyZjQ.js";import"./index-CNkz_PUv.js";import"./depart.api-DeMNV8zW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./index-Dg4HCEvo.js";import"./EasyCronInput-7xfJ3nBh.js";import"./JEllipsis-DqRFTSm0.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./injectionKey-DPVn4AgL.js";const J=[{title:"姓名",dataIndex:"realname",width:100},{title:"部门",dataIndex:"departName",customRender:({text:t})=>y(t)},{title:"主岗位",dataIndex:"postName",customRender:({text:t})=>y(t)},{title:"兼职岗位",dataIndex:"otherPostName",customRender:({text:t})=>y(t)},{title:"手机",width:110,dataIndex:"phone",customRender:({record:t,text:o})=>t.izHideContact&&t.izHideContact==="1"?"/":o},{title:"邮箱",width:180,dataIndex:"email",customRender:({record:t,text:o})=>t.izHideContact&&t.izHideContact==="1"?o?"/":"":o}],L=[{label:"姓名",field:"realname",component:"Input",colProps:{span:6}}],$={style:{height:"100%"},class:"address-book"},Qt=z({__name:"index",setup(t){const{prefixCls:o}=H("address-list");N("prefixCls",o);const a=x(),d=x(""),n=x({}),{tableContext:f}=V({tableProps:{api:K,columns:J,rowKey:"id",showIndexColumn:!0,formConfig:{schemas:L},canResize:!1,showTableSetting:!1,actionColumn:{width:80},beforeFetch(e){e.orgCode=d.value}}}),[h,{reload:m}]=f;function r(e){d.value=e.orgCode,m()}function s(e){return[{label:"发消息",onClick:v.bind(null,e)}]}function w(){return b(this,null,function*(){const e=yield F({pageSize:99999});if(e){let p={};e.records.forEach(i=>{p[i.id]=i.name}),n.value=p}})}w();function v(e){let p=P(E),i=document.getElementById("jChatOnline"),g=e.id;i.contentWindow.postMessage({type:"open-chat",messageId:p,data:{id:g,type:"friend",groupName:"",avatar:e.avatar,username:e.realname}},"*")}return(e,p)=>{const i=I("a-col"),g=I("a-row");return T(),R(g,{class:D(["p-4",`${u(o)}--box`]),type:"flex",gutter:10,style:{"max-height":"800px"}},{default:l(()=>[c(i,{xl:6,lg:24,md:24,style:{"margin-bottom":"10px"}},{default:l(()=>[c(j,{ref_key:"leftTree",ref:a,onSelect:r},null,512)]),_:1}),c(i,{xl:18,lg:24,md:24,style:{"margin-bottom":"10px"}},{default:l(()=>[S("div",$,[c(u(A),{onRegister:u(h)},{post:l(({text:_})=>[k(B((_||"").split(",").map(C=>n.value[C]?n.value[C]:C).join(",")),1)]),action:l(({record:_})=>[c(u(G),{actions:s(_)},null,8,["actions"])]),_:1},8,["onRegister"])])]),_:1})]),_:1},8,["class"])}}});export{Qt as default};
|