refactor(ems): 解除记录时间默认值设置的注释- 移除了对记录时间默认值设置的注释

-现在在组件创建时自动设置昨天和今天的日期作为记录时间范围
boardTest
zch 2 months ago
parent d0cdf0ddf0
commit 0577d123b3

@ -356,15 +356,15 @@
}; };
}, },
created() { created() {
// const nowDate = new Date(); const nowDate = new Date();
// const today = parseTime(new Date(), '{y}-{m}-{d}') const today = parseTime(new Date(), '{y}-{m}-{d}')
// const lastDate = new Date(); const lastDate = new Date();
// lastDate.setDate(nowDate.getDate() - 1) lastDate.setDate(nowDate.getDate() - 1)
// const yesterday = parseTime(lastDate, '{y}-{m}-{d}') const yesterday = parseTime(lastDate, '{y}-{m}-{d}')
// this.daterangeRecordTime[0] = yesterday+ ' 08:00:00'
// console.log(today,yesterday) this.daterangeRecordTime[1] = today + ' 08:00:00'
// this.daterangeRecordTime[0] = yesterday+ ' 08:00:00'
// this.daterangeRecordTime[1] = today + ' 08:00:00'
this.getList(); this.getList();
}, },
methods: { methods: {

Loading…
Cancel
Save