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(l){_(l)}},C=i=>{try{c(o.throw(i))}catch(l){_(l)}},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 p,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-BN5Ac_IG.js";import{r as W,c as I,d as S}from"./tenant.api-SLCAStJX.js";import{s as Y,r as Z}from"./tenant.data-C1uGOW6B.js";import{useListPage as tt}from"./useListPage-i3Wl0_Fg.js";import{B as ot}from"./index-CF_FJn6P.js";import{a8 as et,u as it,_ as nt}from"./index-CYriLmQo.js";import{M as D}from"./antd-vue-vendor-CDWW6V_M.js";import{Q as rt}from"./componentMap-7D1QIeNI.js";import st from"./BasicTable-DAfCfXmD.js";import"./renderUtils-CGtepdOw.js";import"./index-BTSd5ebC.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./validator-0TDlyteC.js";import"./user.api-BUwWVSBN.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.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 at=L({name:"tenant-recycle-bin-modal"}),mt=L(T(R({},at),{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,[l,{reload:O,updateTableDataRecord:lt},{rowSelection:P,selectedRows:pt,selectedRowKeys:d}]=g;function V(a){return[{label:"还原",icon:"ant-design:redo-outlined",popConfirm:{title:"是否确认还原",confirm:N.bind(null,a)}},{label:"彻底删除",icon:"ant-design:scissor-outlined",popConfirm:{title:"是否确认彻底删除",confirm:j.bind(null,a)}}]}function N(a){I({ids:a.id},u),i("success")}function u(){(d.value=[])&&O()}function j(a){return h(this,null,function*(){yield S({ids:a.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(a,m)=>{const b=p("Icon"),k=p("a-menu-item"),X=p("a-menu"),$=p("a-button"),z=p("a-dropdown");return M(),v(s(ot),q(a.$attrs,{onRegister:s(f),title:"用户回收站",showOkBtn:!1,width:"1000px",destroyOnClose:""}),{default:n(()=>[r(s(st),{onRegister:s(l),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"}),m[0]||(m[0]=w(" 批量删除 "))]),_:1}),r(k,{key:"1",onClick:K},{default:n(()=>[r(b,{icon:"ant-design:redo-outlined"}),m[1]||(m[1]=w(" 批量还原 "))]),_:1})]),_:1})]),default:n(()=>[r($,null,{default:n(()=>[m[2]||(m[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"])}}})),wo=nt(mt,[["__scopeId","data-v-3ad893c7"]]);export{wo as default};
