var p=(l,s,e)=>new Promise((a,m)=>{var c=t=>{try{r(e.next(t))}catch(i){m(i)}},d=t=>{try{r(e.throw(t))}catch(i){m(i)}},r=t=>t.done?a(t.value):Promise.resolve(t.value).then(c,d);r((e=e.apply(l,s)).next())});import{d as w,f as B,a2 as y,ad as _,af as f,k as g,u as n,ag as C,J as R}from"./vue-vendor-CxLCUzY4.js";import{B as k}from"./index-CF_FJn6P.js";import{u as x}from"./index-BN5Ac_IG.js";import{r as M}from"./dict.data-GBy7ZcE9.js";import{g as v,p as S,c as T}from"./dict.api-ig1mIl55.js";import{a8 as D}from"./index-CYriLmQo.js";import{Q as I}from"./componentMap-7D1QIeNI.js";import j from"./BasicTable-DAfCfXmD.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./validator-0TDlyteC.js";import"./user.api-BUwWVSBN.js";import"./useFormItem-CWa0w7fA.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"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./injectionKey-DPVn4AgL.js";const Jt=w({__name:"DictRecycleBinModal",emits:["success","register"],setup(l,{emit:s}){const e=s,a=B([]),[m,{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 i(o){return p(this,null,function*(){yield S(o.id,t),e("success")})}function u(o){return p(this,null,function*(){yield T(o.id,t)})}function H(){i({id:R(a.value).join(",")})}function K(){u({id:R(a.value).join(",")})}function h(o){return[{label:"取回",icon:"ant-design:redo-outlined",popConfirm:{title:"是否确认取回",confirm:i.bind(null,o)}},{label:"彻底删除",icon:"ant-design:scissor-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:u.bind(null,o)}}]}return(o,O)=>(y(),_(n(k),C(o.$attrs,{onRegister:n(m),title:"字典回收站",showOkBtn:!1,width:"1000px",destroyOnClose:""}),{default:f(()=>[g(n(j),{onRegister:n(r)},{action:f(({record:b})=>[g(n(I),{actions:h(b)},null,8,["actions"])]),_:1},8,["onRegister"])]),_:1},16,["onRegister"]))}});export{Jt as default};
