Browse Source

chore: update files

pull/11501/head
afc163 9 months ago
parent
commit
3b9b54070a
  1. 1
      src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts
  2. 125
      src/pages/dashboard/workplace/index.tsx
  3. 3
      src/pages/dashboard/workplace/style.style.ts

1
src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts

@ -3,7 +3,6 @@ import { createStyles } from 'antd-style';
const useStyles = createStyles(({ token }) => {
return {
linkGroup: {
padding: '20px 0 8px 24px',
fontSize: '0',
'& > a': {
display: 'inline-block',

125
src/pages/dashboard/workplace/index.tsx

@ -154,50 +154,42 @@ const Workplace: FC = () => {
marginBottom: 24,
}}
title="进行中的项目"
bordered={false}
variant="borderless"
extra={<Link to="/"></Link>}
loading={projectLoading}
bodyStyle={{
padding: 0,
}}
>
{projectNotice.map((item) => (
<Card.Grid className={styles.projectGrid} key={item.id}>
<Card
bodyStyle={{
padding: 0,
<Card.Meta
title={
<div className={styles.cardTitle}>
<Avatar size="small" src={item.logo} />
<Link to={item.href || '/'}>{item.title}</Link>
</div>
}
description={item.description}
style={{
width: '100%',
}}
bordered={false}
>
<Card.Meta
title={
<div className={styles.cardTitle}>
<Avatar size="small" src={item.logo} />
<Link to={item.href || '/'}>{item.title}</Link>
</div>
}
description={item.description}
style={{
width: '100%',
}}
/>
<div className={styles.projectItemContent}>
<Link to={item.memberLink || '/'}>{item.member || ''}</Link>
{item.updatedAt && (
<span className={styles.datetime} title={item.updatedAt}>
{dayjs(item.updatedAt).fromNow()}
</span>
)}
</div>
</Card>
/>
<div className={styles.projectItemContent}>
<Link to={item.memberLink || '/'}>{item.member || ''}</Link>
{item.updatedAt && (
<span className={styles.datetime} title={item.updatedAt}>
{dayjs(item.updatedAt).fromNow()}
</span>
)}
</div>
</Card.Grid>
))}
</Card>
<Card
bodyStyle={{
padding: 0,
styles={{
body: {
padding: activitiesLoading ? 16 : 0,
},
}}
bordered={false}
variant="borderless"
className={styles.activeCard}
title="动态"
loading={activitiesLoading}
@ -217,10 +209,7 @@ const Workplace: FC = () => {
marginBottom: 24,
}}
title="快速开始 / 便捷导航"
bordered={false}
bodyStyle={{
padding: 0,
}}
variant="borderless"
>
<EditableLinkGroup
onAdd={() => {}}
@ -232,43 +221,43 @@ const Workplace: FC = () => {
style={{
marginBottom: 24,
}}
bordered={false}
variant="borderless"
title="XX 指数"
loading={data?.radarData?.length === 0}
>
<div>
<Radar
height={343}
data={data?.radarData || []}
xField="label"
colorField="name"
yField="value"
shapeField="smooth"
area={{
style: {
fillOpacity: 0.4,
},
}}
axis={{
y: {
gridStrokeOpacity: 0.5,
},
}}
legend={{
color: {
position: 'bottom',
layout: { justifyContent: 'center' },
},
}}
/>
</div>
<Radar
height={343}
data={data?.radarData || []}
xField="label"
colorField="name"
yField="value"
shapeField="smooth"
area={{
style: {
fillOpacity: 0.4,
},
}}
axis={{
y: {
gridStrokeOpacity: 0.5,
},
}}
legend={{
color: {
position: 'bottom',
layout: { justifyContent: 'center' },
},
}}
/>
</Card>
<Card
bodyStyle={{
paddingTop: 12,
paddingBottom: 12,
styles={{
body: {
paddingTop: 12,
paddingBottom: 12,
},
}}
bordered={false}
variant="borderless"
title="团队"
loading={projectLoading}
>

3
src/pages/dashboard/workplace/style.style.ts

@ -3,7 +3,7 @@ import { createStyles } from 'antd-style';
const useStyles = createStyles(({ token }) => {
return {
activitiesList: {
padding: '0 24px 8px 24px',
padding: 0,
},
username: {
color: token.colorText,
@ -198,7 +198,6 @@ const useStyles = createStyles(({ token }) => {
},
datetime: {
flex: '0 0 auto',
float: 'right',
color: token.colorTextDisabled,
},
activeCard: {

Loading…
Cancel
Save