ソースを参照

修改展示字段

jihuaqiang 1 週間 前
コミット
516d54b837
2 ファイル変更28 行追加36 行削除
  1. 10 33
      src/views/weData/gzh/index.tsx
  2. 18 3
      src/views/weData/qw/index.tsx

+ 10 - 33
src/views/weData/gzh/index.tsx

@@ -39,7 +39,7 @@ const Gzh: React.FC = () => {
     total: 0
   });
   const [activeKey, setActiveKey] = useState("0");
-	const totalColumns:TableProps['columns'] = [
+  const columns:TableProps['columns'] = [
     {
       title: '日期',
       dataIndex: 'dateStr',
@@ -67,37 +67,14 @@ const Gzh: React.FC = () => {
       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: (
               <Table
                 dataSource={allDataSource}
-                columns={totalColumns}
+                columns={columns}
                 rowKey="dateStr"
                 loading={loading}
                 pagination={{

+ 18 - 3
src/views/weData/qw/index.tsx

@@ -74,9 +74,14 @@ const Qw: React.FC = () => {
       key: 'score',
     },
 		{
-      title: '动态单价',
-      dataIndex: 'price',
-      key: 'price',
+      title: '预估单价',
+      dataIndex: 'unitPrice',
+      key: 'unitPrice',
+		},
+		{
+      title: '建议结算金额',
+      dataIndex: 'settlementAmount',
+      key: 'settlementAmount',
     },
   ];
 
@@ -124,6 +129,16 @@ const Qw: React.FC = () => {
 			dataIndex: 'score',
 			key: 'score',
 		},
+		{
+      title: '预估单价',
+      dataIndex: 'unitPrice',
+      key: 'unitPrice',
+		},
+		{
+      title: '建议结算金额',
+      dataIndex: 'settlementAmount',
+      key: 'settlementAmount',
+    }
 	];
 
   const fetchQwData = async (page = 1, pageSize = 10, type = 0) => {