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-gyz1IdHU.js";import{b as k}from"./system-CBHpRUjh.js";import{P as A}from"./index-CRgSyMPH.js";import D from"./DeptTree-DxdpklMs.js";import"./index-zKZnG1QC.js";import{s as F,c as E,A as I}from"./AccountModal-uDtiNwqc.js";import{bo as M,a9 as V,_ as R}from"./index-Cy4uayzW.js";import{Q as P}from"./componentMap-0iK4HQBq.js";import W from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useContentHeight-XU-h1taH.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useContentViewHeight-Qm4QNm5l.js";import"./usePageContext-CXQdt-5h.js";import"./injectionKey-DPVn4AgL.js";import"./index-CNQBnF3P.js";import"./index-Bdn0r8CG.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-Q6J5bB_u.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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 jo=R($,[["render",N]]);export{jo as default};
