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-D2AmS0aU.js";import{u as x}from"./index-LwlFn7Y4.js";import{r as M}from"./dict.data-DexZZMFP.js";import{g as v,p as S,c as T}from"./dict.api-DhLIZS6i.js";import{a8 as D}from"./index-B_2CoVdl.js";import{Q as I}from"./componentMap-CzCGDP7x.js";import j from"./BasicTable-Clbg3fHx.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./validator-jM63P_3m.js";import"./user.api-BLHI3_6c.js";import"./useFormItem-CWa0w7fA.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"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.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};
