pull/126/head
孙萌 2024-03-05 16:42:50 +08:00
parent 1e296444c6
commit 60bca9c2a5
1 changed files with 17 additions and 0 deletions

View File

@ -100,6 +100,23 @@ export default {
}, 0); }, 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() { getData() {
var store = this.$store.state var store = this.$store.state
var index = store.equipmentIndex; var index = store.equipmentIndex;