import{d as f,n as h,U as r,a2 as b,a3 as T,k as i,af as p,G as g}from"./vue-vendor-CxLCUzY4.js";import{u as C}from"./index-KOQNKxnC.js";import{c as w}from"./system-CzFL1ZBw.js";import{a as S}from"./index-BjHivc1K.js";import{s as _,c as D,M as k}from"./MenuDrawer-D6PqMG1k.js";import{Q as B}from"./componentMap-DpsJvoqz.js";import F from"./BasicTable-DUJWN3yz.js";import{_ as M}from"./index-CLZzJyTP.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.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"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";const R=f({name:"MenuManagement",components:{BasicTable:F,MenuDrawer:k,TableAction:B},setup(){const[e,{openDrawer:t}]=S(),[c,{reload:l,expandAll:u}]=C({title:"菜单列表",api:w,columns:D,formConfig:{labelWidth:120,schemas:_},isTreeTable:!0,pagination:!1,striped:!1,useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,canResize:!1,actionColumn:{width:80,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});function d(){t(!0,{isUpdate:!1})}function n(o){t(!0,{record:o,isUpdate:!0})}function a(o){}function m(){l()}function s(){h(u)}return{registerTable:c,registerDrawer:e,handleCreate:d,handleEdit:n,handleDelete:a,handleSuccess:m,onFetchSuccess:s}}});function A(e,t,c,l,u,d){const n=r("a-button"),a=r("TableAction"),m=r("BasicTable"),s=r("MenuDrawer");return b(),T("div",null,[i(m,{onRegister:e.registerTable,onFetchSuccess:e.onFetchSuccess},{tableTitle:p(()=>[i(n,{type:"primary",onClick:e.handleCreate},{default:p(()=>t[0]||(t[0]=[g(" 新增菜单 ")])),_:1},8,["onClick"])]),action:p(({record:o})=>[i(a,{actions:[{icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,o)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:e.handleDelete.bind(null,o)}}]},null,8,["actions"])]),_:1},8,["onRegister","onFetchSuccess"]),i(s,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}const ve=M(R,[["render",A]]);export{ve as default};
