const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/BasicTable-DAfCfXmD.js","js/vue-vendor-CxLCUzY4.js","js/antd-vue-vendor-CDWW6V_M.js","js/index-BkgeZpOO.js","js/useForm-8o5KRzWo.js","js/componentMap-7D1QIeNI.js","js/index-CYriLmQo.js","js/vxe-table-vendor-B5h3MVdD.js","assets/index-Oj-kKgdt.css","js/useFormItem-CWa0w7fA.js","js/index-CF_FJn6P.js","js/BasicModal-BBgVjypv.js","js/ModalHeader-jGKMr-DQ.js","js/useTimeout-DC8132dd.js","js/index-CxQILSKV.js","assets/index-DTCEk8S9.css","assets/ModalHeader-CGOezirq.css","js/useWindowSizeFn-BxrEMPtP.js","js/index-BRTtls-l.js","js/index-DOuVMe-q.js","js/index-ByLO0zSl.js","js/useIntersectionObserver-FVRzwlSd.js","assets/index-zj-Vfn3Q.css","assets/BasicModal-ByeTDAzn.css","assets/index-DFyK5jFb.css","js/download-CkbK5et1.js","js/base64Conver-24EVOS6V.js","js/index-QMJkXEyl.js","assets/index-6eBWgmf3.css","js/index-Bb_NRLur.js","js/useCountdown-C3-PRPLY.js","js/useFormItemSingle-DM34aWgK.js","assets/index-BB9COjV3.css","js/JSelectUser-nVFm3ao2.js","js/props-DoGpHXAD.js","js/JSelectBiz-BW6f3e--.js","assets/JSelectBiz-DQPR9oxT.css","assets/JSelectUser-CFwmpWe5.css","js/JAddInput-CXT54-j9.js","js/areaDataUtil-DFHnz1wu.js","js/china-area-data-vendor-D0sJ9kfX.js","js/index-BTSd5ebC.js","js/index-BTAl55Kt.js","js/bem-2ra1afoV.js","js/props-BLY2qIO5.js","js/useContextMenu-DYyhcDf7.js","assets/useContextMenu-DJ_eOryA.css","assets/index-D8VMPii6.css","js/depart.api-C9T5xfw6.js","assets/JAddInput-Ba567xFn.css","js/JDictSelectTag-Jqy9TBcS.js","assets/JDictSelectTag-CbufxWfo.css","js/JSelectDept-DorRVguN.js","assets/JSelectDept-CHfyF8OF.css","js/JPopup-KP1kIsae.js","assets/JPopup-BBsdBt_9.css","js/JEllipsis-287cEHxd.js","js/JUpload-pyrTRFCz.js","js/index-Bx9Mnn3N.js","assets/index-CxrinrEC.css","assets/JUpload-CTjYYrtW.css","js/index-B1-pj6uh.js","js/index-isxCPgHp.js","assets/index-Dwp3Sezh.css","assets/componentMap-BBthSixT.css","assets/useForm-B200OIeb.css","js/JAreaLinkage-DFTeDmm8.js","js/JCodeEditor-_KZ8XnNK.js","js/htmlmixed-DRe7JlAp.js","js/vue-B0b3nX1K.js","assets/vue-DyVx2_Fd.css","assets/JCodeEditor-BeY2m_ic.css","assets/idea-C3eFBO7g.css","js/EasyCronInput-XK54XB3r.js","assets/EasyCronInput-BLbXuoBB.css","js/injectionKey-DPVn4AgL.js","assets/BasicTable-CBdijWHL.css"])))=>i.map(i=>d[i]);
import{a8 as x,ad as _,ae as h,_ as T}from"./index-CYriLmQo.js";import{d as b,f as n,U as l,a2 as I,a3 as C,k as p,af as d,ag as S}from"./vue-vendor-CxLCUzY4.js";import{B as y}from"./index-CF_FJn6P.js";import{e as R}from"./tenant.api-SLCAStJX.js";import{useListPage as v}from"./useListPage-i3Wl0_Fg.js";import{u as B,a as O}from"./tenant.data-C1uGOW6B.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.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"./index-BN5Ac_IG.js";import"./BasicTable-DAfCfXmD.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./componentMap-7D1QIeNI.js";import"./useFormItem-CWa0w7fA.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"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./injectionKey-DPVn4AgL.js";import"./renderUtils-CGtepdOw.js";import"./validator-0TDlyteC.js";import"./user.api-BUwWVSBN.js";const k=b({name:"TenantUserSelectModal",components:{BasicModal:y,BasicTable:_(()=>h(()=>import("./BasicTable-DAfCfXmD.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,76])),{loading:!0})},props:{modalTitle:{type:String,default:"选择用户"},tenantId:{type:Number,default:0},excludeUserIdList:{type:Array,default:[]}},emits:["register","on-select"],setup(e,{emit:t,refs:c}){const o=n({x:!1}),r=n(),[s,{closeModal:m}]=x(()=>{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:P,tableContext:u}=v({designScope:"tenant-template",tableProps:{api:R,columns:O,scroll:{y:390},rowKey:"id",showActionColumn:!1,formConfig:{schemas:B,labelWidth:60,actionColOptions:{xs:24,sm:8,md:8,lg:8,xl:8,xxl:8}},beforeFetch:g=>Object.assign(g,{userTenantId:e.tenantId})}}),[f,{reload:U},{rowSelection:a,selectedRowKeys:$}]=u;function w(){t("on-select",a.selectedRows,a.selectedRowKeys)}return{handleOk:w,register:s,columns:i,rowSelection:a,tableScroll:o,tableRef:r,registerTable:f}}});function M(e,t,c,o,r,s){const m=l("BasicTable"),i=l("BasicModal");return I(),C("div",null,[p(i,S(e.$attrs,{onRegister:e.register,title:e.modalTitle,width:"900px",wrapClassName:"j-user-select-modal",onOk:e.handleOk,destroyOnClose:""}),{default:d(()=>[p(m,{ref:"tableRef",onRegister:e.registerTable,rowSelection:e.rowSelection},{tableTitle:d(()=>t[0]||(t[0]=[])),_:1},8,["onRegister","rowSelection"])]),_:1},16,["onRegister","title","onOk"])])}const je=T(k,[["render",M],["__scopeId","data-v-0a5ccec8"]]);export{je as default};
