index.2cbeae18.js 3.4 KB

1
  1. import{B as b}from"./TableImg.9ce43c8c.js";import{T as C}from"./index.db9b952c.js";import{u as g}from"./useTable.79d7c35e.js";import{d as T}from"./system.959c5ffa.js";import{u as w}from"./index.5a7c436a.js";import{M as D,c as _,s as S}from"./MenuDrawer.1ddf0eb1.js";import{aw as k,a as B,w as t,o as h,h as F,n as s,z as p,B as M,j as y,k as A,al as E}from"./index.7e08ba81.js";import"./index.a9463ec3.js";import"./Checkbox.2b7c666a.js";import"./index.0d1117cf.js";import"./index.0e13704b.js";import"./eagerComputed.41f917f7.js";import"./FileOutlined.1ba59fec.js";import"./BasicForm.09fa6853.js";/* empty css *//* empty css */import"./index.0fba574f.js";import"./index.673e5955.js";import"./index.e102b091.js";import"./index.7e5abc0c.js";import"./get.06058cdc.js";import"./DeleteOutlined.12ba33eb.js";import"./transButton.38e068f8.js";import"./index.20008ed6.js";import"./index.51fe0c69.js";import"./Col.dccd6464.js";import"./useFlexGapSupport.ba88ba25.js";import"./index.7bbcc8f3.js";import"./Form.0777dffc.js";import"./_baseIteratee.cd40e9ab.js";import"./useSize.1210be5f.js";import"./uniqBy.e8d75d01.js";import"./index.aef1b210.js";import"./useWindowSizeFn.9cd1b73f.js";import"./FullscreenOutlined.3ea9a56b.js";import"./useForm.e12ea52c.js";import"./index.334036fa.js";import"./index.ea1692d3.js";import"./index.3132743a.js";import"./useContentViewHeight.eee5bfce.js";import"./ArrowLeftOutlined.8453d1a8.js";import"./index.492f2ae6.js";import"./FormOutlined.8ec71e0a.js";import"./index.756c7042.js";import"./index.1016abaf.js";import"./useRefs.9e0a4abb.js";import"./sortable.esm.7d5432c3.js";import"./RedoOutlined.2794d90f.js";import"./index.01b7ee47.js";import"./fromPairs.84aabb58.js";import"./scrollTo.f658bbdc.js";import"./index.828a2959.js";import"./Group.ea437422.js";import"./index.7fe36cdd.js";import"./index.821e0528.js";import"./download.ef0c06e3.js";import"./base64Conver.08b9f4ec.js";import"./index.92bb6ba8.js";const R=B({name:"MenuManagement",components:{BasicTable:b,MenuDrawer:D,TableAction:C},setup(){const[e,{openDrawer:r}]=w(),[c,{reload:l,expandAll:u}]=g({title:"\u83DC\u5355\u5217\u8868",api:T,columns:_,formConfig:{labelWidth:120,schemas:S},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(){E(u)}return{registerTable:c,registerDrawer:e,handleCreate:d,handleEdit:i,handleDelete:n,handleSuccess:a,onFetchSuccess:m}}});function v(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(()=>[M(" \u65B0\u589E\u83DC\u5355 ")]),_:1},8,["onClick"])]),bodyCell:p(({column:o,record:f})=>[o.key==="action"?(h(),y(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"])):A("",!0)]),_:1},8,["onRegister","onFetchSuccess"]),s(m,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}var ze=k(R,[["render",v]]);export{ze as default};