|
@@ -50,23 +50,23 @@ export default {
|
50
|
50
|
listLoading: true,
|
51
|
51
|
bucket: '',
|
52
|
52
|
listQuery: {
|
53
|
|
- startAt: moment.utc(moment().startOf('isoweek').subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)).format(),
|
54
|
|
- endAt: moment.utc(moment().startOf('isoweek').day(7).hour(11).minute(59).second(59)).format()
|
|
53
|
+ startAt: moment.utc(moment().day('sunday').hour(12).minute(0).second(0).subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)).format(),
|
|
54
|
+ endAt: moment.utc(moment().day('sunday').hour(12).minute(0).second(0).day(7).hour(11).minute(59).second(59)).format()
|
55
|
55
|
},
|
56
|
56
|
temp: {},
|
57
|
57
|
pickerOptions: {
|
58
|
58
|
shortcuts: [{
|
59
|
59
|
text: '本週',
|
60
|
60
|
onClick(picker) {
|
61
|
|
- const end = moment().startOf('isoweek').day(7).hour(11).minute(59).second(59)
|
62
|
|
- const start = moment().startOf('isoweek').subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)
|
|
61
|
+ const end = moment().day('sunday').hour(12).minute(0).second(0).day(7).hour(11).minute(59).second(59)
|
|
62
|
+ const start = moment().day('sunday').hour(12).minute(0).second(0).subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)
|
63
|
63
|
picker.$emit('pick', [start, end])
|
64
|
64
|
}
|
65
|
65
|
}, {
|
66
|
66
|
text: '上週',
|
67
|
67
|
onClick(picker) {
|
68
|
|
- const end = moment().startOf('isoweek').subtract(1, 'weeks').day(7).hour(11).minute(59).second(59)
|
69
|
|
- const start = moment().startOf('isoweek').subtract(2, 'weeks').day(7).hour(16).minute(0).second(0)
|
|
68
|
+ const end = moment().day('sunday').hour(12).minute(0).second(0).subtract(1, 'weeks').day(7).hour(11).minute(59).second(59)
|
|
69
|
+ const start = moment().day('sunday').hour(12).minute(0).second(0).subtract(2, 'weeks').day(7).hour(16).minute(0).second(0)
|
70
|
70
|
picker.$emit('pick', [start, end])
|
71
|
71
|
}
|
72
|
72
|
}]
|