const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/BasicTable-C6eG0bgK.js","js/BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js","js/vue-vendor-DNhG1Cve.js","js/BasicForm-ClUSoD_-.js","js/helper-DcLcf4v6.js","js/index-X7Y8jykP.js","js/emoji-mart-vue-fast-R0uJEDq-.js","assets/index-GuhSw_Yp.css","js/index-BzChaRPg.js","assets/index-DTCEk8S9.css","js/useAppInject-DPZGPcR3.js","js/BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js","js/index-DO7ZhK45.js","js/index-ByCwbQDV.js","js/index-Upeu4GGa.js","js/index-C4wWpZeQ.js","js/useTimeout-D5AmIBZw.js","js/index-M9QP6cvf.js","js/Skeleton-CimgOdM7.js","js/useScrollTo-0FPEw5-K.js","js/useIntersectionObserver-BGOgyKyu.js","assets/index-zj-Vfn3Q.css","assets/BasicForm-BKgjVE-6.css","js/index-saD4h7VJ.js","js/useBreakpoint-DXhPW7nV.js","js/useEventListener-BRXjwk7A.js","js/breakpointEnum-BhAg6bcX.js","js/uniqBy--vsL0WVB.js","js/index-BDvqZ5j4.js","js/BasicModal-xH56XuRZ.js","js/ModalHeader-Sr8KwhJJ.js","assets/ModalHeader-CLCbovMP.css","js/useWindowSizeFn-C-0M9_Ul.js","js/index-CuWaQdlK.js","assets/BasicModal-ByeTDAzn.css","assets/index-CUOTvden.css","js/useForm-D61zovon.js","js/injectionKey-DPVn4AgL.js","js/index-DSsDi_fL.js","js/Group-UHkub2tu.js","js/Checkbox-Dbxs4we4.js","js/index-BuONesFs.js","js/FormOutlined-Y84itqS0.js","js/useTableContext-CncNVXgp.js","js/index-DTjkSGYl.js","js/eagerComputed-BTlOruLW.js","js/fromPairs-Dx9PT-t0.js","js/useMaxLevel-DE205ncc.js","js/index-CfNJyBRj.js","js/dropdown-jkliuVyN.js","js/index-DfHu-LAS.js","js/Group-DBzJABA_.js","js/RadioButton-DRBix2Fq.js","js/index-C7ckZv9Z.js","js/DirectoryTree-nk_YTTIy.js","js/FolderOpenOutlined-SzIPA7z0.js","js/index-Cl-8Hzo4.js","js/scrollTo-D49dA-9c.js","js/operationUnit-vCu2co3e.js","js/index-C69VKHba.js","js/index-DklMb9Qc.js","js/UpOutlined-B1UMbtrP.js","js/index-DsixALRt.js","js/dayjs-jnKD3YGS.js","js/index-aCD42OrZ.js","js/quarterOfYear-BU2sPnff.js","js/index-J2mOtM3w.js","js/dayjs-ALi1pEeb.js","js/clickOutside-DHfwTU6R.js","js/onMountedOrActivated-DhSdLlqP.js","js/throttle-De_jAmBh.js","js/uuid-CODpppBC.js","js/sortable.esm-DJNoJSdJ.js","js/RedoOutlined-Cq2g4Slp.js","js/index-CeNCCWzL.js","assets/BasicTable-Wa_ugCm0.css"])))=>i.map(i=>d[i]); import{p as x,_,au as h}from"./index-X7Y8jykP.js";import{B as T}from"./index-BDvqZ5j4.js";import{v as b}from"./tenant.api-CINwvO59.js";import{u as C}from"./useListPage-CK9oQ-1O.js";import{u as I,j as S}from"./tenant.data-DaXPsI2H.js";import{a as y}from"./useModal-DaJ3Bflg.js";import{e as R,r as s,C as v,z as B,f as n,A as l,B as O,K as d}from"./vue-vendor-DNhG1Cve.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useTimeout-D5AmIBZw.js";import"./index-BzChaRPg.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./useAppInject-DPZGPcR3.js";import"./index-CuWaQdlK.js";import"./index-DO7ZhK45.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.js";import"./useForm-D61zovon.js";import"./injectionKey-DPVn4AgL.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./FormOutlined-Y84itqS0.js";import"./useTableContext-CncNVXgp.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";import"./index-C69VKHba.js";import"./index-DklMb9Qc.js";import"./UpOutlined-B1UMbtrP.js";import"./index-DsixALRt.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";import"./dayjs-ALi1pEeb.js";import"./clickOutside-DHfwTU6R.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./throttle-De_jAmBh.js";import"./uuid-CODpppBC.js";import"./sortable.esm-DJNoJSdJ.js";import"./RedoOutlined-Cq2g4Slp.js";import"./index-CeNCCWzL.js";import"./TableAction.vue_vue_type_style_index_0_lang-BIWZ0bGo.js";import"./index-fAAIzD3j.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.js";import"./useTable-DbHE4FHE.js";import"./useMethods-D3efiSSd.js";import"./useApprovalSelection-D4wlWO_T.js";import"./renderUtils-BiIzV8ua.js";import"./index-Cmtq_YLa.js";import"./Editor-DbH9VuAv.js";import"./index-Cq6YxX27.js";import"./JDictSelectUtil-DwVTEDM5.js";import"./index-B4gPlWQt.js";import"./validator-CQGbnGwd.js";import"./user.api-M95RuX7p.js";const M=R({name:"TenantUserSelectModal",components:{BasicModal:T,BasicTable:x(()=>_(()=>import("./BasicTable-C6eG0bgK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75])),{loading:!0})},props:{modalTitle:{type:String,default:"选择用户"},tenantId:{type:Number,default:0},excludeUserIdList:{type:Array,default:[]}},emits:["register","on-select"],setup(t,{emit:e,refs:c}){const o=s({x:!1}),r=s(),[p,{closeModal:a}]=y(()=>{window.innerWidth<900?o.value={x:900}:o.value={x:!1},setTimeout(()=>{r.value&&r.value.setSelectedRowKeys([])},800)}),i=[{title:"账号",dataIndex:"username",width:40,align:"left"},{title:"姓名",dataIndex:"realname",width:40},{title:"性别",dataIndex:"sex_dictText",width:20},{title:"手机号码",dataIndex:"phone",width:30},{title:"邮箱",dataIndex:"email",width:40},{title:"状态",dataIndex:"status_dictText",width:20}],{prefixCls:A,tableContext:u}=C({designScope:"tenant-template",tableProps:{api:b,columns:S,scroll:{y:390},rowKey:"id",showActionColumn:!1,formConfig:{schemas:I,labelWidth:60,actionColOptions:{xs:24,sm:8,md:8,lg:8,xl:8,xxl:8}},beforeFetch:g=>Object.assign(g,{userTenantId:t.tenantId})}}),[f,{reload:K},{rowSelection:m,selectedRowKeys:P}]=u;function w(){e("on-select",m.selectedRows,m.selectedRowKeys)}return{handleOk:w,register:p,columns:i,rowSelection:m,tableScroll:o,tableRef:r,registerTable:f}}});function k(t,e,c,o,r,p){const a=d("BasicTable"),i=d("BasicModal");return B(),v("div",null,[n(i,O(t.$attrs,{onRegister:t.register,title:t.modalTitle,width:"900px",wrapClassName:"j-user-select-modal",onOk:t.handleOk,destroyOnClose:""}),{default:l(()=>[n(a,{ref:"tableRef",onRegister:t.registerTable,rowSelection:t.rowSelection},{tableTitle:l(()=>[...e[0]||(e[0]=[])]),_:1},8,["onRegister","rowSelection"])]),_:1},16,["onRegister","title","onOk"])])}const fe=h(M,[["render",k],["__scopeId","data-v-0a5ccec8"]]);export{fe as default};