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-zKZnG1QC.js";import{u as x}from"./index-gyz1IdHU.js";import{r as M}from"./dict.data-DTe4u28B.js";import{g as v,p as S,c as T}from"./dict.api-CeHYvGNV.js";import{a8 as D}from"./index-Cy4uayzW.js";import{Q as I}from"./componentMap-0iK4HQBq.js";import j from"./BasicTable-CgafrQwz.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./validator-CyHCj96y.js";import"./user.api-CoaMxYm2.js";import"./useFormItem-IOFWTdED.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"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.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};
