Commit 0daea864 authored by shenshaokai's avatar shenshaokai

feat: 隐藏首页部分模块

parent 1e5cace7
...@@ -24,7 +24,8 @@ const MemberStatisticsContainer = () => { ...@@ -24,7 +24,8 @@ const MemberStatisticsContainer = () => {
<Col xxl={18} xl={24} lg={24} ref={ref}> <Col xxl={18} xl={24} lg={24} ref={ref}>
<MemberStatistics memberData={responseData} loading={loading} /> <MemberStatistics memberData={responseData} loading={loading} />
</Col> </Col>
<Col xxl={6} xl={24} lg={24}> {/* 暂时隐藏掉 待处理会员*/}
{/* <Col xxl={6} xl={24} lg={24}>
<Card <Card
headStyle={{borderBottom:'none'}} headStyle={{borderBottom:'none'}}
bodyStyle={{padding: '0px'}} bodyStyle={{padding: '0px'}}
...@@ -64,7 +65,7 @@ const MemberStatisticsContainer = () => { ...@@ -64,7 +65,7 @@ const MemberStatisticsContainer = () => {
</Col> </Col>
</Row> </Row>
</Card> </Card>
</Col> </Col> */}
</Row> </Row>
) )
} }
......
...@@ -72,7 +72,8 @@ const OrderContainer = () => { ...@@ -72,7 +72,8 @@ const OrderContainer = () => {
return ( return (
<Row gutter={[24, 12]} style={{display: 'flex', flexDirection: 'row'}} ref={ref}> <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]}> <Row style={{height: '100%'}} gutter={[24, 12]}>
{ {
(loading) && ( (loading) && (
...@@ -82,7 +83,7 @@ const OrderContainer = () => { ...@@ -82,7 +83,7 @@ const OrderContainer = () => {
) )
} }
</Row> </Row>
</Col> </Col> */}
<Col xxl={18} xl={24} lg={24} ref={orderStatisticsRef}> <Col xxl={18} xl={24} lg={24} ref={orderStatisticsRef}>
<OrderStatistics orderData={orderStatisticsData} loading={orderStatisticsLoading}/> <OrderStatistics orderData={orderStatisticsData} loading={orderStatisticsLoading}/>
</Col> </Col>
......
...@@ -18,7 +18,8 @@ const PurchaseCenter = () => { ...@@ -18,7 +18,8 @@ const PurchaseCenter = () => {
return ( return (
<Row gutter={[24, 12]} style={{display: 'flex', flexDirection: 'row'}} ref={ref}> <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 <Card
headStyle={{borderBottom:'none'}} headStyle={{borderBottom:'none'}}
title={'待处理采购'} title={'待处理采购'}
...@@ -47,7 +48,7 @@ const PurchaseCenter = () => { ...@@ -47,7 +48,7 @@ const PurchaseCenter = () => {
} }
</List> </List>
</Card> </Card>
</Col> </Col> */}
<Col xxl={18} xl={24} lg={24} ref={orderStatisticsRef}> <Col xxl={18} xl={24} lg={24} ref={orderStatisticsRef}>
<OrderStatistics height={158} orderData={orderStatisticsData} loading={orderStatisticsLoading}/> <OrderStatistics height={158} orderData={orderStatisticsData} loading={orderStatisticsLoading}/>
</Col> </Col>
......
...@@ -14,27 +14,28 @@ import { GetReportPlatformHomeGetCommodityTallyResponse, getReportPlatformHomeGe ...@@ -14,27 +14,28 @@ import { GetReportPlatformHomeGetCommodityTallyResponse, getReportPlatformHomeGe
const StatisticsColumn = (props) => { const StatisticsColumn = (props) => {
const { loading, responseData, ref } = useViewRequest<GetReportPlatformHomeGetCommodityTallyResponse, any>(getReportPlatformHomeGetCommodityTally, {}) const { loading, responseData, ref } = useViewRequest<GetReportPlatformHomeGetCommodityTallyResponse, any>(getReportPlatformHomeGetCommodityTally, {})
const list = useMemo(() => { const list = useMemo(() => {
// 暂时隐藏掉相关内容
return [ return [
{ // {
title: '商品统计', // title: '商品统计',
alias: '全部商品', // alias: '全部商品',
key: 'product', // key: 'product',
totalCount: responseData?.productCount, // totalCount: responseData?.productCount,
children: [ // children: [
{ // {
count: responseData?.addProduct.count || 0, // count: responseData?.addProduct.count || 0,
name: responseData?.addProduct.name, // name: responseData?.addProduct.name,
link: responseData?.addProduct?.link || null, // link: responseData?.addProduct?.link || null,
icon: totalIcona3, // icon: totalIcona3,
}, // },
{ // {
count: responseData?.toBeProductValify?.count || 0, // count: responseData?.toBeProductValify?.count || 0,
name: responseData?.toBeProductValify?.name, // name: responseData?.toBeProductValify?.name,
link: responseData?.toBeProductValify?.link || null, // link: responseData?.toBeProductValify?.link || null,
icon: totalCommdity, // icon: totalCommdity,
}, // },
] // ]
}, // },
{ {
title: '品牌统计', title: '品牌统计',
alias: '全部品牌', alias: '全部品牌',
...@@ -47,12 +48,12 @@ const StatisticsColumn = (props) => { ...@@ -47,12 +48,12 @@ const StatisticsColumn = (props) => {
link: responseData?.addBrand?.link || null, link: responseData?.addBrand?.link || null,
icon: totalBrand1, icon: totalBrand1,
}, },
{ // {
count: responseData?.toBeBrandValify?.count || 0, // count: responseData?.toBeBrandValify?.count || 0,
name: responseData?.toBeBrandValify?.name, // name: responseData?.toBeBrandValify?.name,
link: responseData?.toBeBrandValify?.link || null, // link: responseData?.toBeBrandValify?.link || null,
icon: totalBrand2 // icon: totalBrand2
}, // },
] ]
} }
] ]
......
...@@ -36,9 +36,10 @@ const Home: React.FC<{}> = () => { ...@@ -36,9 +36,10 @@ const Home: React.FC<{}> = () => {
</Space> </Space>
{/* 付款提现统计 */} {/* 付款提现统计 */}
<Space direction="vertical" style={{width:'100%'}}> {/* 暂时屏蔽掉 */}
{/* <Space direction="vertical" style={{width:'100%'}}>
<Settlement /> <Settlement />
</Space> </Space> */}
<Space direction="vertical" style={{width:'100%'}}> <Space direction="vertical" style={{width:'100%'}}>
<DataCenter /> <DataCenter />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment