2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[159],{33182:function(N,I,e){"use strict";e.d(I,{Z:function(){return B}});var M=e(28991),O=e(67294),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},x=V,G=e(27029),u=function(R,P){return O.createElement(G.Z,(0,M.Z)((0,M.Z)({},R),{},{ref:P,icon:x}))};u.displayName="ShareAltOutlined";var B=O.forwardRef(u)},38311:function(N){N.exports={shareBox:"shareBox___3MJzO"}},84437:function(N,I,e){"use strict";var M=e(43358),O=e(34041),V=e(49111),x=e(19650),G=e(94233),u=e(51890),B=e(2824),f=e(67294),R=e(30672),P=e(5171),A=e.n(P),d=e(85893),i="userManage",C=t=>{var v=t.onChange,Y=(0,R.YB)(),K=(0,R.I0)(),W=(0,f.useState)([]),T=(0,B.Z)(W,2),o=T[0],S=T[1];return(0,f.useEffect)(()=>(K({type:"".concat(i,"/getUserList"),payload:{currentPage:1,pageSize:1e4},callback:h=>{var D=[];D=h==null?void 0:h.map(m=>({label:(0,d.jsxs)(x.Z,{size:8,align:"center",children:[(0,d.jsx)(u.C,{size:18,src:m.avatar||A(),style:{display:"block"}}),m.nickname||m.name]}),name:m.nickname||m.name,value:m.userID})),S(D)}}),()=>{K({type:"".concat(i,"/clear")})}),[]),(0,d.jsx)(O.Z,{allowClear:!0,showSearch:!0,style:{width:140},placeholder:Y.formatMessage({id:"explorer.search.selectUser"}),options:o,onChange:v,filterOption:(h,D)=>{var m;return((m=D==null?void 0:D.name)!==null&&m!==void 0?m:"").toLowerCase().includes(h.toLowerCase())}})};I.Z=C},42139:function(N,I,e){"use strict";var M=e(11849),O=e(39428),V=e(3182),x=e(57663),G=e(71577),u=e(67294),B=e(30672),f=e(85473),R=e(16894),P=e(37476),A=e(71975),d=e(1977),i=e(85893),C=t=>{var v=(0,B.YB)(),Y=(0,B.v9)(J=>J.common),K=Y.isMobile,W=t.rowKey,T=W===void 0?"":W,o=t.dragSortKey,S=t.isLoading,h=S===void 0?!1:S,D=t.columns,m=D===void 0?[]:D,$=t.data,U=$===void 0?[]:$,j=t.scroll,l=j===void 0?{x:768}:j,_=t.toolbar,E=t.toolbarTitle,Z=t.toolbarAuth,se=t.toolBarRender,p=t.pagination,ne=t.pageChange,re=t.rowClassName,le=t.rowSelection,Q=t.canDragSort,a=Q===void 0?!1:Q,c=t.handleDragSortEnd,_e=t.triggerClick,w=t.modalType,n=t.modalWidth,g=n===void 0?550:n,F=t.title,k=t.visible,b=t.setVisible,q=t.modalChildren,ee=t.afterClose,ae=t.finish,z=t.isSubmitLoading,oe=z===void 0?!1:z,te={title:F,width:K&&w!="modal"?"100%":g,scrollToFirstError:!0,visible:k,onVisibleChange:b,children:q,trigger:(0,i.jsx)(G.Z,{type:"primary",icon:(0,i.jsx)(d.Z,{}),disabled:Z!==void 0?!Z:!1,onClick:_e,children:E||v.formatMessage({id:"common.add"})}),submitter:{submitButtonProps:{loading:oe}},modalProps:{destroyOnClose:!0,maskClosable:!1,afterClose:ee},drawerProps:{destroyOnClose:!0,maskClosable:!1,onClose:ee,className:"selfDrawer",push:{distance:0}},onFinish:function(){var J=(0,V.Z)((0,O.Z)().mark(function r(y){return(0,O.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",ae(y));case 1:case"end":return X.stop()}},r)}));function s(r){return J.apply(this,arguments)}return s}()},H={className:"selfTable",loading:h,rowKey:T,columns:m,dataSource:U,scroll:l,rowClassName:re,rowSelection:le,pagination:p?(0,M.Z)((0,M.Z)({},p),{},{current:p==null?void 0:p.currentPage,showSizeChanger:!0}):!1,onChange:ne,headerTitle:_?w==="modal"?(0,i.jsx)(P.Y,(0,M.Z)({},te)):(0,i.jsx)(A.a,(0,M.Z)({},te)):!1,toolBarRender:se};return a&&!K?(0,i.jsx)(f.Z,(0,M.Z)((0,M.Z)({},H),{},{size:"small",search:!1,options:!1,tableAlertRender:!1,dragSortKey:o,onDragSortEnd:c})):(0,i.jsx)(R.ZP,(0,M.Z)((
|