MyTenantList-CtE3gV50.js 4.5 KB

1
  1. var B=Object.defineProperty,E=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var y=(o,t,e)=>t in o?B(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,S=(o,t)=>{for(var e in t||(t={}))K.call(t,e)&&y(o,e,t[e]);if(_)for(var e of _(t))L.call(t,e)&&y(o,e,t[e]);return o},k=(o,t)=>E(o,F(t));var c=(o,t,e)=>new Promise((h,l)=>{var f=i=>{try{p(e.next(i))}catch(m){l(m)}},M=i=>{try{p(e.throw(i))}catch(m){l(m)}},p=i=>i.done?h(i.value):Promise.resolve(i.value).then(f,M);p((e=e.apply(o,t)).next())});import{d as v,o as N,ag as V,aq as q,ar as D,k as a,aD as u,u as r,G as w}from"./vue-vendor-Be68asQ6.js";import"./index-D2G57Sln.js";import"./index-CETWS1o0.js";import{i as G,v as J}from"./tenant.api-BUOMVerp.js";import{b as Q,c as $}from"./tenant.data-zFObjxyE.js";import{ad as g,ah as z,cb as H,u as W}from"./index-BFfnEkVs.js";import{useListPage as X}from"./useListPage-aOfrd-Tw.js";import Y from"./TenantInviteUserModal-Pi7qFtWv.js";import Z from"./TenantUserList-iJX17iR3.js";import tt from"./TenantPackList-BDFuf3-Z.js";import{Q as et}from"./componentMap-BUTAcOmo.js";import ot from"./BasicTable-CuSLkXEu.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./BasicModal-D4gc2R81.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useWindowSizeFn-BTSGGcie.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./renderUtils-DPF_SrxE.js";import"./index-BOEzG86y.js";import"./validator-BLa7ZpAW.js";import"./user.api-BMRcwGEd.js";import"./index-D68l__AG.js";import"./BasicForm-Cv-dsB-e.js";import"./useForm-kcRIHoe0.js";import"./JAreaLinkage-BNOKwn5l.js";import"./areaDataUtil-Cik-Rc_P.js";import"./JSelectUser-DCwPqRxp.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";import"./JSelectDept-DT6g7V5M.js";import"./index-BNFwynfr.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.js";import"./JCodeEditor-CSivhUhT.js";import"./useFormItem-CtGMPcLp.js";import"./htmlmixed-DNSd26j0.js";import"./vue-DbzutmLn.js";/* empty css */import"./JAddInput-BBXQvvpq.js";import"./depart.api-CDwTvdwQ.js";import"./JPopup-DKJW27Yk.js";import"./EasyCronInput-wCv2YMHn.js";import"./JEllipsis-C04xKxcI.js";import"./download-CjoX0_mR.js";import"./base64Conver-24EVOS6V.js";import"./index-D1703ozz.js";import"./index-Bi7PIj53.js";import"./useCountdown-B7iR27pS.js";import"./useFormItemSingle-nLM0QlcI.js";import"./JUpload-cB_Qj2H2.js";import"./index-iuayQczx.js";import"./index-DJQB4_Pr.js";import"./injectionKey-DPVn4AgL.js";import"./TenantPackMenuModal-dyKKFg_y.js";import"./TenantPackUserModal-DHerdRpl.js";import"./TenantUserSelectModal-DZHGVSm5.js";const rt=v({name:"tenant-my-tenant-list"}),Me=v(k(S({},rt),{setup(o){const{createMessage:t}=W(),[e,{openModal:h}]=g(),[l,{openModal:f}]=g(),[M,{openModal:p}]=g(),[i,{openModal:m}]=g(),it=z(),{prefixCls:nt,tableContext:C}=X({designScope:"tenant-template",tableProps:{title:"租户列表",api:J,columns:$,formConfig:{schemas:Q},actionColumn:{width:150,fixed:"right"},rowSelection:{type:"radio"},beforeFetch:n=>Object.assign(n,{userTenantStatus:"1,3,4"})}}),[R,{reload:U},{rowSelection:x,selectedRowKeys:s,selectedRows:at}]=C;function I(n){return[{label:"用户",onClick:O.bind(null,n.id)}]}function T(){f(!0,{})}function P(n){return c(this,null,function*(){n&&(yield G({ids:s.value.join(","),phone:n}))})}function O(n){return c(this,null,function*(){p(!0,{id:n})})}function j(){return c(this,null,function*(){if(r(s).length>1){t.warn("请选择一个");return}m(!0,{tenantId:r(s.value.join(",")),showPackAddAndEdit:!1})})}function st(){(s.value=[])&&U()}return N(()=>{H("我的租户")}),(n,d)=>{const b=V("a-button");return D(),q("div",null,[a(r(ot),{onRegister:r(R),rowSelection:r(x)},{tableTitle:u(()=>[a(b,{preIcon:"ant-design:user-add-outlined",type:"primary",onClick:T,style:{"margin-right":"5px"},disabled:r(s).length===0},{default:u(()=>d[0]||(d[0]=[w("邀请用户加入")])),_:1},8,["disabled"]),a(b,{preIcon:"ant-design:plus-outlined",type:"primary",onClick:j,style:{"margin-right":"5px"},disabled:r(s).length===0},{default:u(()=>d[1]||(d[1]=[w("套餐")])),_:1},8,["disabled"])]),action:u(({record:A})=>[a(r(et),{actions:I(A)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]),a(Y,{onRegister:r(l),onInviteOk:P},null,8,["onRegister"]),a(Z,{onRegister:r(M)},null,8,["onRegister"]),a(tt,{onRegister:r(i)},null,8,["onRegister"])])}}}));export{Me as default};