import{B as b}from"./TableImg.4c25b2e4.js";import{T as C}from"./index.2ceeb335.js";import{u as g}from"./useTable.6d62fd16.js";import{c as _}from"./system.02aef733.js";import{u as D}from"./index.eda8e5c3.js";import{R as T,c as w,s as B}from"./RoleDrawer.fa5cb9f7.js";import{av as R,a as k,a_ as t,o as d,h as y,n as a,y as m,z as S,j as v,k as E}from"./index.97c70775.js";import"./index.27bfa3fd.js";import"./Checkbox.7642e90f.js";import"./index.221d6122.js";import"./index.eb99b34d.js";import"./eagerComputed.a9afdf3f.js";import"./FileOutlined.06e352b5.js";import"./BasicForm.98ee0a61.js";/* empty css *//* empty css */import"./index.376f7d77.js";import"./index.74899dcd.js";import"./index.ee15e24a.js";import"./index.cef0d45a.js";import"./get.42ae1097.js";import"./DeleteOutlined.59fb3f3a.js";import"./transButton.231a8ef9.js";import"./index.f22ca87e.js";import"./index.0e29685c.js";import"./Col.2079ddbc.js";import"./useFlexGapSupport.07d6e900.js";import"./index.cae94db2.js";import"./Form.9361f89f.js";import"./_baseIteratee.3a1e7c2b.js";import"./useSize.888c6d90.js";import"./uniqBy.244093b2.js";import"./index.25a01433.js";import"./useWindowSizeFn.bb740ef7.js";import"./FullscreenOutlined.8e7a919a.js";import"./useForm.48550b19.js";import"./index.5d68b2d4.js";import"./index.ec8df927.js";import"./index.e017a62f.js";import"./useContentViewHeight.4e0b2e8d.js";import"./ArrowLeftOutlined.5b8718d6.js";import"./index.1292065e.js";import"./FormOutlined.bae14c68.js";import"./index.a7d63c49.js";import"./index.85f4f083.js";import"./useRefs.dcf26156.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.560bd00b.js";import"./index.16ef16a0.js";import"./fromPairs.84aabb58.js";import"./scrollTo.c927ac62.js";import"./index.cea071a6.js";import"./Group.19df0dc0.js";import"./index.cb32f675.js";import"./index.e2c53397.js";import"./download.b0e6596f.js";import"./base64Conver.08b9f4ec.js";import"./index.d735b0e3.js";import"./index.d8128ca9.js";import"./useContextMenu.568f89f5.js";const A=k({name:"RoleManagement",components:{BasicTable:b,RoleDrawer:T,TableAction:C},setup(){const[o,{openDrawer:r}]=D(),[p,{reload:s}]=g({title:"\u89D2\u8272\u5217\u8868",api:_,columns:w,formConfig:{labelWidth:120,schemas:B},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,actionColumn:{width:80,title:"\u64CD\u4F5C",dataIndex:"action",fixed:void 0}});function l(){r(!0,{isUpdate:!1})}function c(e){r(!0,{record:e,isUpdate:!0})}function i(e){}function n(){s()}return{registerTable:p,registerDrawer:o,handleCreate:l,handleEdit:c,handleDelete:i,handleSuccess:n}}});function F(o,r,p,s,l,c){const i=t("a-button"),n=t("TableAction"),e=t("BasicTable"),f=t("RoleDrawer");return d(),y("div",null,[a(e,{onRegister:o.registerTable},{toolbar:m(()=>[a(i,{type:"primary",onClick:o.handleCreate},{default:m(()=>[S(" \u65B0\u589E\u89D2\u8272 ")]),_:1},8,["onClick"])]),bodyCell:m(({column:h,record:u})=>[h.key==="action"?(d(),v(n,{key:0,actions:[{icon:"clarity:note-edit-line",onClick:o.handleEdit.bind(null,u)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"left",confirm:o.handleDelete.bind(null,u)}}]},null,8,["actions"])):E("",!0)]),_:1},8,["onRegister"]),a(f,{onRegister:o.registerDrawer,onSuccess:o.handleSuccess},null,8,["onRegister","onSuccess"])])}var zo=R(A,[["render",F]]);export{zo as default};