|
|
@@ -21,7 +21,7 @@ import { reactive, ref } from 'vue'
|
|
|
import { useRequest } from '@/hooks/useRequest'
|
|
|
import { useAnalysis } from '@/hooks/useAnalysis'
|
|
|
import { useCommonStore } from '@/stores/useCommon'
|
|
|
-import { formatTimestamp } from '@/utils/common'
|
|
|
+import { formatTimestamp, resetTimeToMidnight } from '@/utils/common'
|
|
|
import { usePage } from '@/hooks/usePage'
|
|
|
|
|
|
import Table from '@/components/table/CustomTable.vue'
|
|
|
@@ -97,21 +97,21 @@ const filterInfo: Array<QueryInfo> = [
|
|
|
valueValid: (val: any) => !isNaN(val)
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- name: 'revenue',
|
|
|
- label: '用户收益',
|
|
|
- type: FilterType.CUSTOM,
|
|
|
- placeholder: '请输入筛选收益',
|
|
|
- default: 0,
|
|
|
- otherOption: {
|
|
|
- customFilterValueType: CustomFilterValueType.INPUT,
|
|
|
- valueFormat: (val: any) => {
|
|
|
- if (val === '') return val
|
|
|
- return parseFloat(val)
|
|
|
- },
|
|
|
- valueValid: (val: any) => !isNaN(val)
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // name: 'revenue',
|
|
|
+ // label: '用户收益',
|
|
|
+ // type: FilterType.CUSTOM,
|
|
|
+ // placeholder: '请输入筛选收益',
|
|
|
+ // default: 0,
|
|
|
+ // otherOption: {
|
|
|
+ // customFilterValueType: CustomFilterValueType.INPUT,
|
|
|
+ // valueFormat: (val: any) => {
|
|
|
+ // if (val === '') return val
|
|
|
+ // return parseFloat(val)
|
|
|
+ // },
|
|
|
+ // valueValid: (val: any) => !isNaN(val)
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
name: 'duration',
|
|
|
label: '总时长',
|
|
|
@@ -184,62 +184,60 @@ const tableFieldsInfo = reactive<Array<TableFieldInfo>>([
|
|
|
needSort: false
|
|
|
},
|
|
|
{
|
|
|
- name: 'pid',
|
|
|
- cnName: '广告父级ID',
|
|
|
+ name: 'pf',
|
|
|
+ cnName: '渠道',
|
|
|
isShow: true,
|
|
|
needSort: false
|
|
|
},
|
|
|
{
|
|
|
- name: 'aid',
|
|
|
- cnName: '广告ID',
|
|
|
+ name: 'gid',
|
|
|
+ cnName: '游戏ID',
|
|
|
isShow: true,
|
|
|
needSort: false
|
|
|
},
|
|
|
{
|
|
|
- name: 'cid',
|
|
|
- cnName: '用户点击ID',
|
|
|
+ name: 'openId',
|
|
|
+ cnName: 'OpenID',
|
|
|
isShow: true,
|
|
|
needSort: false
|
|
|
},
|
|
|
{
|
|
|
- name: 'createTime',
|
|
|
+ name: 'createdAt',
|
|
|
cnName: '创建时间',
|
|
|
isShow: true,
|
|
|
needSort: false,
|
|
|
specialEffect: {
|
|
|
type: FieldSpecialEffectType.CUSTOM,
|
|
|
otherInfo: {
|
|
|
- render: formatTimestamp
|
|
|
+ render: (val: any) => {
|
|
|
+ console.log(val)
|
|
|
+ console.log(new Date(val))
|
|
|
+ return formatTimestamp(new Date(val).getTime() / 1000)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- name: 'startNum',
|
|
|
- cnName: '启动次数',
|
|
|
- isShow: true,
|
|
|
- needSort: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'revenue',
|
|
|
- cnName: '用户收益',
|
|
|
+ name: 'duration',
|
|
|
+ cnName: '在线总时长',
|
|
|
isShow: true,
|
|
|
needSort: false
|
|
|
},
|
|
|
{
|
|
|
- name: 'duration',
|
|
|
- cnName: '总时长',
|
|
|
+ name: 'startNum',
|
|
|
+ cnName: '启动次数',
|
|
|
isShow: true,
|
|
|
needSort: false
|
|
|
},
|
|
|
{
|
|
|
- name: 'req_count',
|
|
|
- cnName: '看广告次数',
|
|
|
+ name: 'adCount',
|
|
|
+ cnName: '观看广告总次数',
|
|
|
isShow: true,
|
|
|
needSort: false
|
|
|
},
|
|
|
{
|
|
|
- name: 'exp_count',
|
|
|
- cnName: '看完广告次数',
|
|
|
+ name: 'adExpCount',
|
|
|
+ cnName: '看完广告总次数',
|
|
|
isShow: true,
|
|
|
needSort: false
|
|
|
}
|