import{B as C}from"./TableImg.2aabef6a.js";import{j as T}from"./BasicForm.d11b68fd.js";import{u as S}from"./useTable.13a8b0ff.js";import{g as D}from"./system.d37449cd.js";import{P as F}from"./index.566277e5.js";import B from"./DeptTree.378f40df.js";import{b as w}from"./index.c05f9254.js";import{A,c as I,s as M}from"./AccountModal.c863e28f.js";import{aP as E,a as R,aD as k,m as y,aQ as e,o as P,aR as V,p as i,j as r,q as W}from"./index.0d073eaa.js";import"./index.965098be.js";import"./Checkbox.476f6e92.js";import"./index.1491cab6.js";import"./index.e8b360cf.js";import"./eagerComputed.156e81ff.js";import"./useForm.868c8e81.js";import"./index.7075e2b7.js";import"./index.04f7e044.js";import"./index.e317a008.js";import"./uuid.2b29000c.js";import"./index.2b5ea4f6.js";import"./_baseIteratee.3919e7cf.js";import"./get.49a42f2e.js";import"./DeleteOutlined.247d1f35.js";import"./index.a8c197b8.js";import"./useRefs.e81831e2.js";import"./Form.48352728.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";import"./useSize.bb4e5ce5.js";import"./useWindowSizeFn.ef20ece8.js";import"./index.0fb15725.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.32117fb5.js";import"./FullscreenOutlined.401a7bcd.js";import"./index.dd1f987c.js";import"./fromPairs.84aabb58.js";import"./scrollTo.f8a2fd00.js";import"./index.2ed1a060.js";/* empty css              *//* empty css              */import"./index.e8daa066.js";import"./index.81899e8a.js";import"./index.ffb8ac7d.js";import"./download.bb4c9304.js";import"./base64Conver.08b9f4ec.js";import"./index.31930d74.js";import"./index.1d29734e.js";import"./uniqBy.ac0f9c38.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";import"./index.9d5559d9.js";import"./useContextMenu.cd4142a5.js";const $=R({name:"AccountManagement",components:{BasicTable:C,PageWrapper:F,DeptTree:B,AccountModal:A,TableAction:T},setup(){const t=k(),[h,{openModal:a}]=w(),l=y({}),[g,{reload:s,updateTableDataRecord:c}]=S({title:"\u8D26\u53F7\u5217\u8868",api:D,rowKey:"id",columns:I,formConfig:{labelWidth:120,schemas:M,autoSubmitOnEnter:!0},useSearchForm:!0,showTableSetting:!0,bordered:!0,handleSearchInfoFn(o){return console.log("handleSearchInfoFn",o),o},actionColumn:{width:120,title:"\u64CD\u4F5C",dataIndex:"action",slots:{customRender:"action"}}});function p(){a(!0,{isUpdate:!1})}function m(o){console.log(o),a(!0,{record:o,isUpdate:!0})}function u(o){console.log(o)}function d({isUpdate:o,values:b}){if(o){const _=c(b.id,b);console.log(_)}else s()}function f(o=""){l.deptId=o,s()}function n(o){t("/system/account_detail/"+o.id)}return{registerTable:g,registerModal:h,handleCreate:p,handleEdit:m,handleDelete:u,handleSuccess:d,handleSelect:f,handleView:n,searchInfo:l}}}),j=W("\u65B0\u589E\u8D26\u53F7");function v(t,h,a,l,g,s){const c=e("DeptTree"),p=e("a-button"),m=e("TableAction"),u=e("BasicTable"),d=e("AccountModal"),f=e("PageWrapper");return P(),V(f,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:i(()=>[r(c,{class:"w-1/4 xl:w-1/5",onSelect:t.handleSelect},null,8,["onSelect"]),r(u,{onRegister:t.registerTable,class:"w-3/4 xl:w-4/5",searchInfo:t.searchInfo},{toolbar:i(()=>[r(p,{type:"primary",onClick:t.handleCreate},{default:i(()=>[j]),_:1},8,["onClick"])]),action:i(({record:n})=>[r(m,{actions:[{icon:"clarity:info-standard-line",tooltip:"\u67E5\u770B\u7528\u6237\u8BE6\u60C5",onClick:t.handleView.bind(null,n)},{icon:"clarity:note-edit-line",tooltip:"\u7F16\u8F91\u7528\u6237\u8D44\u6599",onClick:t.handleEdit.bind(null,n)},{icon:"ant-design:delete-outlined",color:"error",tooltip:"\u5220\u9664\u6B64\u8D26\u53F7",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"left",confirm:t.handleDelete.bind(null,n)}}]},null,8,["actions"])]),_:1},8,["onRegister","searchInfo"]),r(d,{onRegister:t.registerModal,onSuccess:t.handleSuccess},null,8,["onRegister","onSuccess"])]),_:1})}var Uo=E($,[["render",v]]);export{Uo as default};
