2025-06-27 18:37:42 +08:00
|
|
|
|
/*
|
|
|
|
|
|
* @Author: RenXiaoDong
|
2025-07-04 18:12:23 +08:00
|
|
|
|
* @Date: 2025-07-04 15:50:37
|
2025-06-27 18:37:42 +08:00
|
|
|
|
*/
|
2025-07-05 11:57:06 +08:00
|
|
|
|
import { CUSTOM_FIELDS } from '@/views/property-marketing/media-account/common_constants';
|
|
|
|
|
|
|
2025-06-27 18:37:42 +08:00
|
|
|
|
import icon1 from '@/assets/img/media-account/icon1.png';
|
|
|
|
|
|
import icon2 from '@/assets/img/media-account/icon2.png';
|
|
|
|
|
|
import icon3 from '@/assets/img/media-account/icon3.png';
|
|
|
|
|
|
import icon4 from '@/assets/img/media-account/icon4.png';
|
|
|
|
|
|
|
|
|
|
|
|
export const CARD_FIELDS = [
|
|
|
|
|
|
{
|
|
|
|
|
|
label: '账号总数',
|
|
|
|
|
|
prop: 'total_number',
|
|
|
|
|
|
icon: icon1,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: '总粉丝数',
|
|
|
|
|
|
prop: 'total_fans_number',
|
|
|
|
|
|
icon: icon2,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '所有账号当前累计的粉丝数量,反映账号的基础用户体量。',
|
2025-06-27 18:37:42 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: '总赞藏数',
|
|
|
|
|
|
prop: 'total_like_number',
|
|
|
|
|
|
icon: icon3,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '所有账号所有内容获得的点赞数与收藏数总和,用于衡量历史内容的整体吸引力与认可度。',
|
2025-06-27 18:37:42 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: '近7日观看数',
|
2025-07-04 16:05:45 +08:00
|
|
|
|
prop: 'seven_view_number',
|
2025-06-27 18:37:42 +08:00
|
|
|
|
icon: icon4,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '最近7天内所有账号所有作品的总观看次数,用于衡量内容在短期内的整体传播效果。',
|
2025-06-27 18:37:42 +08:00
|
|
|
|
},
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
export const INITIAL_QUERY = {
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
status: '',
|
|
|
|
|
|
operator_id: '',
|
|
|
|
|
|
group_ids: [],
|
2025-07-04 18:12:23 +08:00
|
|
|
|
type: 7,
|
2025-06-28 11:31:49 +08:00
|
|
|
|
column: '',
|
|
|
|
|
|
order: '',
|
2025-06-27 18:37:42 +08:00
|
|
|
|
};
|
2025-07-05 11:57:06 +08:00
|
|
|
|
|
|
|
|
|
|
export const getPropPrefix = (type: string) => {
|
|
|
|
|
|
return type === 'week' ? 'seven_' : 'thirty_';
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export function getPeriodColumns(type = 'week') {
|
|
|
|
|
|
const prefix = getPropPrefix(type);
|
|
|
|
|
|
const labelPrefix = type === 'week' ? '近7天' : '近30天';
|
|
|
|
|
|
|
|
|
|
|
|
return CUSTOM_FIELDS.map((item) => ({
|
|
|
|
|
|
...item,
|
|
|
|
|
|
dataIndex: `${prefix}${item.dataIndex}`,
|
|
|
|
|
|
title: `${labelPrefix}${item.title}`,
|
|
|
|
|
|
prop: `${prefix}${item.prop}`,
|
2025-07-05 12:00:31 +08:00
|
|
|
|
tooltip: `${labelPrefix}${item.tooltip}`,
|
2025-07-05 11:57:06 +08:00
|
|
|
|
}));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const getDefaultColumns = (type = 'week') => {
|
|
|
|
|
|
return [
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '账号名称',
|
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
|
prop: 'name',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '项目分组',
|
|
|
|
|
|
dataIndex: 'group.name',
|
|
|
|
|
|
prop: 'group',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '状态',
|
|
|
|
|
|
dataIndex: 'status',
|
|
|
|
|
|
prop: 'status',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '运营人员',
|
|
|
|
|
|
dataIndex: 'operator.name',
|
|
|
|
|
|
prop: 'operator',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: 'AI评价',
|
|
|
|
|
|
dataIndex: 'ai_evaluate',
|
|
|
|
|
|
prop: 'ai_evaluate',
|
|
|
|
|
|
width: 260,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '粉丝量',
|
|
|
|
|
|
dataIndex: 'fans_number',
|
|
|
|
|
|
prop: 'fans_number',
|
|
|
|
|
|
width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '账号的当前粉丝总数。',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '总赞藏数',
|
|
|
|
|
|
dataIndex: 'like_collect_number',
|
|
|
|
|
|
prop: 'like_collect_number',
|
|
|
|
|
|
width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '账号所有内容获得的点赞数与收藏数总和,用于衡量历史内容的整体吸引力与认可度。',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
...getPeriodColumns(type),
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '最新内容标题/日期',
|
|
|
|
|
|
dataIndex: 'newest_work_title',
|
|
|
|
|
|
prop: 'newest_work_title',
|
|
|
|
|
|
width: 240,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
// tooltip: '最新发布内容的标题和发布日期',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '最新作品观看数',
|
|
|
|
|
|
dataIndex: 'newest_work_view_number',
|
|
|
|
|
|
prop: 'newest_work_view_number',
|
|
|
|
|
|
width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '最新一篇发布内容的总观看次数,反映当前内容热度初步表现。',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '最新作品点赞数',
|
|
|
|
|
|
dataIndex: 'newest_work_like_number',
|
|
|
|
|
|
prop: 'newest_work_like_number',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
tooltip: '最新发布内容的点赞数',
|
|
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '最新作品收藏数',
|
|
|
|
|
|
dataIndex: 'newest_work_collect_number',
|
|
|
|
|
|
prop: 'newest_work_collect_number',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
tooltip: '最新发布内容的收藏数',
|
|
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '最新作品评论数',
|
|
|
|
|
|
dataIndex: 'newest_work_comment_number',
|
|
|
|
|
|
prop: 'newest_work_comment_number',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
tooltip: '最新发布内容的评论数',
|
|
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '最新作品分享数',
|
|
|
|
|
|
dataIndex: 'newest_work_share_number',
|
|
|
|
|
|
prop: 'newest_work_share_number',
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
tooltip: '最新发布内容的分享数',
|
|
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: '最新作品日增长',
|
|
|
|
|
|
// dataIndex: 'newest_work_view_grow_number',
|
|
|
|
|
|
// prop: 'newest_work_view_grow_number',
|
|
|
|
|
|
// width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
// tooltip: '最新作品的日均新增观看量,衡量内容是否具备持续热度。',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
// align: 'right',
|
|
|
|
|
|
// sortable: {
|
|
|
|
|
|
// sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
// },
|
|
|
|
|
|
// },
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '次新内容标题/日期',
|
|
|
|
|
|
dataIndex: 'second_new_work_title',
|
|
|
|
|
|
prop: 'second_new_work_title',
|
|
|
|
|
|
width: 240,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '次新作品观看数',
|
|
|
|
|
|
dataIndex: 'second_new_work_view_number',
|
|
|
|
|
|
prop: 'second_new_work_view_number',
|
|
|
|
|
|
width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '次新作品内容的累计观看量,便于对比不同作品表现差异。',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '次新作品点赞数',
|
|
|
|
|
|
dataIndex: 'second_new_work_like_number',
|
|
|
|
|
|
prop: 'second_new_work_like_number',
|
|
|
|
|
|
width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '次新作品内容的点赞数',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '次新作品评论数',
|
|
|
|
|
|
dataIndex: 'second_new_work_comment_number',
|
|
|
|
|
|
prop: 'second_new_work_comment_number',
|
|
|
|
|
|
width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '次新作品内容的评论数',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '次新作品分享数',
|
|
|
|
|
|
dataIndex: 'second_new_work_share_number',
|
|
|
|
|
|
prop: 'second_new_work_share_number',
|
|
|
|
|
|
width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
tooltip: '次新作品内容的分享数',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
align: 'right',
|
|
|
|
|
|
sortable: {
|
|
|
|
|
|
sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: '次新作品日增长',
|
|
|
|
|
|
// dataIndex: 'second_new_work_view_grow_number',
|
|
|
|
|
|
// prop: 'second_new_work_view_grow_number',
|
|
|
|
|
|
// width: 180,
|
2025-07-05 16:45:08 +08:00
|
|
|
|
// tooltip: '次新作品每日新增观看数,用于判断内容是否处于生命周期增长阶段。',
|
2025-07-05 11:57:06 +08:00
|
|
|
|
// align: 'right',
|
|
|
|
|
|
// sortable: {
|
|
|
|
|
|
// sortDirections: ['ascend', 'descend'],
|
|
|
|
|
|
// },
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: '操作',
|
|
|
|
|
|
// dataIndex: 'operation',
|
|
|
|
|
|
// width: 100,
|
|
|
|
|
|
// fixed: 'right',
|
|
|
|
|
|
// },
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|