import{d as _,r as S,U as e,a2 as C,ad as T,af as i,k as n,V as w,G as y}from"./vue-vendor-CxLCUzY4.js";import{u as B}from"./index-BN5Ac_IG.js";import{b as k}from"./system-CSPmx4m6.js";import{P as A}from"./index-BxgvQLkr.js";import D from"./DeptTree-Bvcvy94V.js";import"./index-CF_FJn6P.js";import{s as F,c as E,A as I}from"./AccountModal-4O44B8BB.js";import{bo as M,a9 as V,_ as R}from"./index-CYriLmQo.js";import{Q as P}from"./componentMap-7D1QIeNI.js";import W from"./BasicTable-DAfCfXmD.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useContentHeight-DtBiGC0g.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useContentViewHeight-D71xl1HH.js";import"./usePageContext-CCgh0KDo.js";import"./injectionKey-DPVn4AgL.js";import"./index-BTAl55Kt.js";import"./index-CxQILSKV.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-DYyhcDf7.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";const $=_({name:"system-account",components:{BasicTable:W,PageWrapper:A,DeptTree:D,AccountModal:I,TableAction:P},setup(){const t=M(),[r,{openModal:a}]=V(),p=S({}),[b,{reload:m,updateTableDataRecord:s}]=B({title:"账号列表",api:k,rowKey:"id",columns:E,formConfig:{labelWidth:120,schemas:F,autoSubmitOnEnter:!0},useSearchForm:!0,showTableSetting:!0,bordered:!0,handleSearchInfoFn(o){return o},actionColumn:{width:120,title:"操作",dataIndex:"action"}});function l(){a(!0,{isUpdate:!1})}function c(o){a(!0,{record:o,isUpdate:!0})}function u(o){}function d({isUpdate:o,values:g}){if(o){const U=s(g.id,g)}else m()}function f(o=""){p.deptId=o,m()}function h(o){t("/system/account_detail/"+o.id)}return{registerTable:b,registerModal:r,handleCreate:l,handleEdit:c,handleDelete:u,handleSuccess:d,handleSelect:f,handleView:h,searchInfo:p}}});function N(t,r,a,p,b,m){const s=e("DeptTree"),l=e("a-button"),c=e("TableAction"),u=e("BasicTable"),d=e("AccountModal"),f=e("PageWrapper");return C(),T(f,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:i(()=>[n(s,{class:"w-1/4 xl:w-1/5",onSelect:t.handleSelect},null,8,["onSelect"]),n(u,{onRegister:t.registerTable,class:"w-3/4 xl:w-4/5",searchInfo:t.searchInfo},{toolbar:i(()=>[n(l,{type:"primary",onClick:t.handleCreate},{default:i(()=>r[0]||(r[0]=[y("新增账号")])),_:1},8,["onClick"])]),bodyCell:i(({column:h,record:o})=>[h.key==="action"?(C(),T(c,{key:0,actions:[{icon:"clarity:info-standard-line",tooltip:"查看用户详情",onClick:t.handleView.bind(null,o)},{icon:"clarity:note-edit-line",tooltip:"编辑用户资料",onClick:t.handleEdit.bind(null,o)},{icon:"ant-design:delete-outlined",color:"error",tooltip:"删除此账号",popConfirm:{title:"是否确认删除",placement:"left",confirm:t.handleDelete.bind(null,o)}}]},null,8,["actions"])):w("",!0)]),_:1},8,["onRegister","searchInfo"]),n(d,{onRegister:t.registerModal,onSuccess:t.handleSuccess},null,8,["onRegister","onSuccess"])]),_:1})}const Qo=R($,[["render",N]]);export{Qo as default};
