|
|
@@ -23,6 +23,7 @@ import type { SortOrder } from "antd/es/table/interface";
|
|
|
import dayjs from "dayjs";
|
|
|
import type { Dayjs } from "dayjs";
|
|
|
import HotContentSourcePage from "./HotContentSourcePage";
|
|
|
+import EllipsisCell from "./EllipsisCell";
|
|
|
|
|
|
type DemandPoolItem = {
|
|
|
id: number;
|
|
|
@@ -1293,6 +1294,7 @@ type HotContentDemandExportItem = {
|
|
|
id: number;
|
|
|
source: string;
|
|
|
hot_title: string;
|
|
|
+ item_text: string;
|
|
|
point_category: string;
|
|
|
item_type: string;
|
|
|
item_type_label: string;
|
|
|
@@ -1304,7 +1306,8 @@ type HotContentDemandExportItem = {
|
|
|
all_hot_keywords: string;
|
|
|
wxindex_latest_score: number;
|
|
|
wxindex_trend: string;
|
|
|
- item_type: string;
|
|
|
+ event_sense_score: number | null;
|
|
|
+ senior_fit_score: number | null;
|
|
|
record_created_at: string;
|
|
|
};
|
|
|
|
|
|
@@ -1484,6 +1487,7 @@ function HotContentDemandExportPanel({ active }: { active: boolean }) {
|
|
|
width: 100,
|
|
|
ellipsis: true,
|
|
|
fixed: "left",
|
|
|
+ render: (v: string) => <EllipsisCell value={v} />,
|
|
|
},
|
|
|
{
|
|
|
title: "热点标题",
|
|
|
@@ -1491,12 +1495,22 @@ function HotContentDemandExportPanel({ active }: { active: boolean }) {
|
|
|
width: 220,
|
|
|
ellipsis: true,
|
|
|
fixed: "left",
|
|
|
+ render: (v: string) => <EllipsisCell value={v} />,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "词条",
|
|
|
+ dataIndex: "item_text",
|
|
|
+ width: 160,
|
|
|
+ ellipsis: true,
|
|
|
+ fixed: "left",
|
|
|
+ render: (v: string) => <EllipsisCell value={v} />,
|
|
|
},
|
|
|
{
|
|
|
title: "类型",
|
|
|
dataIndex: "point_category",
|
|
|
width: 100,
|
|
|
fixed: "left",
|
|
|
+ render: (v: string) => <EllipsisCell value={v} />,
|
|
|
},
|
|
|
{
|
|
|
title: "需求类型",
|
|
|
@@ -1505,13 +1519,6 @@ function HotContentDemandExportPanel({ active }: { active: boolean }) {
|
|
|
align: "center",
|
|
|
fixed: "left",
|
|
|
},
|
|
|
- {
|
|
|
- title: "匹配需求",
|
|
|
- dataIndex: "matched_demand",
|
|
|
- width: 200,
|
|
|
- ellipsis: true,
|
|
|
- fixed: "left",
|
|
|
- },
|
|
|
{
|
|
|
title: "是否成为需求",
|
|
|
dataIndex: "is_as_demand_label",
|
|
|
@@ -1519,6 +1526,13 @@ function HotContentDemandExportPanel({ active }: { active: boolean }) {
|
|
|
align: "center",
|
|
|
fixed: "left",
|
|
|
},
|
|
|
+ {
|
|
|
+ title: "匹配需求",
|
|
|
+ dataIndex: "matched_demand",
|
|
|
+ width: 200,
|
|
|
+ ellipsis: true,
|
|
|
+ render: (v: string) => <EllipsisCell value={v} />,
|
|
|
+ },
|
|
|
{
|
|
|
title: "创建时间",
|
|
|
dataIndex: "record_created_at",
|
|
|
@@ -1532,8 +1546,20 @@ function HotContentDemandExportPanel({ active }: { active: boolean }) {
|
|
|
render: (v: number | null) =>
|
|
|
v === null || v === undefined ? "-" : Number(v).toFixed(2),
|
|
|
},
|
|
|
- { title: "最高微信指数词", dataIndex: "wxindex_keyword", width: 160, ellipsis: true },
|
|
|
- { title: "待选微信指数词", dataIndex: "all_hot_keywords", width: 200, ellipsis: true },
|
|
|
+ {
|
|
|
+ title: "最高微信指数词",
|
|
|
+ dataIndex: "wxindex_keyword",
|
|
|
+ width: 160,
|
|
|
+ ellipsis: true,
|
|
|
+ render: (v: string) => <EllipsisCell value={v} />,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "待选微信指数词",
|
|
|
+ dataIndex: "all_hot_keywords",
|
|
|
+ width: 200,
|
|
|
+ ellipsis: true,
|
|
|
+ render: (v: string) => <EllipsisCell value={v} />,
|
|
|
+ },
|
|
|
{
|
|
|
title: "微信指数热度",
|
|
|
dataIndex: "wxindex_latest_score",
|
|
|
@@ -1541,7 +1567,23 @@ function HotContentDemandExportPanel({ active }: { active: boolean }) {
|
|
|
align: "right",
|
|
|
render: (v: number) => Number(v ?? 0).toLocaleString(),
|
|
|
},
|
|
|
- { title: "微信指数趋势", dataIndex: "wxindex_trend", width: 110 },
|
|
|
+ { title: "微信指数趋势", dataIndex: "wxindex_trend", width: 110, render: (v: string) => <EllipsisCell value={v} /> },
|
|
|
+ {
|
|
|
+ title: "事件性得分",
|
|
|
+ dataIndex: "event_sense_score",
|
|
|
+ width: 110,
|
|
|
+ align: "right",
|
|
|
+ render: (v: number | null) =>
|
|
|
+ v === null || v === undefined ? "-" : Number(v).toFixed(2),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "老年性得分",
|
|
|
+ dataIndex: "senior_fit_score",
|
|
|
+ width: 110,
|
|
|
+ align: "right",
|
|
|
+ render: (v: number | null) =>
|
|
|
+ v === null || v === undefined ? "-" : Number(v).toFixed(2),
|
|
|
+ },
|
|
|
],
|
|
|
[],
|
|
|
);
|
|
|
@@ -1658,7 +1700,7 @@ function HotContentDemandExportPanel({ active }: { active: boolean }) {
|
|
|
columns={columns}
|
|
|
dataSource={data.items}
|
|
|
pagination={false}
|
|
|
- scroll={{ x: 1690 }}
|
|
|
+ scroll={{ x: 2100 }}
|
|
|
rowClassName={(_, index) => (index % 2 === 0 ? "row-even" : "row-odd")}
|
|
|
/>
|
|
|
</div>
|