1 |
- import{B as h}from"./TableImg.6b99eb73.js";import{T as C}from"./index.c3e0a369.js";import{u as g}from"./useTable.3fccb17f.js";import{a as _}from"./system.6440c027.js";import{b as T}from"./index.48fd6577.js";import{D as k,c as B,s as D}from"./DeptModal.137cd2cc.js";import{av as E,a as M,a_ as e,o as d,h as y,n as a,y as m,z as S,j as v,k as R}from"./index.3f97cc33.js";import"./index.9f019cdd.js";import"./Checkbox.d22129d5.js";import"./index.cde36067.js";import"./index.bfa19e2c.js";import"./eagerComputed.ab644b1a.js";import"./FileOutlined.eac4c93b.js";import"./BasicForm.2ae13259.js";/* empty css *//* empty css */import"./index.222f0459.js";import"./index.309e8a99.js";import"./index.6757786b.js";import"./index.ade181eb.js";import"./get.7e5a4802.js";import"./DeleteOutlined.9e5fb76b.js";import"./transButton.54be5ef0.js";import"./index.a54fbaf1.js";import"./index.872d0787.js";import"./Col.a5c4aef2.js";import"./useFlexGapSupport.a62ab4b7.js";import"./index.137cd5fa.js";import"./Form.e8d8d176.js";import"./_baseIteratee.74621dd5.js";import"./useSize.029b57c4.js";import"./uniqBy.66af1ece.js";import"./useForm.8deaf95d.js";import"./index.e8c88e99.js";import"./index.0abd0285.js";import"./index.e9945251.js";import"./useWindowSizeFn.63c1b6a0.js";import"./useContentViewHeight.1983ed20.js";import"./ArrowLeftOutlined.5c21fff9.js";import"./index.2b936b77.js";import"./FormOutlined.abb32020.js";import"./index.6ecec018.js";import"./index.b35c80c0.js";import"./useRefs.428779fe.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.fe1eaec0.js";import"./FullscreenOutlined.79df86c0.js";import"./index.4e54ae7e.js";import"./fromPairs.84aabb58.js";import"./scrollTo.073f007f.js";import"./index.5b650468.js";import"./Group.ae7e47e2.js";import"./index.4ffbbda4.js";import"./index.f3e20199.js";import"./download.ab58da56.js";import"./base64Conver.08b9f4ec.js";const w=M({name:"DeptManagement",components:{BasicTable:h,DeptModal:k,TableAction:C},setup(){const[o,{openModal:i}]=T(),[p,{reload:s}]=g({title:"\u90E8\u95E8\u5217\u8868",api:_,columns:B,formConfig:{labelWidth:120,schemas:D},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 l(){i(!0,{isUpdate:!1})}function c(t){i(!0,{record:t,isUpdate:!0})}function r(t){}function n(){s()}return{registerTable:p,registerModal:o,handleCreate:l,handleEdit:c,handleDelete:r,handleSuccess:n}}});function A(o,i,p,s,l,c){const r=e("a-button"),n=e("TableAction"),t=e("BasicTable"),f=e("DeptModal");return d(),y("div",null,[a(t,{onRegister:o.registerTable},{toolbar:m(()=>[a(r,{type:"primary",onClick:o.handleCreate},{default:m(()=>[S(" \u65B0\u589E\u90E8\u95E8 ")]),_:1},8,["onClick"])]),bodyCell:m(({column:b,record:u})=>[b.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"])):R("",!0)]),_:1},8,["onRegister"]),a(f,{onRegister:o.registerModal,onSuccess:o.handleSuccess},null,8,["onRegister","onSuccess"])])}var No=E(w,[["render",A]]);export{No as default};
|