1 |
- import{B as h}from"./TableImg.8fe3d61a.js";import{T as C}from"./index.a7ed205f.js";import{u as g}from"./useTable.37d2a279.js";import{a as _}from"./system.5c1da1d7.js";import{b as T}from"./index.1ca4cef4.js";import{D as k,c as B,s as D}from"./DeptModal.0bcc4d36.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.723c022d.js";import"./index.672cb799.js";import"./Checkbox.c04f7b55.js";import"./index.fbbd1f1f.js";import"./index.11082491.js";import"./eagerComputed.c778769d.js";import"./FileOutlined.de22406c.js";import"./BasicForm.e6661e7b.js";/* empty css *//* empty css */import"./index.9a19a3f7.js";import"./index.8f225c1e.js";import"./index.8663089e.js";import"./index.3fb6ac38.js";import"./get.86e6b49d.js";import"./DeleteOutlined.6291cf54.js";import"./transButton.10f02921.js";import"./index.ed278b64.js";import"./index.c12b00dd.js";import"./Col.58b8a958.js";import"./useFlexGapSupport.4d92c09c.js";import"./index.e3c0dcb4.js";import"./Form.9dcaf6f8.js";import"./_baseIteratee.826d6655.js";import"./useSize.a1b385c4.js";import"./uniqBy.4b69f709.js";import"./useForm.07244cd7.js";import"./index.6bc64354.js";import"./index.d5e83f0f.js";import"./index.55dec4bb.js";import"./useWindowSizeFn.79f59aef.js";import"./useContentViewHeight.eea93209.js";import"./ArrowLeftOutlined.09823751.js";import"./index.bab0934d.js";import"./FormOutlined.3bac65b1.js";import"./index.9141ffb0.js";import"./index.09b55302.js";import"./useRefs.c430f5ca.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.2d33fcab.js";import"./FullscreenOutlined.3316925c.js";import"./index.f60fc8fa.js";import"./fromPairs.84aabb58.js";import"./scrollTo.6ea53bed.js";import"./index.9e723d47.js";import"./Group.436b142a.js";import"./index.274a2934.js";import"./index.94ab951f.js";import"./download.6473a23c.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};
|