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{c as _}from"./system.45a2d8ec.js";import{u as D}from"./index.b36a1201.js";import{R as T,c as w,s as B}from"./RoleDrawer.18595d41.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.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";import"./index.1ea124a9.js";import"./useContextMenu.9d301734.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};
|