|
@@ -60,7 +60,41 @@ const Gzh: React.FC = () => {
|
|
title: '打开率',
|
|
title: '打开率',
|
|
dataIndex: 'openRate',
|
|
dataIndex: 'openRate',
|
|
key: 'openRate',
|
|
key: 'openRate',
|
|
- render: (text) => `${text}%`
|
|
|
|
|
|
+ render: (text) => `${Number(text) * 100}%`
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '传播得分',
|
|
|
|
+ dataIndex: 'score',
|
|
|
|
+ key: 'score',
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+
|
|
|
|
+ const separateColumns:TableProps['columns'] = [
|
|
|
|
+ {
|
|
|
|
+ title: '日期',
|
|
|
|
+ dataIndex: 'dateStr',
|
|
|
|
+ key: 'dateStr',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '公众号',
|
|
|
|
+ dataIndex: 'name',
|
|
|
|
+ key: 'name',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '新增粉丝',
|
|
|
|
+ dataIndex: 'fansIncreaseCount',
|
|
|
|
+ key: 'fansIncreaseCount',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '小程序访问人数',
|
|
|
|
+ dataIndex: 'firstLevel',
|
|
|
|
+ key: 'firstLevel',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '打开率',
|
|
|
|
+ dataIndex: 'openRate',
|
|
|
|
+ key: 'openRate',
|
|
|
|
+ render: (text) => `${Number(text) * 100}%`
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '传播得分',
|
|
title: '传播得分',
|
|
@@ -186,7 +220,7 @@ const Gzh: React.FC = () => {
|
|
children: (
|
|
children: (
|
|
<Table
|
|
<Table
|
|
dataSource={separateDataSource}
|
|
dataSource={separateDataSource}
|
|
- columns={columns}
|
|
|
|
|
|
+ columns={separateColumns}
|
|
rowKey="dateStr"
|
|
rowKey="dateStr"
|
|
loading={loading}
|
|
loading={loading}
|
|
pagination={{
|
|
pagination={{
|