Commit 9c83bfac by 杨明

sop

1 parent 0cc139c9
......@@ -123,7 +123,9 @@ export default {
getListApi: this.$apis.sop.getSopCustomerStatisticsListApi,
tableParams: {
listName: 'list',
tableColumns: [
tableColumns: []
},
tableColumns: [
{
label: '群名称',
prop: 'groupName',
......@@ -155,29 +157,26 @@ export default {
label: '初次查看时间',
prop: 'firstViewDate',
formatter: cellValue => {
return cellValue.firstViewDate ? dayjs(cellValue.firstViewDate).format('YYYY-MM-DD HH:mm:ss') : '未查看'
return cellValue.firstViewDate ? dayjs(cellValue.firstViewDate).format('YYYY-MM-DD HH:mm:ss') : '--'
}
},
{
label: '查看次数',
prop: 'viewCount',
formatter: cellValue => {
return cellValue.viewCount || '0'
return cellValue.viewCount || '--'
}
},
{
label: '查看总时长',
prop: 'viewDuration',
},
{
],
otherTableColumns: [
{
label: '点赞数',
prop: 'likeCount',
}, {
label: '评论数',
prop: 'commentCount',
}
]
},
],
pageConf: {pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total'},
baseData: {
sopEventList: []
......@@ -206,6 +205,11 @@ export default {
if (this.sopInfo.sopType == 1){
this.tableParams.tableColumns.splice(0,1,1)
}
if(this.selectedEventInfo.pushChannelType == 3) {
this.tableParams.tableColumns = this.tableColumns.concat(this.otherTableColumns)
}else {
this.tableParams.tableColumns = this.tableColumns
}
this.sopInfo.touchPercent = this.baseData.sopEventList.length && this.sopInfo.customerCount ? Math.round((this.selectedEventInfo.eventStatistics.reachCustomerCount / this.sopInfo.customerCount) * 100).toFixed(0) + '%' : '-'
// this.drawPie()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!