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-LwlFn7Y4.js";import{b as k}from"./system-CPwSAvs9.js";import{P as A}from"./index-DaObvZxT.js";import D from"./DeptTree-C1hoe8F-.js";import"./index-D2AmS0aU.js";import{s as F,c as E,A as I}from"./AccountModal-Bm3d2sIo.js";import{bo as M,a9 as V,_ as R}from"./index-B_2CoVdl.js";import{Q as P}from"./componentMap-CzCGDP7x.js";import W from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useContentHeight-BWLGvKEC.js";import"./useWindowSizeFn-C3WExEpc.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useContentViewHeight-DlpfApuB.js";import"./usePageContext-HMYqek-Q.js";import"./injectionKey-DPVn4AgL.js";import"./index-BKs2x_To.js";import"./index-DAURrYyA.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-CSt5a1-F.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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};
