|
@@ -61,39 +61,6 @@ const AstraGroupHourEle: React.FC<AstraGroupHourProps> = ({ localCsgroupName, da
|
|
return <span style={{ fontSize: 12 }}>{value}</span>
|
|
return <span style={{ fontSize: 12 }}>{value}</span>
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // title: '消耗',
|
|
|
|
- // dataIndex: 'cost',
|
|
|
|
- // key: 'cost',
|
|
|
|
- // width: 80,
|
|
|
|
- // sorter: (a, b) => a.cost - b.cost,
|
|
|
|
- // align: 'right',
|
|
|
|
- // render(value) {
|
|
|
|
- // return <Statistic value={value || 0} />
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: '加粉次数(广告)',
|
|
|
|
- // dataIndex: 'scanFollowCount',
|
|
|
|
- // key: 'scanFollowCount',
|
|
|
|
- // width: 80,
|
|
|
|
- // sorter: (a, b) => a.scanFollowCount - b.scanFollowCount,
|
|
|
|
- // align: 'right',
|
|
|
|
- // render(value) {
|
|
|
|
- // return <span style={{ fontSize: 12 }}>{value}</span>
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: '加粉人数(广告)',
|
|
|
|
- // dataIndex: 'scanFollowUserCount',
|
|
|
|
- // key: 'scanFollowUserCount',
|
|
|
|
- // width: 80,
|
|
|
|
- // sorter: (a, b) => a.scanFollowUserCount - b.scanFollowUserCount,
|
|
|
|
- // align: 'right',
|
|
|
|
- // render(value) {
|
|
|
|
- // return <span style={{ fontSize: 12 }}>{value}</span>
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
{
|
|
{
|
|
title: '加粉人数',
|
|
title: '加粉人数',
|
|
dataIndex: 'addUserCount',
|
|
dataIndex: 'addUserCount',
|
|
@@ -119,15 +86,9 @@ const AstraGroupHourEle: React.FC<AstraGroupHourProps> = ({ localCsgroupName, da
|
|
]}
|
|
]}
|
|
pagination={false}
|
|
pagination={false}
|
|
summary={pageData => {
|
|
summary={pageData => {
|
|
- let totalCost = 0;
|
|
|
|
- let totalScanFollowCount = 0;
|
|
|
|
- let totalScanFollowUserCount = 0;
|
|
|
|
let totalAddUserCount = 0;
|
|
let totalAddUserCount = 0;
|
|
|
|
|
|
- pageData.forEach(({ cost, scanFollowCount, scanFollowUserCount, addUserCount }) => {
|
|
|
|
- totalCost += cost;
|
|
|
|
- totalScanFollowCount += scanFollowCount;
|
|
|
|
- totalScanFollowUserCount += scanFollowUserCount;
|
|
|
|
|
|
+ pageData.forEach(({ addUserCount }) => {
|
|
totalAddUserCount += addUserCount;
|
|
totalAddUserCount += addUserCount;
|
|
});
|
|
});
|
|
|
|
|
|
@@ -137,18 +98,9 @@ const AstraGroupHourEle: React.FC<AstraGroupHourProps> = ({ localCsgroupName, da
|
|
<Table.Summary.Cell index={0} align="center"><Text strong>总计</Text></Table.Summary.Cell>
|
|
<Table.Summary.Cell index={0} align="center"><Text strong>总计</Text></Table.Summary.Cell>
|
|
<Table.Summary.Cell index={1} align="center">--</Table.Summary.Cell>
|
|
<Table.Summary.Cell index={1} align="center">--</Table.Summary.Cell>
|
|
<Table.Summary.Cell index={2} align="right">
|
|
<Table.Summary.Cell index={2} align="right">
|
|
- <Text strong>{totalCost}</Text>
|
|
|
|
- </Table.Summary.Cell>
|
|
|
|
- <Table.Summary.Cell index={3} align="right">
|
|
|
|
- <Text strong>{totalScanFollowCount}</Text>
|
|
|
|
- </Table.Summary.Cell>
|
|
|
|
- <Table.Summary.Cell index={4} align="right">
|
|
|
|
- <Text strong>{totalScanFollowUserCount}</Text>
|
|
|
|
- </Table.Summary.Cell>
|
|
|
|
- <Table.Summary.Cell index={5} align="right">
|
|
|
|
<Text strong>{totalAddUserCount}</Text>
|
|
<Text strong>{totalAddUserCount}</Text>
|
|
</Table.Summary.Cell>
|
|
</Table.Summary.Cell>
|
|
- <Table.Summary.Cell index={6} align="center">--</Table.Summary.Cell>
|
|
|
|
|
|
+ <Table.Summary.Cell index={3} align="center">--</Table.Summary.Cell>
|
|
</Table.Summary.Row>
|
|
</Table.Summary.Row>
|
|
</Table.Summary>
|
|
</Table.Summary>
|
|
);
|
|
);
|