Pārlūkot izejas kodu

Merge branch 'feature_first_pages' of Web/contentCooper into master

nieyuge 6 dienas atpakaļ
vecāks
revīzija
971e276b99
1 mainītis faili ar 36 papildinājumiem un 2 dzēšanām
  1. 36 2
      src/views/weData/gzh/index.tsx

+ 36 - 2
src/views/weData/gzh/index.tsx

@@ -60,7 +60,41 @@ const Gzh: React.FC = () => {
       title: '打开率',
       dataIndex: '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: '传播得分',
@@ -186,7 +220,7 @@ const Gzh: React.FC = () => {
             children: (
               <Table
                 dataSource={separateDataSource}
-                columns={columns}
+                columns={separateColumns}
                 rowKey="dateStr"
                 loading={loading}
                 pagination={{