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-zKZnG1QC.js";import"./index-gyz1IdHU.js";import{r as J}from"./user.data-CKKSq6sB.js";import{k as $,p as E}from"./user.api-CoaMxYm2.js";import{a8 as W,u as X,_ as Y}from"./index-Cy4uayzW.js";import{useListPage as Z}from"./useListPage-TMORxSEa.js";import{M as oo}from"./antd-vue-vendor-CahNzUUa.js";import{Q as to}from"./componentMap-0iK4HQBq.js";import eo from"./BasicTable-CgafrQwz.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./validator-CyHCj96y.js";import"./renderUtils-BcsccCoe.js";import"./index-tDBMxW9-.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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};
