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-BN5Ac_IG.js";import{c as w}from"./system-CSPmx4m6.js";import{a as S}from"./index-qSr7C5NQ.js";import{s as _,c as D,M as k}from"./MenuDrawer-CS0ENBHY.js";import{Q as B}from"./componentMap-7D1QIeNI.js";import F from"./BasicTable-DAfCfXmD.js";import{_ as M}from"./index-CYriLmQo.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.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"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.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 $e=M(R,[["render",A]]);export{$e as default};
