Files
qhmes/deploy-qhmes/frontend/js/index-SUxWZiSd.js
2026-05-15 11:34:12 +08:00

2 lines
4.1 KiB
Java

import{d as _,r as S,ah as e,aC as C,as as T,aF as i,k as n,ag as w,G as y}from"./vue-vendor-C7Zq48Yl.js";import{u as k}from"./index-BgJbdjPf.js";import{b as A}from"./system-CeA8A5vN.js";import{P as I}from"./index-C57gqG5N.js";import M from"./DeptTree-DFXvDpqb.js";import"./index-Du0A3ksf.js";import{A as B,s as D,c as F}from"./AccountModal-CGcJPJx5.js";import{bB as R,al as V,d as P}from"./index-BI6CMai0.js";import{J as W}from"./componentMap-BBZeqR-K.js";import $ from"./BasicTable-DfLkrEeh.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./useContentHeight-BUFNkYs_.js";import"./useWindowSizeFn-PRZSD86C.js";import"./vxe-table-vendor-B88kchpX.js";import"./useContentViewHeight-BO9bTdue.js";import"./usePageContext-l-f4bNz7.js";import"./injectionKey-DPVn4AgL.js";import"./index-CUdllngZ.js";import"./index-DeEq83Ov.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useTimeout-DDl4l82I.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./useContextMenu-Cwx1lIOK.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./areaDataUtil-CbYCy3Ig.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JSelectDept-DRDVeruW.js";import"./TreeIcon-DE4jdeZV.js";import"./JCodeEditor-CLVZA7Uj.js";import"./useFormItem-BdW6EoZe.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./JAddInput-D6qcyZjQ.js";import"./index-CNkz_PUv.js";import"./depart.api-DeMNV8zW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./useMethods-DVip17X8.js";import"./index-Dg4HCEvo.js";import"./EasyCronInput-7xfJ3nBh.js";import"./JEllipsis-DqRFTSm0.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";const E=_({name:"system-account",components:{BasicTable:$,PageWrapper:I,DeptTree:M,AccountModal:B,TableAction:W},setup(){const o=R(),[r,{openModal:a}]=V(),p=S({}),[b,{reload:m,updateTableDataRecord:s}]=k({title:"账号列表",api:A,rowKey:"id",columns:F,formConfig:{labelWidth:120,schemas:D,autoSubmitOnEnter:!0},useSearchForm:!0,showTableSetting:!0,bordered:!0,handleSearchInfoFn(t){return t},actionColumn:{width:120,title:"操作",dataIndex:"action"}});function l(){a(!0,{isUpdate:!1})}function c(t){a(!0,{record:t,isUpdate:!0})}function d(t){}function u({isUpdate:t,values:g}){if(t){const x=s(g.id,g)}else m()}function f(t=""){p.deptId=t,m()}function h(t){o("/system/account_detail/"+t.id)}return{registerTable:b,registerModal:r,handleCreate:l,handleEdit:c,handleDelete:d,handleSuccess:u,handleSelect:f,handleView:h,searchInfo:p}}});function N(o,r,a,p,b,m){const s=e("DeptTree"),l=e("a-button"),c=e("TableAction"),d=e("BasicTable"),u=e("AccountModal"),f=e("PageWrapper");return T(),C(f,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:i(()=>[n(s,{class:"w-1/4 xl:w-1/5",onSelect:o.handleSelect},null,8,["onSelect"]),n(d,{onRegister:o.registerTable,class:"w-3/4 xl:w-4/5",searchInfo:o.searchInfo},{toolbar:i(()=>[n(l,{type:"primary",onClick:o.handleCreate},{default:i(()=>[...r[0]||(r[0]=[y("新增账号",-1)])]),_:1},8,["onClick"])]),bodyCell:i(({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"])):w("",!0)]),_:1},8,["onRegister","searchInfo"]),n(u,{onRegister:o.registerModal,onSuccess:o.handleSuccess},null,8,["onRegister","onSuccess"])]),_:1})}const Ot=P(E,[["render",N]]);export{Ot as default};