text: import{_ as e}from"./TableImg.aa3bf976.js";import{g as t}from"./BasicForm.d6bc90d8.js";import{u as o}from"./useTable.2b02bf57.js";import{g as n}from"./system.6381ded4.js";import{P as i}from"./index.ee54ff18.js";import a from"./DeptTree.426b4a69.js";import{b as s}from"./index.116df12f.js";import{_ as r,c as d,s as c}from"./AccountModal.5226e585.js";import{r as l}from"./index.10e3b51a.js";import{y as m,N as p,Z as f,B as u,F as b,a2 as j,v as x,a9 as h}from"./vendor.880b4c6c.js";/* empty css              *//* empty css              */import"./useForm.1b895cf0.js";/* empty css              *//* empty css              *//* empty css              */import"./uuid.2b29000c.js";import"./useWindowSizeFn.564cf32e.js";import"./onMountedOrActivated.8f899bfb.js";/* empty css              */import"./useSortable.6ed16464.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              */import"./index.981ceacd.js";/* empty css              *//* empty css              *//* empty css              */import"./download.db26d4fe.js";import"./base64Conver.bb012c73.js";import"./index.f38aca4b.js";/* empty css              *//* empty css              */import"./useContentViewHeight.17c92794.js";import"./Tree.vue_vue&type=style&index=0&lang.3379d7f3.js";import"./useContextMenu.71a4b76c.js";var g=m({name:"AccountManagement",components:{BasicTable:e,PageWrapper:i,DeptTree:a,AccountModal:r,TableAction:t},setup(){const e=l(),[t,{openModal:i}]=s(),a=p({}),[r,{reload:m,updateTableDataRecord:f}]=o({title:"账号列表",api:n,rowKey:"id",columns:d,formConfig:{labelWidth:120,schemas:c,autoSubmitOnEnter:!0},useSearchForm:!0,showTableSetting:!0,bordered:!0,handleSearchInfoFn:e=>e,actionColumn:{width:120,title:"操作",dataIndex:"action",slots:{customRender:"action"}}});return{registerTable:r,registerModal:t,handleCreate:function(){i(!0,{isUpdate:!1})},handleEdit:function(e){i(!0,{record:e,isUpdate:!0})},handleDelete:function(e){},handleSuccess:function({isUpdate:e,values:t}){if(e){f(t.id,t)}else m()},handleSelect:function(e=""){a.deptId=e,m()},handleView:function(t){e("/system/account_detail/"+t.id)},searchInfo:a}}});const S=h("新增账号");g.render=function(e,t,o,n,i,a){const s=f("DeptTree"),r=f("a-button"),d=f("TableAction"),c=f("BasicTable"),l=f("AccountModal"),m=f("PageWrapper");return u(),b(m,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:j((()=>[x(s,{class:"w-1/4 xl:w-1/5",onSelect:e.handleSelect},null,8,["onSelect"]),x(c,{onRegister:e.registerTable,class:"w-3/4 xl:w-4/5",searchInfo:e.searchInfo},{toolbar:j((()=>[x(r,{type:"primary",onClick:e.handleCreate},{default:j((()=>[S])),_:1},8,["onClick"])])),action:j((({record:t})=>[x(d,{actions:[{icon:"clarity:info-standard-line",tooltip:"查看用户详情",onClick:e.handleView.bind(null,t)},{icon:"clarity:note-edit-line",tooltip:"编辑用户资料",onClick:e.handleEdit.bind(null,t)},{icon:"ant-design:delete-outlined",color:"error",tooltip:"删除此账号",popConfirm:{title:"是否确认删除",confirm:e.handleDelete.bind(null,t)}}]},null,8,["actions"])])),_:1},8,["onRegister","searchInfo"]),x(l,{onRegister:e.registerModal,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])),_:1})};export default g;
  