import{d as f,U as i,a2 as b,a3 as h,k as r,af as m,G as g}from"./vue-vendor-CxLCUzY4.js";import{u as C}from"./index-gyz1IdHU.js";import{a as T}from"./system-CBHpRUjh.js";import"./index-zKZnG1QC.js";import{s as _,c as B,D}from"./DeptModal-S2mm5Lsu.js";import{a9 as E,_ as M}from"./index-Cy4uayzW.js";import{Q as S}from"./componentMap-0iK4HQBq.js";import k from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./injectionKey-DPVn4AgL.js";const R=f({name:"system-dept",components:{BasicTable:k,DeptModal:D,TableAction:S},setup(){const[t,{openModal:o}]=E(),[p,{reload:s}]=C({title:"部门列表",api:T,columns:B,formConfig:{labelWidth:120,schemas:_},pagination:!1,striped:!1,useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!1,canResize:!1,actionColumn:{width:80,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});function l(){o(!0,{isUpdate:!1})}function c(e){o(!0,{record:e,isUpdate:!0})}function n(e){}function a(){s()}return{registerTable:p,registerModal:t,handleCreate:l,handleEdit:c,handleDelete:n,handleSuccess:a}}});function w(t,o,p,s,l,c){const n=i("a-button"),a=i("TableAction"),e=i("BasicTable"),u=i("DeptModal");return b(),h("div",null,[r(e,{onRegister:t.registerTable},{tableTitle:m(()=>[r(n,{type:"primary",onClick:t.handleCreate},{default:m(()=>o[0]||(o[0]=[g(" 新增部门 ")])),_:1},8,["onClick"])]),action:m(({record:d})=>[r(a,{actions:[{icon:"clarity:note-edit-line",onClick:t.handleEdit.bind(null,d)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:t.handleDelete.bind(null,d)}}]},null,8,["actions"])]),_:1},8,["onRegister"]),r(u,{onRegister:t.registerModal,onSuccess:t.handleSuccess},null,8,["onRegister","onSuccess"])])}const $t=M(R,[["render",w]]);export{$t as default};
