index.js
2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
* on shop page store
* @author: Gexuhui
* @date: 2017/08/11
*/
import moment from 'moment';
let curDay = moment().format('YYYY-MM-DD');
export default function() {
return {
day: curDay,
date: curDay,
dateRange: [curDay, curDay],
beginDate: curDay,
endDate: curDay,
today: moment().format('YYYY-MM-DD'),
yesterday: moment().add(-1, 'days').format('YYYY-MM-DD'),
day7: moment().add(-6, 'days').format('YYYY-MM-DD'),
day30: moment().add(-29, 'days').format('YYYY-MM-DD'),
// curTarget: 'uv',
curTarget: 'orderCount',
timeLimit: true,
overviewParams: {},
overviewData: {},
getDataFlag: false,
overviewName: 'overviewChart',
// overviewChartData: {uv: [], pv: [], orderCount: [], orderAmount: [], xAxis: []},
overviewChartData: {orderCount: [], orderAmount: [], xAxis: []},
targetList: [
// {
// label: '访客数(UV)',
// name: 'uv',
// chatOpt: {}
// },
// {
// label: '浏览数(PV)',
// name: 'pv',
// chatOpt: {}
// },
{
label: '下单数',
name: 'orderCount',
chatOpt: {}
},
{
label: '下单金额',
name: 'orderAmount',
chatOpt: {}
},
{
label: '支付订单数',
name: 'paymentOrderCount',
chatOpt: {}
},
{
label: '支付金额',
name: 'paymentOrderAmount',
chatOpt: {}
}
],
filters: {
targetColumns: [
{
title: '访客数(UV)',
name: 'uv',
},
{
title: '浏览数(PV)',
name: 'pv'
},
{
title: '下单数',
name: 'orderCount'
},
{
title: '下单金额',
name: 'orderAmount'
},
{
title: '支付订单数',
name: 'shipmentOrderCount'
},
{
title: '支付金额',
name: 'shipmentOrderAmount'
},
{
title: '转化率',
name: 'uvOrderRate'
}
],
dateRange: {
model: ''
},
begin: {
model: ''
},
end: {
model: ''
}
}
};
}