var n=(u,p,r)=>new Promise((f,a)=>{var l=t=>{try{i(r.next(t))}catch(m){a(m)}},c=t=>{try{i(r.throw(t))}catch(m){a(m)}},i=t=>t.done?f(t.value):Promise.resolve(t.value).then(l,c);i((r=r.apply(u,p)).next())});import{d as M,f as B,u as e,U as L,a2 as _,ad as b,af as s,k as h,G as R,V as P,ag as U}from"./vue-vendor-CxLCUzY4.js";import{B as V}from"./index-XZKTTfG1.js";import{u as N,a as O}from"./tenant.data-Byz3LKFo.js";import{e as j,l as x}from"./tenant.api-BupkcWMH.js";import{useListPage as F}from"./useListPage-CevWQ3ci.js";import"./index-KOQNKxnC.js";import{a8 as K,_ as A}from"./index-CLZzJyTP.js";import{Q as G}from"./componentMap-DpsJvoqz.js";import Q from"./BasicTable-DUJWN3yz.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./renderUtils-BgFeePLc.js";import"./index-C7yPiS0L.js";import"./validator-Dx9kcZ5e.js";import"./user.api-DAu0nuTv.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";const W="成员",$=M({__name:"TenantUserList",emits:["register","success"],setup(u,{emit:p}){const r=B(0),{prefixCls:f,tableContext:a}=F({designScope:"tenant-template",tableProps:{api:j,columns:O,immediate:!1,formConfig:{schemas:N,labelWidth:40,actionColOptions:{xs:24,sm:8,md:8,lg:8,xl:8,xxl:8}},beforeFetch:o=>Object.assign(o,{userTenantId:e(r)})}}),[l,{reload:c},{rowSelection:i,selectedRowKeys:t}]=a,m=p,[C,{setModalProps:q,closeModal:v}]=K(o=>n(this,null,function*(){r.value=o.id,d()}));function y(o){return n(this,null,function*(){v()})}function I(o){return[{label:"移除",onClick:w.bind(null,o.id)}]}function d(){(t.value=[])&&c()}function w(o){return n(this,null,function*(){yield x({userIds:o,tenantId:e(r)},d)})}function T(){return n(this,null,function*(){yield x({userIds:t.value.join(","),tenantId:e(r)},d)})}return(o,g)=>{const k=L("a-button");return _(),b(e(V),U(o.$attrs,{onRegister:e(C),title:W,onOk:y,width:"800px"}),{default:s(()=>[h(e(Q),{onRegister:e(l),rowSelection:e(i)},{tableTitle:s(()=>[e(t).length>0?(_(),b(k,{key:0,preIcon:"ant-design:delete-outlined",type:"primary",onClick:T,style:{"margin-right":"5px"}},{default:s(()=>g[0]||(g[0]=[R("批量请离")])),_:1})):P("",!0)]),action:s(({record:S})=>[h(e(G),{actions:I(S)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"])]),_:1},16,["onRegister"])}}}),Zt=A($,[["__scopeId","data-v-de13f09c"]]);export{Zt as default};
