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-D2AmS0aU.js";import"./index-LwlFn7Y4.js";import{r as J}from"./user.data-D5VRrih7.js";import{k as $,p as E}from"./user.api-BLHI3_6c.js";import{a8 as W,u as X,_ as Y}from"./index-B_2CoVdl.js";import{useListPage as Z}from"./useListPage-BEtybUiF.js";import{M as oo}from"./antd-vue-vendor-CDWW6V_M.js";import{Q as to}from"./componentMap-CzCGDP7x.js";import eo from"./BasicTable-Clbg3fHx.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./validator-jM63P_3m.js";import"./renderUtils-Cbe4E0PZ.js";import"./index-CkL00Q0a.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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};
