pull/126/head
parent
1e296444c6
commit
60bca9c2a5
|
@ -100,6 +100,23 @@ export default {
|
|||
}, 0);
|
||||
|
||||
},
|
||||
yesterdayTime() {
|
||||
// 获取当前日期
|
||||
var today = new Date();
|
||||
|
||||
// 获取昨天的日期
|
||||
var yesterday = new Date(today);
|
||||
yesterday.setDate(today.getDate() - 1);
|
||||
|
||||
// 设置时间为00:00
|
||||
yesterday.setHours(0, 0, 0, 0);
|
||||
var start = yesterday.toISOString();
|
||||
|
||||
// 设置时间为23:59
|
||||
yesterday.setHours(23, 59, 59, 999);
|
||||
var end = yesterday.toISOString();
|
||||
this.dateRange = [start, end]
|
||||
},
|
||||
getData() {
|
||||
var store = this.$store.state
|
||||
var index = store.equipmentIndex;
|
||||
|
|
Loading…
Reference in New Issue