2 lines
6.0 KiB
Java
2 lines
6.0 KiB
Java
var A=Object.defineProperty,F=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var T=(i,o,t)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[o]=t,v=(i,o)=>{for(var t in o||(o={}))K.call(o,t)&&T(i,t,o[t]);if(S)for(var t of S(o))L.call(o,t)&&T(i,t,o[t]);return i},w=(i,o)=>F(i,E(o));var _=(i,o,t)=>new Promise((h,l)=>{var g=m=>{try{a(t.next(m))}catch(c){l(c)}},M=m=>{try{a(t.throw(m))}catch(c){l(c)}},a=m=>m.done?h(m.value):Promise.resolve(m.value).then(g,M);a((t=t.apply(i,o)).next())});import N from"./BasicTable-C6eG0bgK.js";import V from"./TableAction-BiXnWkvt.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import{u as z,dh as G,s as J,bG as $}from"./index-X7Y8jykP.js";import"./index-BDvqZ5j4.js";import{n as q,m as C}from"./tenant.api-CINwvO59.js";import{s as D,e as H}from"./tenant.data-DaXPsI2H.js";import{u as Q}from"./useListPage-CK9oQ-1O.js";import W from"./TenantInviteUserModal-CoB7Uhk1.js";import X from"./TenantUserList-1fGn2IgR.js";import{_ as Y}from"./TenantPackList.vue_vue_type_script_setup_true_name_tenant-pack-modal_lang-D3KJ--Qa.js";import{u as f}from"./useModal-DaJ3Bflg.js";import{e as R,o as Z,C as tt,z as ot,f as s,A as b,u as p,K as it,E as rt}from"./vue-vendor-DNhG1Cve.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./index-BzChaRPg.js";import"./useAppInject-DPZGPcR3.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-CuWaQdlK.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"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.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";import"./useTable-DbHE4FHE.js";import"./useMethods-D3efiSSd.js";import"./useApprovalSelection-D4wlWO_T.js";import"./TenantPackMenuModal.vue_vue_type_script_setup_true_name_tenant-pack-menu-modal_lang-130WPpg9.js";import"./TenantPackUserModal-XMs57TFz.js";import"./TenantUserSelectModal-Ckw4dgs7.js";import"./PackPermissionDrawer-CRWHnGsf.js";import"./index-D9GWo192.js";import"./ArrowLeftOutlined-B3JgaWh-.js";import"./index-DZJwICFr.js";import"./index-Bzmv9Ie7.js";import"./bem-CTsBfXqP.js";import"./props-Cc-8EPhZ.js";import"./useContextMenu-BncvQCmV.js";import"./difference-CGvbIcA7.js";import"./useDrawer-BDPywy9W.js";const et=R({name:"tenant-my-tenant-list"}),pi=R(w(v({},et),{setup(i){const{createMessage:o}=J(),[t,{openModal:h}]=f(),[l,{openModal:g}]=f(),[M,{openModal:a}]=f(),[m,{openModal:c}]=f();z();const{prefixCls:mt,tableContext:U}=Q({designScope:"tenant-template",tableProps:{title:"租户列表",api:q,columns:H,formConfig:{schemas:D},actionColumn:{width:150,fixed:"right"},rowSelection:{type:"radio"},beforeFetch:e=>Object.assign(e,{userTenantStatus:"1,3,4"})}}),[y,{reload:pt},{rowSelection:k,selectedRowKeys:d,selectedRows:x}]=U;function I(e){let r=e.items,u=$();if(r&&r.length>0&&u){for(let n=0;n<r.length;n++)if(r[n].id==u){d.value=[r[n].id],x.value=[r[n]];return}}}function O(e){return[{label:"用户",onClick:j.bind(null,e.id)}]}function B(){g(!0,{})}function P(e,r){return _(this,null,function*(){e&&(yield C({ids:d.value.join(","),phone:e})),r&&(yield C({ids:d.value.join(","),username:r}))})}function j(e){return _(this,null,function*(){a(!0,{id:e})})}return Z(()=>{G("我的租户")}),(e,r)=>{const u=it("a-button");return ot(),tt("div",null,[s(p(N),{onRegister:p(y),rowSelection:p(k),onFetchSuccess:I},{tableTitle:b(()=>[s(u,{preIcon:"ant-design:user-add-outlined",type:"primary",onClick:B,style:{"margin-right":"5px"},disabled:p(d).length===0},{default:b(()=>[...r[0]||(r[0]=[rt("邀请用户加入",-1)])]),_:1},8,["disabled"])]),action:b(({record:n})=>[s(p(V),{actions:O(n)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]),s(W,{onRegister:p(l),onInviteOk:P},null,8,["onRegister"]),s(X,{onRegister:p(M)},null,8,["onRegister"]),s(Y,{onRegister:p(m)},null,8,["onRegister"])])}}}));export{pi as default};
|