| 1 |
- import{d as f,ag as r,aq as b,ar as h,k as i,aD as m,G as g}from"./vue-vendor-Be68asQ6.js";import{u as C}from"./index-D2G57Sln.js";import{d as T}from"./system-CVkOpfKQ.js";import{a as w}from"./index-swd_UZfO.js";import{R as D,s as _,c as R}from"./RoleDrawer-vppPfw1n.js";import{Q as B}from"./componentMap-BUTAcOmo.js";import S from"./BasicTable-CuSLkXEu.js";import{a as k}from"./index-BFfnEkVs.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./index-D68l__AG.js";import"./BasicForm-Cv-dsB-e.js";import"./index-CETWS1o0.js";import"./BasicModal-D4gc2R81.js";import"./useWindowSizeFn-BTSGGcie.js";import"./useForm-kcRIHoe0.js";import"./JAreaLinkage-BNOKwn5l.js";import"./areaDataUtil-Cik-Rc_P.js";import"./JSelectUser-DCwPqRxp.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";import"./JSelectDept-DT6g7V5M.js";import"./index-BNFwynfr.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.js";import"./JCodeEditor-CSivhUhT.js";import"./useFormItem-CtGMPcLp.js";import"./htmlmixed-DNSd26j0.js";import"./vue-DbzutmLn.js";/* empty css */import"./JAddInput-BBXQvvpq.js";import"./index-BOEzG86y.js";import"./depart.api-CDwTvdwQ.js";import"./JPopup-DKJW27Yk.js";import"./EasyCronInput-wCv2YMHn.js";import"./JEllipsis-C04xKxcI.js";import"./download-CjoX0_mR.js";import"./base64Conver-24EVOS6V.js";import"./index-D1703ozz.js";import"./index-Bi7PIj53.js";import"./useCountdown-B7iR27pS.js";import"./useFormItemSingle-nLM0QlcI.js";import"./JUpload-cB_Qj2H2.js";import"./index-iuayQczx.js";import"./index-DJQB4_Pr.js";import"./injectionKey-DPVn4AgL.js";const y=f({name:"system-demorole",components:{BasicTable:S,RoleDrawer:D,TableAction:B},setup(){const[o,{openDrawer:t}]=w(),[p,{reload:s}]=C({title:"角色列表",api:T,columns:R,formConfig:{labelWidth:120,schemas:_},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,actionColumn:{width:80,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});function l(){t(!0,{isUpdate:!1})}function c(e){t(!0,{record:e,isUpdate:!0})}function n(e){}function a(){s()}return{registerTable:p,registerDrawer:o,handleCreate:l,handleEdit:c,handleDelete:n,handleSuccess:a}}});function E(o,t,p,s,l,c){const n=r("a-button"),a=r("TableAction"),e=r("BasicTable"),d=r("RoleDrawer");return h(),b("div",null,[i(e,{onRegister:o.registerTable},{tableTitle:m(()=>[i(n,{type:"primary",onClick:o.handleCreate},{default:m(()=>t[0]||(t[0]=[g(" 新增角色 ")])),_:1},8,["onClick"])]),action:m(({record:u})=>[i(a,{actions:[{icon:"clarity:note-edit-line",onClick:o.handleEdit.bind(null,u)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:o.handleDelete.bind(null,u)}}]},null,8,["actions"])]),_:1},8,["onRegister"]),i(d,{onRegister:o.registerDrawer,onSuccess:o.handleSuccess},null,8,["onRegister","onSuccess"])])}const Eo=k(y,[["render",E]]);export{Eo as default};
|