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-LwlFn7Y4.js";import{r as W,c as I,d as S}from"./tenant.api-CpQl223K.js";import{s as Y,r as Z}from"./tenant.data-jovtG_GO.js";import{useListPage as tt}from"./useListPage-BEtybUiF.js";import{B as ot}from"./index-D2AmS0aU.js";import{a8 as et,u as it,_ as nt}from"./index-B_2CoVdl.js";import{M as D}from"./antd-vue-vendor-CDWW6V_M.js";import{Q as rt}from"./componentMap-CzCGDP7x.js";import st from"./BasicTable-Clbg3fHx.js";import"./renderUtils-Cbe4E0PZ.js";import"./index-CkL00Q0a.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./validator-jM63P_3m.js";import"./user.api-BLHI3_6c.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./index-DAURrYyA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.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 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};
