import{h as s}from"./index-CLZzJyTP.js";import{M as u}from"./antd-vue-vendor-CahNzUUa.js";const c="/sys/user/exportXls",y="/sys/user/importExcel",i=e=>s.get({url:"/sys/user/list",params:e}),g=e=>s.get({url:"/sys/user/listAll",params:e}),d=e=>s.get({url:"/sys/user/queryUserRole",params:e},{errorMessageMode:"none"}),U=(e,t)=>s.delete({url:"/sys/user/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),h=(e,t)=>{u.confirm({title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>s.delete({url:"/sys/user/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},T=(e,t)=>{let r=t?"/sys/user/edit":"/sys/user/add";return s.post({url:r,params:e})},m=e=>s.get({url:"/sys/duplicate/check",params:e},{isTransformResponse:!1});let a;const B=e=>new Promise((t,r)=>{clearTimeout(a),a=setTimeout(()=>{s.get({url:"/sys/duplicate/check",params:e},{isTransformResponse:!1}).then(n=>{t(n)}).catch(n=>{r(n)})},500)}),L=e=>s.get({url:"/sys/role/queryall",params:e}),p=e=>s.get({url:"/sys/role/queryallNoByTenant",params:e}),R=e=>s.get({url:"/sys/tenant/queryList",params:e}),f=e=>s.get({url:"/sys/user/userDepartList",params:e},{successMessageMode:"none"});const P=e=>s.get({url:"/sys/user/recycleBin",params:e}),Q=(e,t)=>s.put({url:"/sys/user/putRecycleBin",params:e}).then(()=>{t()}),q=(e,t)=>s.delete({url:"/sys/user/deleteRecycleBin",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),x=e=>s.put({url:"/sys/user/changePassword",params:e}),k=(e,t)=>s.put({url:"/sys/user/frozenBatch",params:e}).then(()=>{t()}),C=e=>s.get({url:"/sys/sysUserAgent/queryByUserName",params:e},{isTransformResponse:!1}),N=e=>{let t=e.id?"/sys/sysUserAgent/edit":"/sys/sysUserAgent/add";return s.post({url:t,params:e})},w=e=>s.put({url:"/sys/user/userQuitAgent",params:e}),j=e=>s.get({url:"/sys/user/getQuitList",params:e}),v=(e,t)=>s.put({url:"/sys/user/putCancelQuit",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),D=e=>s.get({url:"/sys/tenant/getUserTenantPageList",params:e}),M=e=>s.put({url:"/sys/tenant/updateUserTenantStatus",params:e},{joinParamsToUrl:!0,isTransformResponse:!1});export{B as a,f as b,L as c,m as d,p as e,R as f,d as g,D as h,C as i,w as j,j as k,i as l,x as m,N as n,P as o,v as p,Q as q,q as r,T as s,g as t,M as u,y as v,c as w,U as x,k as y,h as z};
