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-CF_FJn6P.js";import"./index-BN5Ac_IG.js";import{r as J}from"./user.data-BmeJpriz.js";import{k as $,p as E}from"./user.api-BUwWVSBN.js";import{a8 as W,u as X,_ as Y}from"./index-CYriLmQo.js";import{useListPage as Z}from"./useListPage-i3Wl0_Fg.js";import{M as oo}from"./antd-vue-vendor-CDWW6V_M.js";import{Q as to}from"./componentMap-7D1QIeNI.js";import eo from"./BasicTable-DAfCfXmD.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.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"./validator-0TDlyteC.js";import"./renderUtils-CGtepdOw.js";import"./index-BTSd5ebC.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.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"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.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"])}}})),ct=Y(io,[["__scopeId","data-v-7a49ab93"]]);export{ct as default};
