var E=Object.defineProperty,F=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var y=(e,t,o)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,R=(e,t)=>{for(var o in t||(t={}))J.call(t,o)&&y(e,o,t[o]);if(x)for(var o of x(t))Q.call(t,o)&&y(e,o,t[o]);return e},T=(e,t)=>F(e,G(t));var h=(e,t,o)=>new Promise((f,_)=>{var g=i=>{try{c(o.next(i))}catch(p){_(p)}},C=i=>{try{c(o.throw(i))}catch(p){_(p)}},c=i=>i.done?f(i.value):Promise.resolve(i.value).then(g,C);c((o=o.apply(e,t)).next())});import{d as L,U as l,a2 as M,ad as v,af as n,k as r,u as s,G as w,J as B,V as U,ag as q}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{r as W,c as I,d as S}from"./tenant.api-BupkcWMH.js";import{s as Y,r as Z}from"./tenant.data-Byz3LKFo.js";import{useListPage as tt}from"./useListPage-CevWQ3ci.js";import{B as ot}from"./index-XZKTTfG1.js";import{a8 as et,u as it,_ as nt}from"./index-CLZzJyTP.js";import{M as D}from"./antd-vue-vendor-CahNzUUa.js";import{Q as rt}from"./componentMap-DpsJvoqz.js";import st from"./BasicTable-DUJWN3yz.js";import"./renderUtils-BgFeePLc.js";import"./index-C7yPiS0L.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./validator-Dx9kcZ5e.js";import"./user.api-DAu0nuTv.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.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 mt=L({name:"tenant-recycle-bin-modal"}),at=L(T(R({},mt),{emits:["success","register"],setup(e,{emit:t}){const{createMessage:o}=it(),[f]=et(()=>{}),{prefixCls:_,tableContext:g,onExportXls:C,onImportXls:c}=tt({tableProps:{api:W,columns:Z,size:"small",formConfig:{schemas:Y},actionColumn:{width:120},ellipsis:!0}}),i=t,[p,{reload:O,updateTableDataRecord:pt},{rowSelection:P,selectedRows:lt,selectedRowKeys:d}]=g;function V(m){return[{label:"还原",icon:"ant-design:redo-outlined",popConfirm:{title:"是否确认还原",confirm:N.bind(null,m)}},{label:"彻底删除",icon:"ant-design:scissor-outlined",popConfirm:{title:"是否确认彻底删除",confirm:j.bind(null,m)}}]}function N(m){I({ids:m.id},u),i("success")}function u(){(d.value=[])&&O()}function j(m){return h(this,null,function*(){yield S({ids:m.id},u)})}function H(){D.confirm({title:"彻底删除",content:"是否确认彻底删除",okText:"确认",cancelText:"取消",onOk:()=>{S({ids:B(s(d)).join(",")},u)}})}function K(){D.confirm({title:"还原",content:"是否确认还原",okText:"确认",cancelText:"取消",onOk:()=>{I({ids:B(s(d)).join(",")},u),i("success")}})}return(m,a)=>{const b=l("Icon"),k=l("a-menu-item"),X=l("a-menu"),$=l("a-button"),z=l("a-dropdown");return M(),v(s(ot),q(m.$attrs,{onRegister:s(f),title:"用户回收站",showOkBtn:!1,width:"1000px",destroyOnClose:""}),{default:n(()=>[r(s(st),{onRegister:s(p),rowSelection:s(P)},{tableTitle:n(()=>[s(d).length>0?(M(),v(z,{key:0},{overlay:n(()=>[r(X,null,{default:n(()=>[r(k,{key:"1",onClick:H},{default:n(()=>[r(b,{icon:"ant-design:delete-outlined"}),a[0]||(a[0]=w(" 批量删除 "))]),_:1}),r(k,{key:"1",onClick:K},{default:n(()=>[r(b,{icon:"ant-design:redo-outlined"}),a[1]||(a[1]=w(" 批量还原 "))]),_:1})]),_:1})]),default:n(()=>[r($,null,{default:n(()=>[a[2]||(a[2]=w("批量操作 ")),r(b,{icon:"ant-design:down-outlined"})]),_:1})]),_:1})):U("",!0)]),action:n(({record:A})=>[r(s(rt),{actions:V(A)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"])]),_:1},16,["onRegister"])}}})),Co=nt(at,[["__scopeId","data-v-3ad893c7"]]);export{Co as default};
