Files
qhmes/deploy-qhmes/frontend/js/TenantUserList-aG3wwoRA.js
2026-05-15 11:34:12 +08:00

2 lines
3.7 KiB
Java

var a=(u,p,r)=>new Promise((f,n)=>{var l=t=>{try{i(r.next(t))}catch(m){n(m)}},c=t=>{try{i(r.throw(t))}catch(m){n(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,ah as B,aC as _,as as h,aF as s,k as b,u as e,ag as L,G as R,aG as P,f as F}from"./vue-vendor-C7Zq48Yl.js";import{B as N}from"./index-Du0A3ksf.js";import{u as O,a as U}from"./tenant.data-CcUGQyvz.js";import{f as V,l as x}from"./tenant.api-7xr32mep.js";import{useListPage as j}from"./useListPage-BWia52we.js";import"./index-BgJbdjPf.js";import{ak as G,d as z}from"./index-BI6CMai0.js";import A from"./BasicTable-DfLkrEeh.js";import{J}from"./componentMap-BBZeqR-K.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./useTimeout-DDl4l82I.js";import"./vxe-table-vendor-B88kchpX.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./renderUtils-BumghUlZ.js";import"./index-CNkz_PUv.js";import"./validator-D5SvXAAX.js";import"./user.api-C1eRtqao.js";import"./useMethods-DVip17X8.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./areaDataUtil-CbYCy3Ig.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JSelectDept-DRDVeruW.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./TreeIcon-DE4jdeZV.js";import"./JCodeEditor-CLVZA7Uj.js";import"./useFormItem-BdW6EoZe.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./JAddInput-D6qcyZjQ.js";import"./depart.api-DeMNV8zW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./index-Dg4HCEvo.js";import"./EasyCronInput-7xfJ3nBh.js";import"./JEllipsis-DqRFTSm0.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./injectionKey-DPVn4AgL.js";const K="成员",W=M({__name:"TenantUserList",emits:["register","success"],setup(u,{emit:p}){const r=F(0),{prefixCls:f,tableContext:n}=j({designScope:"tenant-template",tableProps:{api:V,columns:U,immediate:!1,formConfig:{schemas:O,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}]=n,m=p,[C,{setModalProps:$,closeModal:v}]=G(o=>a(null,null,function*(){r.value=o.id,d()}));function y(o){return a(this,null,function*(){v()})}function I(o){return[{label:"移除",onClick:k.bind(null,o.id)}]}function d(){(t.value=[])&&c()}function k(o){return a(this,null,function*(){yield x({userIds:o,tenantId:e(r)},d)})}function w(){return a(this,null,function*(){yield x({userIds:t.value.join(","),tenantId:e(r)},d)})}return(o,g)=>{const T=B("a-button");return h(),_(e(N),P(o.$attrs,{onRegister:e(C),title:K,onOk:y,width:"800px"}),{default:s(()=>[b(e(A),{onRegister:e(l),rowSelection:e(i)},{tableTitle:s(()=>[e(t).length>0?(h(),_(T,{key:0,preIcon:"ant-design:delete-outlined",type:"primary",onClick:w,style:{"margin-right":"5px"}},{default:s(()=>[...g[0]||(g[0]=[R("批量请离",-1)])]),_:1})):L("",!0)]),action:s(({record:S})=>[b(e(J),{actions:I(S)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"])]),_:1},16,["onRegister"])}}}),to=z(W,[["__scopeId","data-v-804ce673"]]);export{to as default};