filesbox/web/dist/p__UserPage__UIGroup.08a798...

2 lines
24 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7314],{96946:function(h,S,e){"use strict";var U=e(11849),L=e(39428),se=e(3182),N=e(57663),ne=e(71577),b=e(67294),q=e(30672),K=e(37476),ie=e(71975),_=e(1977),T=e(85893),Z=s=>{var oe=(0,q.YB)(),W=(0,b.useRef)(),le=(0,q.v9)($=>$.common),t=le.isMobile,D=s.modalType,c=s.width,de=s.title,V=s.formRef,M=V===void 0?W:V,v=s.trigger,Y=s.triggerAuth,Ae=s.closable,pe=s.submitBtnHide,he=s.visible,De=s.setVisible,Me=s.afterClose,Ee=s.modalChildren,ye=s.finish,ue=s.isLoading,Ce=ue===void 0?!1:ue,me={width:t&&D!="modal"?"100%":c||550,title:de,formRef:M,trigger:v||(0,T.jsx)(ne.Z,{type:"primary",icon:(0,T.jsx)(_.Z,{}),disabled:Y!==void 0?!Y:!1,children:oe.formatMessage({id:"common.add"})}),scrollToFirstError:!0,visible:he,onVisibleChange:De,children:Ee,submitter:{submitButtonProps:{loading:Ce,style:{display:pe?"none":"inline-block"}}},modalProps:{destroyOnClose:!0,closable:Ae,maskClosable:!1,afterClose:Me},drawerProps:{destroyOnClose:!0,closable:Ae,maskClosable:!1,onClose:Me,className:"selfDrawer",push:{distance:0}},onFinish:function(){var $=(0,se.Z)((0,L.Z)().mark(function ve(a){return(0,L.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",ye(a));case 1:case"end":return X.stop()}},ve)}));function xe(ve){return $.apply(this,arguments)}return xe}()};return D==="modal"?(0,T.jsx)(K.Y,(0,U.Z)({},me)):(0,T.jsx)(ie.a,(0,U.Z)({},me))};S.Z=Z},21966:function(h,S,e){"use strict";e.r(S),e.d(S,{default:function(){return Se}});var U=e(20228),L=e(11382),se=e(13254),N=e(14277),ne=e(13062),b=e(71230),q=e(89032),K=e(15746),ie=e(49111),_=e(19650),T=e(57663),Z=e(71577),s=e(91220),oe=e(34792),W=e(48086),le=e(71194),t=e(50146),D=e(2824),c=e(11849),de=e(47673),V=e(4107),M=e(67294),v=e(30672),Y=e(96486),Ae=e(1977),pe=e(8812),he=e(91033),De=e(27931),Me=e(58024),Ee=e(91894),ye=e(59250),ue=e(13013),Ce=e(22385),me=e(45777),$=e(19675),xe=e(27615),ve=e.n(xe),a=e(85893),je="storage",X=l=>{var i=(0,v.YB)(),ee=(0,v.tT)("@@initialState"),E=ee.initialState,ae=E!=null?E:{},I=ae.currentUser,A=I.user,u=A===void 0?{}:A,y=I.role,C=y===void 0?{}:y,f=u.isSystem?!0:!!C["admin.member.groupEdit"],j=(0,v.v9)(G=>(0,c.Z)({},G[je])),B=j.storageAuth,z=l.current,p=z===void 0?{}:z,re=l.editGroup,O=l.deleteGroup,R=l.enterGroup,H=p.name,w=p.isSystem,k=p.sizeMax,g=()=>{var G=[{key:"edit",label:i.formatMessage({id:"common.edit"}),disabled:!f},{key:"delete",label:i.formatMessage({id:"common.delete"}),disabled:!!(w||!f)},{key:"enter",label:i.formatMessage({id:"common.enter"})}];return(0,a.jsxs)("div",{className:"groupCotent",children:[(0,a.jsx)("div",{className:"icon",children:(0,a.jsx)("img",{width:80,src:ve()})}),(0,a.jsx)("div",{className:"action",children:(0,a.jsx)(ue.Z.Button,{className:"groupOperate",overlayClassName:"selfDropdown",icon:(0,a.jsx)($.Z,{style:{color:"#999"}}),style:{width:"auto"},trigger:["click"],disabled:!B,menu:{items:G,onClick:J=>{var x=J.key;x=="edit"?re(p):x=="delete"?O(p):x=="enter"&&R(p)}},children:(0,a.jsx)(me.Z,{title:H,children:(0,a.jsx)("div",{children:H})})})}),(0,a.jsx)("div",{className:"progressBox",children:(0,a.jsx)(Z.Z,{type:"link",size:"small",children:k?k+"GB":i.formatMessage({id:"admin.member.spaceTipsFull"})})})]})};return(0,a.jsx)(Ee.Z,{hoverable:!0,className:"groupCard",bodyStyle:{padding:0},children:g()})},Ke=X,Be=e(5966),Te=e(31199),We=e(96946),ge="userManage",Ie=l=>{var i,ee=l.visible,E=l.setVisible,ae=l.trigger,I=l.finishCallBack,A=l.path,u=(0,v.YB)(),y=(0,v.I0)(),C=(0,v.v9)(g=>(0,c.Z)((0,c.Z)({},g[ge]),{},{loading:g.loading.effects["".concat(ge,"/addEditGroup")]})),f=C.modalKey,j=C.currentGroup,B=j===void 0?{}:j,z=C.groupAuth,p=C.loading,re=B.groupID,O=B.name,R=B.sizeMax,H=()=>{switch(f){case"addGroup":return u.formatMessage({id:"admin.member.groupAdd"});case"editChildGroup":case"editGroup":return u.formatMessage({id:"admin.member.groupEdit"});default:return u.formatMessage({id:"admin.member.groupAdd"})}},w=()=>{y({type:"".concat(ge,"/update"),payload:{currentGroup:{},modalKey:""}})},k=g=>{var G,J=(0,c.Z)((0,c.Z)({parentID:A.length?(G=A[A