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-D2AmS0aU.js";import{u as N,a as O}from"./tenant.data-jovtG_GO.js";import{e as j,l as x}from"./tenant.api-CpQl223K.js";import{useListPage as F}from"./useListPage-BEtybUiF.js";import"./index-LwlFn7Y4.js";import{a8 as K,_ as A}from"./index-B_2CoVdl.js";import{Q as G}from"./componentMap-CzCGDP7x.js";import Q from"./BasicTable-Clbg3fHx.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./renderUtils-Cbe4E0PZ.js";import"./index-CkL00Q0a.js";import"./validator-jM63P_3m.js";import"./user.api-BLHI3_6c.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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};
