2 lines
4.6 KiB
Java
2 lines
4.6 KiB
Java
var b=(t,m,i)=>new Promise((f,a)=>{var p=o=>{try{n(i.next(o))}catch(r){a(r)}},s=o=>{try{n(i.throw(o))}catch(r){a(r)}},n=o=>o.done?f(o.value):Promise.resolve(o.value).then(p,s);n((i=i.apply(t,m)).next())});import{d as x,f as l,u as B,ah as c,ar as k,as as _,F as U,au as u,k as d,ag as F,aB as A,aF as w,G as I,av as $}from"./vue-vendor-C7Zq48Yl.js";import"./index-Du0A3ksf.js";import{e as V,i as D}from"./tenant.data-CcUGQyvz.js";import{g as O,t as z}from"./tenant.api-7xr32mep.js";import{useListPage as j}from"./useListPage-BWia52we.js";import"./index-BgJbdjPf.js";import E from"./TenantPackMenuModal-DmtOnmjR.js";import{bu as G,al as C,u as J,d as K}from"./index-BI6CMai0.js";import q from"./TenantUserRightList-DdeX5-FJ.js";import{J as H}from"./componentMap-BBZeqR-K.js";import Q from"./BasicTable-DfLkrEeh.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";import"./TenantUserSelectModal-CMM8xtp0.js";const W=x({name:"TenantCurrentPackList",components:{TenantUserRightList:q,BasicTable:Q,TableAction:H,TenantPackMenuModal:E},setup(){const[t,{openModal:m}]=C(),[i,{openModal:f}]=C(),a=l(),p=l(),s=l(),n=l({width:"100%",transition:"width 0.3s"}),{prefixCls:o,tableContext:r}=j({designScope:"tenant-template",tableProps:{api:z,columns:D,immediate:!1,formConfig:{schemas:V,labelCol:{xxl:8},actionColOptions:{xs:24,sm:8,md:8,lg:8,xl:8,xxl:8}},beforeFetch:e=>Object.assign(e,{tenantId:a.value,status:"1",packType:"custom"})}}),[g,{reload:h},{rowSelection:v,selectedRowKeys:y,selectedRows:ot}]=r,T=l(""),{createMessage:nt}=J();M();function M(){return b(this,null,function*(){let e=G();e&&(T.value=yield O(),a.value=Number(e),yield h())})}function R(e){return[{label:"用户",onClick:L.bind(null,e)},{label:"权限详情",onClick:N.bind(null,e)}]}function P(){(y.value=[])&&h()}function L(e){s.value=!0,n.value={width:"50%",transition:"width 0.3s"},setTimeout(()=>{p.value.initData(e)},300)}function N(e){m(!0,{isUpdate:!0,record:e,tenantId:B(a),packType:"custom",showFooter:!1})}function S(){s.value=!1,n.value={width:"100%",transition:"width 0.3s"}}return{registerPackMenu:t,success:P,getTableAction:R,registerTable:g,rowSelection:v,rightListRef:p,showRight:s,registerPackUser:i,loginTenantName:T,leftStyle:n,handleCancel:S}}}),X={style:{display:"flex",width:"100%"}},Y={style:{"margin-left":"10px","margin-top":"5px"}},Z={class:"tenant-name"},tt={key:0,style:{width:"49%",transition:"width 0.3s"}};function et(t,m,i,f,a,p){const s=c("TableAction"),n=c("BasicTable"),o=c("TenantUserRightList"),r=c("TenantPackMenuModal");return _(),k(U,null,[u("div",X,[u("div",{style:A(t.leftStyle)},[d(n,{onRegister:t.registerTable},{tableTitle:w(()=>[u("div",Y,[m[0]||(m[0]=I("当前登录租户: ",-1)),u("span",Z,$(t.loginTenantName),1)])]),action:w(({record:g})=>[d(s,{actions:t.getTableAction(g)},null,8,["actions"])]),_:1},8,["onRegister"])],4),t.showRight?(_(),k("div",tt,[d(o,{ref:"rightListRef",onCancel:t.handleCancel},null,8,["onCancel"])])):F("",!0)]),d(r,{onRegister:t.registerPackMenu,onSuccess:t.success},null,8,["onRegister","onSuccess"])],64)}const ge=K(W,[["render",et],["__scopeId","data-v-9c2ee105"]]);export{ge as default};
|