|
@@ -39,7 +39,7 @@ const Gzh: React.FC = () => {
|
|
total: 0
|
|
total: 0
|
|
});
|
|
});
|
|
const [activeKey, setActiveKey] = useState("0");
|
|
const [activeKey, setActiveKey] = useState("0");
|
|
- const totalColumns:TableProps['columns'] = [
|
|
|
|
|
|
+ const columns:TableProps['columns'] = [
|
|
{
|
|
{
|
|
title: '日期',
|
|
title: '日期',
|
|
dataIndex: 'dateStr',
|
|
dataIndex: 'dateStr',
|
|
@@ -67,37 +67,14 @@ const Gzh: React.FC = () => {
|
|
key: 'score',
|
|
key: 'score',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '动态单价',
|
|
|
|
- dataIndex: 'price',
|
|
|
|
- key: 'price',
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
- const columns:TableProps['columns'] = [
|
|
|
|
- {
|
|
|
|
- title: '日期',
|
|
|
|
- dataIndex: 'dateStr',
|
|
|
|
- key: 'dateStr',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '新增粉丝',
|
|
|
|
- dataIndex: 'fansIncreaseCount',
|
|
|
|
- key: 'fansIncreaseCount',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '小程序访问人数',
|
|
|
|
- dataIndex: 'firstLevel',
|
|
|
|
- key: 'firstLevel',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '打开率',
|
|
|
|
- dataIndex: 'openRate',
|
|
|
|
- key: 'openRate',
|
|
|
|
- render: (text) => `${(Number(text) * 100).toFixed(2)}%`
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '本渠道裂变率',
|
|
|
|
- dataIndex: 'score',
|
|
|
|
- key: 'score',
|
|
|
|
|
|
+ title: '预估单价',
|
|
|
|
+ dataIndex: 'unitPrice',
|
|
|
|
+ key: 'unitPrice',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '建议结算金额',
|
|
|
|
+ dataIndex: 'settlementAmount',
|
|
|
|
+ key: 'settlementAmount',
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
|
|
@@ -232,7 +209,7 @@ const Gzh: React.FC = () => {
|
|
children: (
|
|
children: (
|
|
<Table
|
|
<Table
|
|
dataSource={allDataSource}
|
|
dataSource={allDataSource}
|
|
- columns={totalColumns}
|
|
|
|
|
|
+ columns={columns}
|
|
rowKey="dateStr"
|
|
rowKey="dateStr"
|
|
loading={loading}
|
|
loading={loading}
|
|
pagination={{
|
|
pagination={{
|