feat: 投放数据表格对接

This commit is contained in:
rd
2025-07-05 15:55:56 +08:00
parent 9b8e96a2e5
commit 5ee30e9146
12 changed files with 514 additions and 434 deletions

View File

@ -121,12 +121,7 @@
<a-button type="outline" size="small" class="search-btn" @click="handleDetail(record)">详情</a-button>
</template>
<template
v-else-if="
['week_view_chain', 'month_view_chain', 'week_like_chain', 'month_like_chain'].includes(column.dataIndex)
"
#cell="{ record }"
>
<template v-else-if="column.isRateField" #cell="{ record }">
<div class="flex items-center rate-row justify-end" :class="record[column.dataIndex] > 0 ? 'up' : 'down'">
<icon-arrow-up v-if="record[column.dataIndex] > 0" size="16" />
<icon-arrow-down v-else size="16" />

View File

@ -11,7 +11,7 @@
<div
v-for="(row, rowIdx) in getAccountInfoFields(dateType, showMore)"
:key="rowIdx"
class="grid grid-cols-4 gap-6 mb-24px"
class="grid grid-cols-4 mb-24px"
>
<div
v-for="(field, colIdx) in row"
@ -73,7 +73,7 @@
}}
</template>
<!-- 环比字段特殊渲染 -->
<template v-else-if="field.suffix === '%'">
<template v-else-if="field.isRateField">
<div
class="flex items-center"
:class="detailData[field.dataIndex] > 0 ? 'color-#F64B31' : 'color-#25C883'"

View File

@ -23,6 +23,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的观看量环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -43,6 +44,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的主页访客数环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -63,6 +65,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的点赞量环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -82,6 +85,7 @@ export const CUSTOM_FIELDS = [
width: 180,
tooltip: '账号所有内容的评论数环比',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -103,6 +107,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的收藏数环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -123,6 +128,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的弹幕数环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -143,6 +149,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的笔记涨粉数环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -163,6 +170,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的笔记分享量环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},
@ -184,6 +192,7 @@ export const CUSTOM_FIELDS = [
tooltip: '账号所有内容的笔记平均浏览数环比',
align: 'right',
suffix: '%',
isRateField: true,
sortable: {
sortDirections: ['ascend', 'descend'],
},