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-zKZnG1QC.js";import{u as N,a as O}from"./tenant.data-BTTBgNSE.js";import{e as j,l as x}from"./tenant.api-C9mls3Ap.js";import{useListPage as F}from"./useListPage-TMORxSEa.js";import"./index-gyz1IdHU.js";import{a8 as K,_ as A}from"./index-Cy4uayzW.js";import{Q as G}from"./componentMap-0iK4HQBq.js";import Q from"./BasicTable-CgafrQwz.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./renderUtils-BcsccCoe.js";import"./index-tDBMxW9-.js";import"./validator-CyHCj96y.js";import"./user.api-CoaMxYm2.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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};
