1 |
- import{B as b}from"./TableImg.6b99eb73.js";import{T as C}from"./index.c3e0a369.js";import{u as g}from"./useTable.3fccb17f.js";import{d as T}from"./system.6440c027.js";import{u as _}from"./index.57748f4c.js";import{M as D,c as k,s as w}from"./MenuDrawer.bbe8ea77.js";import{av as S,a as B,a_ as t,o as h,h as F,n as s,y as p,z as y,j as M,k as v,ak as A}from"./index.3f97cc33.js";import"./index.9f019cdd.js";import"./Checkbox.d22129d5.js";import"./index.cde36067.js";import"./index.bfa19e2c.js";import"./eagerComputed.ab644b1a.js";import"./FileOutlined.eac4c93b.js";import"./BasicForm.2ae13259.js";/* empty css *//* empty css */import"./index.222f0459.js";import"./index.309e8a99.js";import"./index.6757786b.js";import"./index.ade181eb.js";import"./get.7e5a4802.js";import"./DeleteOutlined.9e5fb76b.js";import"./transButton.54be5ef0.js";import"./index.a54fbaf1.js";import"./index.872d0787.js";import"./Col.a5c4aef2.js";import"./useFlexGapSupport.a62ab4b7.js";import"./index.137cd5fa.js";import"./Form.e8d8d176.js";import"./_baseIteratee.74621dd5.js";import"./useSize.029b57c4.js";import"./uniqBy.66af1ece.js";import"./index.48fd6577.js";import"./useWindowSizeFn.63c1b6a0.js";import"./FullscreenOutlined.79df86c0.js";import"./useForm.8deaf95d.js";import"./index.e8c88e99.js";import"./index.0abd0285.js";import"./index.e9945251.js";import"./useContentViewHeight.1983ed20.js";import"./ArrowLeftOutlined.5c21fff9.js";import"./index.2b936b77.js";import"./FormOutlined.abb32020.js";import"./index.6ecec018.js";import"./index.b35c80c0.js";import"./useRefs.428779fe.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.fe1eaec0.js";import"./index.4e54ae7e.js";import"./fromPairs.84aabb58.js";import"./scrollTo.073f007f.js";import"./index.5b650468.js";import"./Group.ae7e47e2.js";import"./index.4ffbbda4.js";import"./index.f3e20199.js";import"./download.ab58da56.js";import"./base64Conver.08b9f4ec.js";import"./index.fb0ad110.js";const E=B({name:"MenuManagement",components:{BasicTable:b,MenuDrawer:D,TableAction:C},setup(){const[e,{openDrawer:r}]=_(),[c,{reload:l,expandAll:u}]=g({title:"\u83DC\u5355\u5217\u8868",api:T,columns:k,formConfig:{labelWidth:120,schemas:w},isTreeTable:!0,pagination:!1,striped:!1,useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,canResize:!1,actionColumn:{width:80,title:"\u64CD\u4F5C",dataIndex:"action",fixed:void 0}});function d(){r(!0,{isUpdate:!1})}function i(o){r(!0,{record:o,isUpdate:!0})}function n(o){}function a(){l()}function m(){A(u)}return{registerTable:c,registerDrawer:e,handleCreate:d,handleEdit:i,handleDelete:n,handleSuccess:a,onFetchSuccess:m}}});function R(e,r,c,l,u,d){const i=t("a-button"),n=t("TableAction"),a=t("BasicTable"),m=t("MenuDrawer");return h(),F("div",null,[s(a,{onRegister:e.registerTable,onFetchSuccess:e.onFetchSuccess},{toolbar:p(()=>[s(i,{type:"primary",onClick:e.handleCreate},{default:p(()=>[y(" \u65B0\u589E\u83DC\u5355 ")]),_:1},8,["onClick"])]),bodyCell:p(({column:o,record:f})=>[o.key==="action"?(h(),M(n,{key:0,actions:[{icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,f)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"left",confirm:e.handleDelete.bind(null,f)}}]},null,8,["actions"])):v("",!0)]),_:1},8,["onRegister","onFetchSuccess"]),s(m,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}var ze=S(E,[["render",R]]);export{ze as default};
|