Commit 9c83bfac by 杨明

sop

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