You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
9.4 KiB
2 lines
9.4 KiB
(("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]=("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]||[]).push([["dbd20fbd"],{"797058d5":function(e,t,a){a.d(t,"__esModule",{value:!0}),a.e(t,{default:function(){return P;}});var i=a("777fffbe"),l=a("852bbaa9"),r=a("dac8af92"),n=a("597fad75"),d=a("e6b1eada"),s=a("c7d71c0a"),o=a("60996a32"),c=i._(o),x=a("084468f6"),p=i._(x),m=a("78a22024"),h=i._(m),f=a("c5150a80"),g=i._(f),u=a("adf76174"),j=i._(u),v=a("7971c6b6"),b=i._(v),y=a("809156a1"),w=i._(y),k=a("ab5f2fcc"),S=i._(k),N=a("7e3844f3"),z=i._(N),L=a("06ecdd39"),T=i._(L),_=a("38ab0c18"),$=i._(_),B=a("609f48be"),C=l._(B),H=a("98213865");let G=(0,H.createStyles)(({token:e})=>({linkGroup:{fontSize:"0","& > a":{display:"inline-block",width:"25%",marginBottom:"13px",color:e.colorText,fontSize:e.fontSize,"&:hover":{color:e.colorPrimary}}}})),A=e=>{let{styles:t}=G(),{links:a=[],linkElement:i="a",onAdd:l=()=>{}}=e;return(0,r.jsxs)("div",{className:t.linkGroup,children:[a.map(e=>(0,C.createElement)(i,{key:`linkGroup-item-${e.id||e.title}`,to:e.href,href:e.href},e.title)),(0,r.jsxs)($.default,{size:"small",type:"primary",ghost:!0,onClick:l,children:[(0,r.jsx)(T.default,{})," \u6DFB\u52A0"]})]});};async function I(){return(0,s.request)("/api/project/notice");}async function M(){return(0,s.request)("/api/activities");}async function R(){return(0,s.request)("/api/fake_workplace_chart_data");}let X=(0,H.createStyles)(({token:e})=>({activitiesList:{padding:0},username:{color:e.colorText},event:{fontWeight:"normal"},pageHeaderContent:{display:"flex",[`@media screen and (max-width: ${e.screenSM}px)`]:{display:"block"}},avatar:{flex:"0 1 72px","& > span":{display:"block",width:"72px",height:"72px",borderRadius:"72px"}},content:{position:"relative",top:"4px",flex:"1 1 auto",marginLeft:"24px",color:e.colorTextSecondary,lineHeight:"22px",[`@media screen and (max-width: ${e.screenSM}px)`]:{marginLeft:"0"}},contentTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},extraContent:{zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},float:"right",whiteSpace:"nowrap",[`@media screen and (max-width: ${e.screenXL}px) and (min-width: @screen-lg)`]:{marginLeft:"-44px"},[`@media screen and (max-width: ${e.screenLG}px)`]:{float:"none",marginRight:"0"},[`@media screen and (max-width: ${e.screenMD}px)`]:{marginLeft:"-16px"}},statItem:{position:"relative",display:"inline-block",padding:"0 32px","> p:first-child":{marginBottom:"4px",color:e.colorTextSecondary,fontSize:e.fontSize,lineHeight:"22px"},"> p":{margin:"0",color:e.colorTextHeading,fontSize:"30px",lineHeight:"38px","> span":{color:e.colorTextSecondary,fontSize:"20px"}},"&::after":{position:"absolute",top:"8px",right:"0",width:"1px",height:"40px",backgroundColor:e.colorSplit,content:"''"},"&:last-child":{paddingRight:"0","&::after":{display:"none"}},[`@media screen and (max-width: ${e.screenXL}px) and (min-width: @screen-lg)`]:{padding:"0 16px"},[`@media screen and (max-width: ${e.screenLG}px)`]:{padding:"0 16px",textAlign:"left","&::after":{display:"none"}},[`@media screen and (max-width: ${e.screenSM}px)`]:{float:"none"}},members:{a:{display:"block",height:"24px",margin:"12px 0",color:e.colorText,transition:"all 0.3s",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all","&:hover":{color:e.colorPrimary}},[`@media screen and (max-width: ${e.screenXL}px) and (min-width: @screen-lg)`]:{marginBottom:"0"},[`@media screen and (max-width: ${e.screenLG}px)`]:{marginBottom:"0"}},member:{marginLeft:"12px",fontSize:e.fontSize,lineHeight:"24px",verticalAlign:"top"},projectList:{".ant-card-meta-description":{height:"44px",overflow:"hidden",color:e.colorTextSecondary,lineHeight:"22px"}},cardTitle:{fontSize:"0",a:{display:"inline-block",height:"24px",marginLeft:"12px",color:e.colorTextHeading,fontSize:e.fontSize,lineHeight:"24px",verticalAlign:"top","&:hover":{color:e.colorPrimary}}},projectGrid:{width:"33.33%",[`@media screen and (max-width: ${e.screenMD}px)`]:{width:"50%"},[`@media screen and (max-width: ${e.screenXS}px)`]:{width:"100%"}},projectItemContent:{display:"flex",height:"20px",marginTop:"8px",overflow:"hidden",fontSize:"12px",gap:"epx",lineHeight:"20px",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all",a:{display:"inline-block",flex:"1 1 0",color:e.colorTextSecondary,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all","&:hover":{color:e.colorPrimary}}},datetime:{flex:"0 0 auto",color:e.colorTextDisabled},activeCard:{[`@media screen and (max-width: ${e.screenXL}px) and (min-width: @screen-lg)`]:{marginBottom:"24px"},[`@media screen and (max-width: ${e.screenLG}px)`]:{marginBottom:"24px"}}}));S.default.extend(z.default);let q=[{title:"\u64CD\u4F5C\u4E00",href:""},{title:"\u64CD\u4F5C\u4E8C",href:""},{title:"\u64CD\u4F5C\u4E09",href:""},{title:"\u64CD\u4F5C\u56DB",href:""},{title:"\u64CD\u4F5C\u4E94",href:""},{title:"\u64CD\u4F5C\u516D",href:""}],D=({currentUser:e})=>{let{styles:t}=X();return e&&Object.keys(e).length?(0,r.jsxs)("div",{className:t.pageHeaderContent,children:[(0,r.jsx)("div",{className:t.avatar,children:(0,r.jsx)(c.default,{size:"large",src:e.avatar})}),(0,r.jsxs)("div",{className:t.content,children:[(0,r.jsxs)("div",{className:t.contentTitle,children:["\u65E9\u5B89\uFF0C",e.name,"\uFF0C\u795D\u4F60\u5F00\u5FC3\u6BCF\u4E00\u5929\uFF01"]}),(0,r.jsxs)("div",{children:[e.title," |",e.group]})]})]}):(0,r.jsx)(b.default,{avatar:!0,paragraph:{rows:1},active:!0});},O=()=>{let{styles:e}=X();return(0,r.jsxs)("div",{className:e.extraContent,children:[(0,r.jsx)("div",{className:e.statItem,children:(0,r.jsx)(w.default,{title:"\u9879\u76EE\u6570",value:56})}),(0,r.jsx)("div",{className:e.statItem,children:(0,r.jsx)(w.default,{title:"\u56E2\u961F\u5185\u6392\u540D",value:8,suffix:"/ 24"})}),(0,r.jsx)("div",{className:e.statItem,children:(0,r.jsx)(w.default,{title:"\u9879\u76EE\u8BBF\u95EE",value:2223})})]});},P=()=>{var e;let{styles:t}=X(),{loading:a,data:i=[]}=(0,s.useRequest)(I),{loading:l,data:o=[]}=(0,s.useRequest)(M),{data:x}=(0,s.useRequest)(R),m=e=>{let a=e.template.split(/@\{([^{}]*)\}/gi).map(t=>{if(e[t]){let a=e[t];return(0,r.jsx)("a",{href:null==a?void 0:a.link,children:a.name},null==a?void 0:a.name);}return t;});return(0,r.jsx)(g.default.Item,{children:(0,r.jsx)(g.default.Item.Meta,{avatar:(0,r.jsx)(c.default,{src:e.user.avatar}),title:(0,r.jsxs)("span",{children:[(0,r.jsx)("a",{className:t.username,children:e.user.name}),"\xa0",(0,r.jsx)("span",{className:t.event,children:a})]}),description:(0,r.jsx)("span",{className:t.datetime,title:e.updatedAt,children:(0,S.default)(e.updatedAt).fromNow()})})},e.id);};return(0,r.jsx)(d.PageContainer,{content:(0,r.jsx)(D,{currentUser:{avatar:"https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png",name:"\u5434\u5F66\u7956",userid:"00000001",email:"antdesign@alipay.com",signature:"\u6D77\u7EB3\u767E\u5DDD\uFF0C\u6709\u5BB9\u4E43\u5927",title:"\u4EA4\u4E92\u4E13\u5BB6",group:"\u8682\u8681\u91D1\u670D\uFF0D\u67D0\u67D0\u67D0\u4E8B\u4E1A\u7FA4\uFF0D\u67D0\u67D0\u5E73\u53F0\u90E8\uFF0D\u67D0\u67D0\u6280\u672F\u90E8\uFF0DUED"}}),extraContent:(0,r.jsx)(O,{}),children:(0,r.jsxs)(j.default,{gutter:24,children:[(0,r.jsxs)(h.default,{xl:16,lg:24,md:24,sm:24,xs:24,children:[(0,r.jsx)(p.default,{className:t.projectList,style:{marginBottom:24},title:"\u8FDB\u884C\u4E2D\u7684\u9879\u76EE",variant:"borderless",extra:(0,r.jsx)(s.Link,{to:"/",children:"\u5168\u90E8\u9879\u76EE"}),loading:a,children:i.map(e=>(0,r.jsxs)(p.default.Grid,{className:t.projectGrid,children:[(0,r.jsx)(p.default.Meta,{title:(0,r.jsxs)("div",{className:t.cardTitle,children:[(0,r.jsx)(c.default,{size:"small",src:e.logo}),(0,r.jsx)(s.Link,{to:e.href||"/",children:e.title})]}),description:e.description,style:{width:"100%"}}),(0,r.jsxs)("div",{className:t.projectItemContent,children:[(0,r.jsx)(s.Link,{to:e.memberLink||"/",children:e.member||""}),e.updatedAt&&(0,r.jsx)("span",{className:t.datetime,title:e.updatedAt,children:(0,S.default)(e.updatedAt).fromNow()})]})]},e.id))}),(0,r.jsx)(p.default,{styles:{body:{padding:l?16:0}},variant:"borderless",className:t.activeCard,title:"\u52A8\u6001",loading:l,children:(0,r.jsx)(g.default,{loading:l,renderItem:e=>m(e),dataSource:o,className:t.activitiesList,size:"large"})})]}),(0,r.jsxs)(h.default,{xl:8,lg:24,md:24,sm:24,xs:24,children:[(0,r.jsx)(p.default,{style:{marginBottom:24},title:"\u5FEB\u901F\u5F00\u59CB / \u4FBF\u6377\u5BFC\u822A",variant:"borderless",children:(0,r.jsx)(A,{onAdd:()=>{},links:q,linkElement:s.Link})}),(0,r.jsx)(p.default,{style:{marginBottom:24},variant:"borderless",title:"XX \u6307\u6570",loading:(null==x?void 0:null===(e=x.radarData)||void 0===e?void 0:e.length)===0,children:(0,r.jsx)(n.Radar,{height:343,data:(null==x?void 0:x.radarData)||[],xField:"label",colorField:"name",yField:"value",shapeField:"smooth",area:{style:{fillOpacity:.4}},axis:{y:{gridStrokeOpacity:.5}},legend:{color:{position:"bottom",layout:{justifyContent:"center"}}}})}),(0,r.jsx)(p.default,{styles:{body:{paddingTop:12,paddingBottom:12}},variant:"borderless",title:"\u56E2\u961F",loading:a,children:(0,r.jsx)("div",{className:t.members,children:(0,r.jsx)(j.default,{gutter:48,children:i.map(e=>(0,r.jsx)(h.default,{span:12,children:(0,r.jsxs)("a",{children:[(0,r.jsx)(c.default,{src:e.logo,size:"small"}),(0,r.jsx)("span",{className:t.member,children:e.member.substring(0,3)})]})},`members-item-${e.id}`))})})})]})]})});};}}]);
|
|
//# sourceMappingURL=dbd20fbd-async.7d22b22a.js.map
|