var j=Object.defineProperty,L=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var k=(e,o,t)=>o in e?j(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,x=(e,o)=>{for(var t in o||(o={}))q.call(o,t)&&k(e,t,o[t]);if(b)for(var t of b(o))z.call(o,t)&&k(e,t,o[t]);return e},y=(e,o)=>L(e,U(o));var R=(e,o,t)=>new Promise((f,u)=>{var _=r=>{try{p(t.next(r))}catch(l){u(l)}},g=r=>{try{p(t.throw(r))}catch(l){u(l)}},p=r=>r.done?f(r.value):Promise.resolve(r.value).then(_,g);p((t=t.apply(e,o)).next())});import{d as T,f as A,U as c,a2 as h,ad as v,af as n,k as s,u as m,G as M,J as D,V as F,ag as G}from"./vue-vendor-CxLCUzY4.js";import{B as H}from"./index-XZKTTfG1.js";import"./index-KOQNKxnC.js";import{r as J}from"./user.data-DNJy-IxE.js";import{k as $,p as E}from"./user.api-DAu0nuTv.js";import{a8 as W,u as X,_ as Y}from"./index-CLZzJyTP.js";import{useListPage as Z}from"./useListPage-CevWQ3ci.js";import{M as oo}from"./antd-vue-vendor-CahNzUUa.js";import{Q as to}from"./componentMap-DpsJvoqz.js";import eo from"./BasicTable-DUJWN3yz.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.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"./validator-Dx9kcZ5e.js";import"./renderUtils-BgFeePLc.js";import"./index-C7yPiS0L.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.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"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";const ro=T({name:"user-quit-modal"}),io=T(y(x({},ro),{emits:["success","register"],setup(e,{emit:o}){const{createConfirm:t}=X(),f=o,u=A([]),[_]=W(()=>{u.value=[]}),{prefixCls:g,tableContext:p}=Z({tableProps:{api:$,columns:J,rowKey:"id",canResize:!1,useSearchForm:!1,actionColumn:{width:120}}}),[r,{reload:l},{rowSelection:B,selectedRowKeys:w,selectedRows:I}]=p;function C(i){return R(this,null,function*(){yield E({userIds:i.id,usernames:i.username},l),f("success")})}function Q(){oo.confirm({title:"取消离职",content:"取消离职交接人也会清空",okText:"确认",cancelText:"取消",onOk:()=>{let i=I.value,a=[];for(const d of i)a.push(d.username);C({id:D(m(w)).join(","),username:a.join(",")})}})}function V(i){return[{label:"取消离职",icon:"ant-design:redo-outlined",popConfirm:{title:"是否取消离职,取消离职交接人也会清空",confirm:C.bind(null,i)}}]}return(i,a)=>{const d=c("Icon"),K=c("a-menu-item"),S=c("a-menu"),N=c("a-button"),O=c("a-dropdown");return h(),v(m(H),G(i.$attrs,{onRegister:m(_),title:"离职人员信息",showOkBtn:!1,width:"1000px",destroyOnClose:""}),{default:n(()=>[s(m(eo),{onRegister:m(r),rowSelection:m(B)},{tableTitle:n(()=>[m(w).length>0?(h(),v(O,{key:0},{overlay:n(()=>[s(S,null,{default:n(()=>[s(K,{key:"1",onClick:Q},{default:n(()=>[s(d,{icon:"ant-design:redo-outlined"}),a[0]||(a[0]=M(" 批量取消 "))]),_:1})]),_:1})]),default:n(()=>[s(N,null,{default:n(()=>[a[1]||(a[1]=M("批量操作 ")),s(d,{icon:"ant-design:down-outlined"})]),_:1})]),_:1})):F("",!0)]),action:n(({record:P})=>[s(m(to),{actions:V(P)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"])]),_:1},16,["onRegister"])}}})),ut=Y(io,[["__scopeId","data-v-7a49ab93"]]);export{ut as default};
