Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
0daea864
Commit
0daea864
authored
Nov 08, 2022
by
shenshaokai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 隐藏首页部分模块
parent
1e5cace7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
34 deletions
+39
-34
MemberStatisticsContainer.tsx
...components/MemberStatistics/MemberStatisticsContainer.tsx
+3
-2
index.tsx
src/pages/home/components/Order/index.tsx
+3
-2
index.tsx
src/pages/home/components/PurchaseCenter/index.tsx
+3
-2
index.tsx
src/pages/home/components/StatisticsColumn/index.tsx
+27
-26
index.tsx
src/pages/home/index.tsx
+3
-2
No files found.
src/pages/home/components/MemberStatistics/MemberStatisticsContainer.tsx
View file @
0daea864
...
...
@@ -24,7 +24,8 @@ const MemberStatisticsContainer = () => {
<
Col
xxl=
{
18
}
xl=
{
24
}
lg=
{
24
}
ref=
{
ref
}
>
<
MemberStatistics
memberData=
{
responseData
}
loading=
{
loading
}
/>
</
Col
>
<
Col
xxl=
{
6
}
xl=
{
24
}
lg=
{
24
}
>
{
/* 暂时隐藏掉 待处理会员*/
}
{
/* <Col xxl={6} xl={24} lg={24}>
<Card
headStyle={{borderBottom:'none'}}
bodyStyle={{padding: '0px'}}
...
...
@@ -64,7 +65,7 @@ const MemberStatisticsContainer = () => {
</Col>
</Row>
</Card>
</
Col
>
</Col>
*/
}
</
Row
>
)
}
...
...
src/pages/home/components/Order/index.tsx
View file @
0daea864
...
...
@@ -72,7 +72,8 @@ const OrderContainer = () => {
return
(
<
Row
gutter=
{
[
24
,
12
]
}
style=
{
{
display
:
'flex'
,
flexDirection
:
'row'
}
}
ref=
{
ref
}
>
<
Col
xxl=
{
6
}
xl=
{
24
}
lg=
{
24
}
md=
{
24
}
sm=
{
24
}
xs=
{
24
}
style=
{
{
display
:
'flex'
,
flexDirection
:
'column'
}
}
>
{
/* 暂时屏蔽掉 待处理交易 */
}
{
/* <Col xxl={6} xl={24} lg={24} md={24} sm={24} xs={24} style={{display: 'flex', flexDirection: 'column'}}>
<Row style={{height: '100%'}} gutter={[24, 12]}>
{
(loading) && (
...
...
@@ -82,7 +83,7 @@ const OrderContainer = () => {
)
}
</Row>
</
Col
>
</Col>
*/
}
<
Col
xxl=
{
18
}
xl=
{
24
}
lg=
{
24
}
ref=
{
orderStatisticsRef
}
>
<
OrderStatistics
orderData=
{
orderStatisticsData
}
loading=
{
orderStatisticsLoading
}
/>
</
Col
>
...
...
src/pages/home/components/PurchaseCenter/index.tsx
View file @
0daea864
...
...
@@ -18,7 +18,8 @@ const PurchaseCenter = () => {
return
(
<
Row
gutter=
{
[
24
,
12
]
}
style=
{
{
display
:
'flex'
,
flexDirection
:
'row'
}
}
ref=
{
ref
}
>
<
Col
xxl=
{
6
}
xl=
{
24
}
lg=
{
24
}
md=
{
24
}
sm=
{
24
}
xs=
{
24
}
style=
{
{
display
:
'flex'
,
flexDirection
:
'column'
}
}
>
{
/* 暂时隐藏掉-待处理采购 */
}
{
/* <Col xxl={6} xl={24} lg={24} md={24} sm={24} xs={24} style={{display: 'flex', flexDirection: 'column'}}>
<Card
headStyle={{borderBottom:'none'}}
title={'待处理采购'}
...
...
@@ -47,7 +48,7 @@ const PurchaseCenter = () => {
}
</List>
</Card>
</
Col
>
</Col>
*/
}
<
Col
xxl=
{
18
}
xl=
{
24
}
lg=
{
24
}
ref=
{
orderStatisticsRef
}
>
<
OrderStatistics
height=
{
158
}
orderData=
{
orderStatisticsData
}
loading=
{
orderStatisticsLoading
}
/>
</
Col
>
...
...
src/pages/home/components/StatisticsColumn/index.tsx
View file @
0daea864
...
...
@@ -14,27 +14,28 @@ import { GetReportPlatformHomeGetCommodityTallyResponse, getReportPlatformHomeGe
const
StatisticsColumn
=
(
props
)
=>
{
const
{
loading
,
responseData
,
ref
}
=
useViewRequest
<
GetReportPlatformHomeGetCommodityTallyResponse
,
any
>
(
getReportPlatformHomeGetCommodityTally
,
{})
const
list
=
useMemo
(()
=>
{
// 暂时隐藏掉相关内容
return
[
{
title
:
'商品统计'
,
alias
:
'全部商品'
,
key
:
'product'
,
totalCount
:
responseData
?.
productCount
,
children
:
[
{
count
:
responseData
?.
addProduct
.
count
||
0
,
name
:
responseData
?.
addProduct
.
name
,
link
:
responseData
?.
addProduct
?.
link
||
null
,
icon
:
totalIcona3
,
},
{
count
:
responseData
?.
toBeProductValify
?.
count
||
0
,
name
:
responseData
?.
toBeProductValify
?.
name
,
link
:
responseData
?.
toBeProductValify
?.
link
||
null
,
icon
:
totalCommdity
,
},
]
},
//
{
//
title: '商品统计',
//
alias: '全部商品',
//
key: 'product',
//
totalCount: responseData?.productCount,
//
children: [
//
{
//
count: responseData?.addProduct.count || 0,
//
name: responseData?.addProduct.name,
//
link: responseData?.addProduct?.link || null,
//
icon: totalIcona3,
//
},
//
{
//
count: responseData?.toBeProductValify?.count || 0,
//
name: responseData?.toBeProductValify?.name,
//
link: responseData?.toBeProductValify?.link || null,
//
icon: totalCommdity,
//
},
//
]
//
},
{
title
:
'品牌统计'
,
alias
:
'全部品牌'
,
...
...
@@ -47,12 +48,12 @@ const StatisticsColumn = (props) => {
link
:
responseData
?.
addBrand
?.
link
||
null
,
icon
:
totalBrand1
,
},
{
count
:
responseData
?.
toBeBrandValify
?.
count
||
0
,
name
:
responseData
?.
toBeBrandValify
?.
name
,
link
:
responseData
?.
toBeBrandValify
?.
link
||
null
,
icon
:
totalBrand2
},
//
{
//
count: responseData?.toBeBrandValify?.count || 0,
//
name: responseData?.toBeBrandValify?.name,
//
link: responseData?.toBeBrandValify?.link || null,
//
icon: totalBrand2
//
},
]
}
]
...
...
src/pages/home/index.tsx
View file @
0daea864
...
...
@@ -36,9 +36,10 @@ const Home: React.FC<{}> = () => {
</
Space
>
{
/* 付款提现统计 */
}
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
{
/* 暂时屏蔽掉 */
}
{
/* <Space direction="vertical" style={{width:'100%'}}>
<Settlement />
</
Space
>
</Space>
*/
}
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
DataCenter
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment