index-BozO25w4.js 3.9 KB

1
  1. import{d as _,r as S,ag as e,aB as C,ar as T,aD as n,k as i,ah as B,G as w}from"./vue-vendor-Be68asQ6.js";import{u as y}from"./index-D2G57Sln.js";import{b as D}from"./system-CVkOpfKQ.js";import{P as k}from"./index-X83NmVMq.js";import A from"./DeptTree-DxQJG9No.js";import"./index-CETWS1o0.js";import{A as F,s as E,c as I}from"./AccountModal-VCh2jaWe.js";import{bu as M,ad as R,a as V}from"./index-BFfnEkVs.js";import{Q as P}from"./componentMap-BUTAcOmo.js";import W from"./BasicTable-CuSLkXEu.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./useContentHeight-DnE6GxS2.js";import"./useWindowSizeFn-BTSGGcie.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useContentViewHeight-BVCc9jQl.js";import"./usePageContext-WlOC5VNa.js";import"./injectionKey-DPVn4AgL.js";import"./index-BNFwynfr.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useTimeout-Ca5eqGu-.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.js";import"./BasicModal-D4gc2R81.js";import"./index-D68l__AG.js";import"./BasicForm-Cv-dsB-e.js";import"./useForm-kcRIHoe0.js";import"./JAreaLinkage-BNOKwn5l.js";import"./areaDataUtil-Cik-Rc_P.js";import"./JSelectUser-DCwPqRxp.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";import"./JSelectDept-DT6g7V5M.js";import"./JCodeEditor-CSivhUhT.js";import"./useFormItem-CtGMPcLp.js";import"./htmlmixed-DNSd26j0.js";import"./vue-DbzutmLn.js";/* empty css */import"./JAddInput-BBXQvvpq.js";import"./index-BOEzG86y.js";import"./depart.api-CDwTvdwQ.js";import"./JPopup-DKJW27Yk.js";import"./EasyCronInput-wCv2YMHn.js";import"./JEllipsis-C04xKxcI.js";import"./download-CjoX0_mR.js";import"./base64Conver-24EVOS6V.js";import"./index-D1703ozz.js";import"./index-Bi7PIj53.js";import"./useCountdown-B7iR27pS.js";import"./useFormItemSingle-nLM0QlcI.js";import"./JUpload-cB_Qj2H2.js";import"./index-iuayQczx.js";import"./index-DJQB4_Pr.js";const $=_({name:"system-account",components:{BasicTable:W,PageWrapper:k,DeptTree:A,AccountModal:F,TableAction:P},setup(){const o=M(),[r,{openModal:a}]=R(),p=S({}),[b,{reload:s,updateTableDataRecord:l}]=y({title:"账号列表",api:D,rowKey:"id",columns:I,formConfig:{labelWidth:120,schemas:E,autoSubmitOnEnter:!0},useSearchForm:!0,showTableSetting:!0,bordered:!0,handleSearchInfoFn(t){return t},actionColumn:{width:120,title:"操作",dataIndex:"action"}});function m(){a(!0,{isUpdate:!1})}function c(t){a(!0,{record:t,isUpdate:!0})}function u(t){}function d({isUpdate:t,values:g}){if(t){const x=l(g.id,g)}else s()}function f(t=""){p.deptId=t,s()}function h(t){o("/system/account_detail/"+t.id)}return{registerTable:b,registerModal:r,handleCreate:m,handleEdit:c,handleDelete:u,handleSuccess:d,handleSelect:f,handleView:h,searchInfo:p}}});function N(o,r,a,p,b,s){const l=e("DeptTree"),m=e("a-button"),c=e("TableAction"),u=e("BasicTable"),d=e("AccountModal"),f=e("PageWrapper");return T(),C(f,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:n(()=>[i(l,{class:"w-1/4 xl:w-1/5",onSelect:o.handleSelect},null,8,["onSelect"]),i(u,{onRegister:o.registerTable,class:"w-3/4 xl:w-4/5",searchInfo:o.searchInfo},{toolbar:n(()=>[i(m,{type:"primary",onClick:o.handleCreate},{default:n(()=>r[0]||(r[0]=[w("新增账号")])),_:1},8,["onClick"])]),bodyCell:n(({column:h,record:t})=>[h.key==="action"?(T(),C(c,{key:0,actions:[{icon:"clarity:info-standard-line",tooltip:"查看用户详情",onClick:o.handleView.bind(null,t)},{icon:"clarity:note-edit-line",tooltip:"编辑用户资料",onClick:o.handleEdit.bind(null,t)},{icon:"ant-design:delete-outlined",color:"error",tooltip:"删除此账号",popConfirm:{title:"是否确认删除",placement:"left",confirm:o.handleDelete.bind(null,t)}}]},null,8,["actions"])):B("",!0)]),_:1},8,["onRegister","searchInfo"]),i(d,{onRegister:o.registerModal,onSuccess:o.handleSuccess},null,8,["onRegister","onSuccess"])]),_:1})}const Kt=V($,[["render",N]]);export{Kt as default};