This commit is contained in:
@@ -29,6 +29,7 @@ interface Job {
|
||||
failure_reason?: string;
|
||||
created_at?: string;
|
||||
author_name?: string;
|
||||
competitor_id?: string;
|
||||
}
|
||||
|
||||
interface FormValues {
|
||||
@@ -119,14 +120,22 @@ export default function Page() {
|
||||
{
|
||||
title: '账号名称',
|
||||
dataIndex: 'author_name',
|
||||
render: (value?: string, job?: Job) =>
|
||||
value ? (
|
||||
<Typography.Text strong>{value}</Typography.Text>
|
||||
render: (value?: string, job?: Job) => {
|
||||
if (!value) {
|
||||
return (
|
||||
<Typography.Text type="secondary" style={{ fontSize: 12 }}>
|
||||
{job?.status === 'failed' ? '解析失败' : '解析中'}
|
||||
</Typography.Text>
|
||||
);
|
||||
}
|
||||
// 名称来自 competitor_id 关联的监控账号(creator_competitor),点击跳转竞品作者详情。
|
||||
const inner = <Typography.Text strong>{value}</Typography.Text>;
|
||||
return job?.competitor_id ? (
|
||||
<Typography.Link href={`/creator/competitors/${job.competitor_id}`}>{inner}</Typography.Link>
|
||||
) : (
|
||||
<Typography.Text type="secondary" style={{ fontSize: 12 }}>
|
||||
{job?.status === 'failed' ? '解析失败' : '解析中'}
|
||||
</Typography.Text>
|
||||
),
|
||||
inner
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '分享链接',
|
||||
|
||||
Reference in New Issue
Block a user