var p=(l,s,i)=>new Promise((n,a)=>{var c=t=>{try{r(i.next(t))}catch(e){a(e)}},d=t=>{try{r(i.throw(t))}catch(e){a(e)}},r=t=>t.done?n(t.value):Promise.resolve(t.value).then(c,d);r((i=i.apply(l,s)).next())});import{d as w,f as B,a2 as y,ad as _,af as f,k as g,u as m,ag as C,J as R}from"./vue-vendor-CxLCUzY4.js";import{B as k}from"./index-XZKTTfG1.js";import{u as x}from"./index-KOQNKxnC.js";import{r as M}from"./dict.data-Vvx8ZjNB.js";import{g as v,p as S,c as T}from"./dict.api-CKQliJmR.js";import{a8 as D}from"./index-CLZzJyTP.js";import{Q as I}from"./componentMap-DpsJvoqz.js";import j from"./BasicTable-DUJWN3yz.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./validator-Dx9kcZ5e.js";import"./user.api-DAu0nuTv.js";import"./useFormItem-IOFWTdED.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"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./injectionKey-DPVn4AgL.js";const Lt=w({__name:"DictRecycleBinModal",emits:["success","register"],setup(l,{emit:s}){const i=s,n=B([]),[a,{setModalProps:c,closeModal:d}]=D(),[r,{reload:t}]=x({api:v,columns:M,striped:!0,useSearchForm:!1,showTableSetting:!1,clickToRowSelect:!1,bordered:!0,showIndexColumn:!1,pagination:!1,tableSetting:{fullScreen:!0},canResize:!1,actionColumn:{width:100,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});function e(o){return p(this,null,function*(){yield S(o.id,t),i("success")})}function u(o){return p(this,null,function*(){yield T(o.id,t)})}function H(){e({id:R(n.value).join(",")})}function K(){u({id:R(n.value).join(",")})}function h(o){return[{label:"取回",icon:"ant-design:redo-outlined",popConfirm:{title:"是否确认取回",confirm:e.bind(null,o)}},{label:"彻底删除",icon:"ant-design:scissor-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:u.bind(null,o)}}]}return(o,O)=>(y(),_(m(k),C(o.$attrs,{onRegister:m(a),title:"字典回收站",showOkBtn:!1,width:"1000px",destroyOnClose:""}),{default:f(()=>[g(m(j),{onRegister:m(r)},{action:f(({record:b})=>[g(m(I),{actions:h(b)},null,8,["actions"])]),_:1},8,["onRegister"])]),_:1},16,["onRegister"]))}});export{Lt as default};
