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