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-gyz1IdHU.js";import{r as W,c as I,d as S}from"./tenant.api-C9mls3Ap.js";import{s as Y,r as Z}from"./tenant.data-BTTBgNSE.js";import{useListPage as tt}from"./useListPage-TMORxSEa.js";import{B as ot}from"./index-zKZnG1QC.js";import{a8 as et,u as it,_ as nt}from"./index-Cy4uayzW.js";import{M as D}from"./antd-vue-vendor-CahNzUUa.js";import{Q as rt}from"./componentMap-0iK4HQBq.js";import st from"./BasicTable-CgafrQwz.js";import"./renderUtils-BcsccCoe.js";import"./index-tDBMxW9-.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./validator-CyHCj96y.js";import"./user.api-CoaMxYm2.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.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 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};
