|
@@ -158,22 +158,22 @@ export default {
|
158
|
158
|
listQuery: {
|
159
|
159
|
// page: 1,
|
160
|
160
|
// limit: 20,
|
161
|
|
- startAt: moment.utc(moment().subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)).format(),
|
162
|
|
- endAt: moment.utc(moment().day(7).hour(11).minute(59).second(59)).format()
|
|
161
|
+ startAt: moment.utc(moment().startOf('isoweek').subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)).format(),
|
|
162
|
+ endAt: moment.utc(moment().startOf('isoweek').day(7).hour(11).minute(59).second(59)).format()
|
163
|
163
|
},
|
164
|
164
|
pickerOptions: {
|
165
|
165
|
shortcuts: [{
|
166
|
166
|
text: '本週',
|
167
|
167
|
onClick(picker) {
|
168
|
|
- const end = moment().day(7).hour(11).minute(59).second(59)
|
169
|
|
- const start = moment().subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)
|
|
168
|
+ const end = moment().startOf('isoweek').day(7).hour(11).minute(59).second(59)
|
|
169
|
+ const start = moment().startOf('isoweek').subtract(1, 'weeks').day(7).hour(16).minute(0).second(0)
|
170
|
170
|
picker.$emit('pick', [start, end])
|
171
|
171
|
}
|
172
|
172
|
}, {
|
173
|
173
|
text: '上週',
|
174
|
174
|
onClick(picker) {
|
175
|
|
- const end = moment().subtract(1, 'weeks').day(7).hour(11).minute(59).second(59)
|
176
|
|
- const start = moment().subtract(2, 'weeks').day(7).hour(16).minute(0).second(0)
|
|
175
|
+ const end = moment().startOf('isoweek').subtract(1, 'weeks').day(7).hour(11).minute(59).second(59)
|
|
176
|
+ const start = moment().startOf('isoweek').subtract(2, 'weeks').day(7).hour(16).minute(0).second(0)
|
177
|
177
|
picker.$emit('pick', [start, end])
|
178
|
178
|
}
|
179
|
179
|
}]
|