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-KOQNKxnC.js";import{b as k}from"./system-CzFL1ZBw.js";import{P as A}from"./index-D55rh6hR.js";import D from"./DeptTree-i4r1n0lP.js";import"./index-XZKTTfG1.js";import{s as F,c as E,A as I}from"./AccountModal-xUoWfczx.js";import{bo as M,a9 as V,_ as R}from"./index-CLZzJyTP.js";import{Q as P}from"./componentMap-DpsJvoqz.js";import W from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useContentHeight-DLfJuPsF.js";import"./useWindowSizeFn-D9PllI8g.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useContentViewHeight-BIb_dTbE.js";import"./usePageContext-FyDvfV_K.js";import"./injectionKey-DPVn4AgL.js";import"./index-44tRnyoF.js";import"./index-DvqyyN77.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-BGU2vdqV.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.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};
