user.api-BMRcwGEd.js 2.3 KB

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