index.c97bdfe9.js 3.4 KB

1
  1. import{B as b}from"./TableImg.597584e6.js";import{T as C}from"./index.8dc260b3.js";import{u as g}from"./useTable.b17172ac.js";import{d as T}from"./system.086d8caa.js";import{u as _}from"./index.0d21dfda.js";import{M as D,c as k,s as w}from"./MenuDrawer.b5d068f3.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.e732a6c4.js";import"./index.52a860e2.js";import"./Checkbox.cd11793f.js";import"./index.67c9fd33.js";import"./index.48dc9414.js";import"./eagerComputed.d8debd6e.js";import"./FileOutlined.a9bd2925.js";import"./BasicForm.fe571845.js";/* empty css *//* empty css */import"./index.7a5d609f.js";import"./index.fe26b69e.js";import"./index.f3ce990d.js";import"./index.aeafc823.js";import"./get.cddfc9f0.js";import"./DeleteOutlined.9453861b.js";import"./transButton.9d7d2b69.js";import"./index.40d1aea5.js";import"./index.9abce0d5.js";import"./Col.f597069f.js";import"./useFlexGapSupport.b687f8e8.js";import"./index.676f2157.js";import"./Form.31f13834.js";import"./_baseIteratee.9ce959b8.js";import"./useSize.251fd95d.js";import"./uniqBy.1074b370.js";import"./index.c44e7998.js";import"./useWindowSizeFn.ef03f01e.js";import"./FullscreenOutlined.67299bdd.js";import"./useForm.d622c54a.js";import"./index.3b7c359a.js";import"./index.5f78f2da.js";import"./index.131a0cf6.js";import"./useContentViewHeight.b55f3b98.js";import"./ArrowLeftOutlined.ed827216.js";import"./index.edd35c1d.js";import"./FormOutlined.07da32a7.js";import"./index.bc95baf4.js";import"./index.cc5ad1da.js";import"./useRefs.c7c3b4e2.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.2f084204.js";import"./index.f193ab6e.js";import"./fromPairs.84aabb58.js";import"./scrollTo.41659aa7.js";import"./index.bd4bde1e.js";import"./Group.94ed732f.js";import"./index.87a8710f.js";import"./index.2b4dfc13.js";import"./download.23a01323.js";import"./base64Conver.08b9f4ec.js";import"./index.040d81ad.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};