This commit is contained in:
yanran200730
2023-06-09 14:19:22 +08:00
parent 4eb960b16b
commit f4c3ad72c4

View File

@@ -53,6 +53,15 @@
</div>
</div>
<ai-card title="每日收益明细">
<template #right>
<ai-download
:instance="instance"
url="/api/wxmppublisheradposgeneral/export"
:params="params" fileName="便民通讯录"
:disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download>
</template>
<ai-table
:tableData="tableData"
:col-configs="colConfigs"
@@ -97,12 +106,22 @@
{ prop: 'exposureRate', label: '曝光率', align: 'center', format: v => (v * 100).toFixed(2) + '%' },
{ prop: 'clickCount', label: '点击量', align: 'center' },
{ prop: 'clickRate', label: '点击率', align: 'center', format: v => (v * 100).toFixed(2) + '%' },
{ prop: 'ecpm', label: 'eCPM', align: 'center', format: v => v.toFixed(2) },
{ prop: 'income', label: '收入(元)', align: 'center', format: v => v.toFixed(2) }
{ prop: 'ecpm', label: 'eCPM', align: 'center', format: v => (v / 100).toFixed(2) },
{ prop: 'income', label: '收入(元)', align: 'center', format: v => (v / 100).toFixed(2) }
]
}
},
computed: {
params () {
return {
...this.search,
startTime: this.search.type === '3' ? this.date[0] : '',
endTime: this.search.type === '3' ? this.date[1] : ''
}
}
},
created () {
this.getInfo()
this.getWechatList()