Skip to content

Commit

Permalink
feat: 代码格式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
xucz committed May 1, 2022
1 parent d7a9a57 commit 80aa462
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 36 deletions.
4 changes: 4 additions & 0 deletions src/layouts/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
background-clip: content-box;
background-color: #EEEEEE;
}
.t-card__title {
font-weight: 700;
font-size: 20px;
}
}
}
6 changes: 0 additions & 6 deletions src/pages/Dashboard/Base/components/MiddleChart.module.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.middleChartPanel {
margin-top: 16px;
:global {
.t-card__title {
font-weight: 700;
font-size: 20px;
}
}
}
6 changes: 0 additions & 6 deletions src/pages/Dashboard/Base/components/Overview.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@
background-color: var(--td-bg-color-container);
border-radius: 3px;
margin-top: 16px;
:global {
.t-card__title {
font-weight: 700;
font-size: 20px;
}
}
}
6 changes: 0 additions & 6 deletions src/pages/Dashboard/Base/components/RankList.module.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
.rankListPanel {
margin-top: 16px;
:global {
.t-card__title {
font-weight: 700;
font-size: 20px;
}
}
}

.rankIndex {
Expand Down
14 changes: 7 additions & 7 deletions src/pages/Dashboard/Detail/constant.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
import { IBoardProps } from 'components/Board';
import { IBoardProps, ETrend } from 'components/Board';

export const PANE_LIST: Array<IBoardProps> = [
{
title: '总申请数(次)',
count: '1126',
trendNum: '10%',
trend: 'up',
trend: ETrend.up,
},
{
title: '供应商数量(个)',
count: '13',
trendNum: '13%',
trend: 'down',
trend: ETrend.down,
},
{
title: '采购商品品类(类)',
count: '4',
trendNum: '10%',
trend: 'up',
trend: ETrend.up,
},
{
title: '申请人数量(人)',
count: '90',
trendNum: '44%',
trend: 'down',
trend: ETrend.down,
},
{
title: '申请完成率(%)',
count: '80.5',
trendNum: '70%',
trend: 'up',
trend: ETrend.up,
},
{
title: '到货及时率(%)',
count: '78',
trendNum: '16%',
trend: 'up',
trend: ETrend.up,
},
];

Expand Down
8 changes: 0 additions & 8 deletions src/pages/Dashboard/Detail/index.module.less

This file was deleted.

3 changes: 1 addition & 2 deletions src/pages/Dashboard/Detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import PageBox from 'components/PageBox';
import MonthPurchase from './components/MonthPurchase';
import PurchaseTrend from './components/PurchaseTrend';
import PurchaseSatisfaction from './components/Satisfaction';
import Style from './index.module.less';

export default memo(() => (
<PageBox className={Style.panel}>
<PageBox>
<MonthPurchase />
<PurchaseTrend />
<PurchaseSatisfaction />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Detail/Deploy/components/TopChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TopChart = () => {
return (
<Row gutter={16} className={Style.panel}>
<Col span={6}>
<Card title='部署趋势'>
<Card title='部署趋势' header>
<div className={Style.deployPanelLeft}>
<DynamicLineChart />
</div>
Expand Down

0 comments on commit 80aa462

Please sign in to comment.