index.eef156df.js 3.4 KB

1
  1. import{B as b}from"./TableImg.dc9e3263.js";import{T as C}from"./index.772bb79c.js";import{u as g}from"./useTable.46780a65.js";import{d as T}from"./system.45a2d8ec.js";import{u as _}from"./index.b36a1201.js";import{M as D,c as k,s as w}from"./MenuDrawer.b9a94d62.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.386d9fb7.js";import"./index.d1a867f8.js";import"./Checkbox.ac2c3bae.js";import"./index.099bcd75.js";import"./index.02f194d7.js";import"./eagerComputed.49b57638.js";import"./FileOutlined.4755ce7d.js";import"./BasicForm.a06b71db.js";/* empty css *//* empty css */import"./index.aed3fcbc.js";import"./index.02a610c8.js";import"./index.bb9930d5.js";import"./index.2741d802.js";import"./get.b8c3006a.js";import"./DeleteOutlined.852ea9a3.js";import"./transButton.819dbf15.js";import"./index.28a5cbb8.js";import"./index.2adf5889.js";import"./Col.7f949b31.js";import"./useFlexGapSupport.587c05ca.js";import"./index.74294103.js";import"./Form.91d201f3.js";import"./_baseIteratee.3f358b05.js";import"./useSize.1400bc25.js";import"./uniqBy.3999e323.js";import"./index.02535309.js";import"./useWindowSizeFn.b46c26df.js";import"./FullscreenOutlined.9b13e7c7.js";import"./useForm.67940d69.js";import"./index.d521ae0a.js";import"./index.507c21d5.js";import"./index.d3334f45.js";import"./useContentViewHeight.c723fc13.js";import"./ArrowLeftOutlined.f1e0008b.js";import"./index.2e8270ab.js";import"./FormOutlined.ef8f8f88.js";import"./index.d77b16ba.js";import"./index.aa276cac.js";import"./useRefs.4d8307d4.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.0f4a624f.js";import"./index.2e642baa.js";import"./fromPairs.84aabb58.js";import"./scrollTo.1ba74922.js";import"./index.e1927454.js";import"./Group.e744a08a.js";import"./index.dc654e6b.js";import"./index.d184e3ed.js";import"./download.65105715.js";import"./base64Conver.08b9f4ec.js";import"./index.0fd57566.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};