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