var d=(e,t,s)=>new Promise((i,c)=>{var u=a=>{try{r(s.next(a))}catch(o){c(o)}},y=a=>{try{r(s.throw(a))}catch(o){c(o)}},r=a=>a.done?i(a.value):Promise.resolve(a.value).then(u,y);r((s=s.apply(e,t)).next())});import{h as n,bj as T}from"./index-CLZzJyTP.js";import{M as l}from"./antd-vue-vendor-CahNzUUa.js";const L=e=>n.get({url:"/sys/tenant/list",params:e}),m=(e,t)=>{let s=t?"/sys/tenant/edit":"/sys/tenant/add";return n.post({url:s,params:e})},P=e=>n.get({url:"/sys/tenant/queryById",params:e}),v=(e,t)=>n.delete({url:"/sys/tenant/delete",data:e},{joinParamsToUrl:!0}).then(()=>{t()}),B=(e,t)=>{l.confirm({title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/sys/tenant/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},h=e=>n.get({url:"/sys/tenant/getCurrentUserTenant",params:e}),j=e=>n.put({url:"/sys/tenant/invitationUserJoin",params:e},{joinParamsToUrl:!0}),f=e=>n.get({url:"/sys/tenant/getTenantUserList",params:e}),I=(e,t)=>{l.confirm({title:"请离",content:"是否请离该用户",okText:"确认",cancelText:"取消",onOk:()=>n.put({url:"/sys/tenant/leaveTenant",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},q=e=>n.get({url:"/sys/tenant/packList",params:e}),x=e=>n.post({url:"/sys/tenant/addPackPermission",params:e}),D=e=>n.put({url:"/sys/tenant/editPackPermission",params:e}),J=(e,t)=>n.delete({url:"/sys/tenant/deleteTenantPack",data:e},{joinParamsToUrl:!0}).then(()=>{t()}),O=e=>n.get({url:"/sys/tenant/recycleBinPageList",params:e}),b=(e,t)=>n.delete({url:"/sys/tenant/deleteLogicDeleted",params:e},{joinParamsToUrl:!0}).then(()=>{t()}).catch(()=>{t()}),C=(e,t)=>n.put({url:"/sys/tenant/revertTenantLogic",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),M=e=>n.get({url:"/sys/tenant/queryTenantPackUserList",params:e}),w=e=>n.put({url:"/sys/tenant/deleteTenantPackUser",params:e}),H=e=>n.post({url:"/sys/tenant/addTenantPackUser",params:e}),N=e=>n.get({url:"/sys/tenant/getTenantPageListByUserId",params:e});function z(){return d(this,null,function*(){let e=T();if(e){let t=yield P({id:e});if(t)return t.name}return"空"})}const E=(e,t)=>{let s=t?"/sys/user/editTenantUser":"/sys/user/add";return n.post({url:s,params:e},{joinParamsToUrl:!0})};export{P as a,m as b,C as c,b as d,f as e,L as f,z as g,v as h,B as i,j,J as k,I as l,x as m,D as n,H as o,q as p,M as q,O as r,E as s,w as t,N as u,h as v};
