import{B as S}from"./TableImg.6b99eb73.js";import{T as F}from"./index.c3e0a369.js";import{u as B}from"./useTable.3fccb17f.js";import{g as D}from"./system.6440c027.js";import{P as w}from"./index.e8c88e99.js";import y from"./DeptTree.d58da629.js";import{b as A}from"./index.48fd6577.js";import{A as k,c as I,s as M}from"./AccountModal.7f5a69db.js";import{av as E,a as R,aO as V,v,a_ as t,o as C,j as _,y as n,n as r,z as P,k as W}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"./FormOutlined.abb32020.js";import"./index.6ecec018.js";import"./index.b35c80c0.js";import"./useRefs.428779fe.js";import"./useWindowSizeFn.63c1b6a0.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";import"./index.0abd0285.js";import"./index.e9945251.js";import"./useContentViewHeight.1983ed20.js";import"./ArrowLeftOutlined.5c21fff9.js";import"./index.2b936b77.js";import"./index.72e08b6d.js";import"./useContextMenu.6491433e.js";const $=R({name:"AccountManagement",components:{BasicTable:S,PageWrapper:w,DeptTree:y,AccountModal:k,TableAction:F},setup(){const e=V(),[h,{openModal:i}]=A(),a=v({}),[g,{reload:l,updateTableDataRecord:p}]=B({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 o},actionColumn:{width:120,title:"\u64CD\u4F5C",dataIndex:"action"}});function s(){i(!0,{isUpdate:!1})}function c(o){i(!0,{record:o,isUpdate:!0})}function m(o){}function u({isUpdate:o,values:b}){if(o){const T=p(b.id,b)}else l()}function d(o=""){a.deptId=o,l()}function f(o){e("/system/account_detail/"+o.id)}return{registerTable:g,registerModal:h,handleCreate:s,handleEdit:c,handleDelete:m,handleSuccess:u,handleSelect:d,handleView:f,searchInfo:a}}});function N(e,h,i,a,g,l){const p=t("DeptTree"),s=t("a-button"),c=t("TableAction"),m=t("BasicTable"),u=t("AccountModal"),d=t("PageWrapper");return C(),_(d,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:n(()=>[r(p,{class:"w-1/4 xl:w-1/5",onSelect:e.handleSelect},null,8,["onSelect"]),r(m,{onRegister:e.registerTable,class:"w-3/4 xl:w-4/5",searchInfo:e.searchInfo},{toolbar:n(()=>[r(s,{type:"primary",onClick:e.handleCreate},{default:n(()=>[P("\u65B0\u589E\u8D26\u53F7")]),_:1},8,["onClick"])]),bodyCell:n(({column:f,record:o})=>[f.key==="action"?(C(),_(c,{key:0,actions:[{icon:"clarity:info-standard-line",tooltip:"\u67E5\u770B\u7528\u6237\u8BE6\u60C5",onClick:e.handleView.bind(null,o)},{icon:"clarity:note-edit-line",tooltip:"\u7F16\u8F91\u7528\u6237\u8D44\u6599",onClick:e.handleEdit.bind(null,o)},{icon:"ant-design:delete-outlined",color:"error",tooltip:"\u5220\u9664\u6B64\u8D26\u53F7",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"left",confirm:e.handleDelete.bind(null,o)}}]},null,8,["actions"])):W("",!0)]),_:1},8,["onRegister","searchInfo"]),r(u,{onRegister:e.registerModal,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])]),_:1})}var Go=E($,[["render",N]]);export{Go as default};