var n=(u,p,r)=>new Promise((f,a)=>{var l=t=>{try{i(r.next(t))}catch(s){a(s)}},c=t=>{try{i(r.throw(t))}catch(s){a(s)}},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 m,k as h,G as R,V as P,ag as U}from"./vue-vendor-CxLCUzY4.js";import{B as V}from"./index-CF_FJn6P.js";import{u as N,a as O}from"./tenant.data-C1uGOW6B.js";import{e as j,l as x}from"./tenant.api-SLCAStJX.js";import{useListPage as F}from"./useListPage-i3Wl0_Fg.js";import"./index-BN5Ac_IG.js";import{a8 as K,_ as A}from"./index-CYriLmQo.js";import{Q as G}from"./componentMap-7D1QIeNI.js";import Q from"./BasicTable-DAfCfXmD.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./renderUtils-CGtepdOw.js";import"./index-BTSd5ebC.js";import"./validator-0TDlyteC.js";import"./user.api-BUwWVSBN.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.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,s=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:m(()=>[h(e(Q),{onRegister:e(l),rowSelection:e(i)},{tableTitle:m(()=>[e(t).length>0?(_(),b(k,{key:0,preIcon:"ant-design:delete-outlined",type:"primary",onClick:T,style:{"margin-right":"5px"}},{default:m(()=>g[0]||(g[0]=[R("批量请离")])),_:1})):P("",!0)]),action:m(({record:S})=>[h(e(G),{actions:I(S)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"])]),_:1},16,["onRegister"])}}}),Yt=A($,[["__scopeId","data-v-de13f09c"]]);export{Yt as default};
