From 0577d123b31b2f795f6109c2892139d2c630174e Mon Sep 17 00:00:00 2001 From: zch Date: Tue, 29 Apr 2025 16:25:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ems):=20=E8=A7=A3=E9=99=A4=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E9=97=B4=E9=BB=98=E8=AE=A4=E5=80=BC=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E6=B3=A8=E9=87=8A-=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E4=BA=86=E5=AF=B9=E8=AE=B0=E5=BD=95=E6=97=B6=E9=97=B4=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E8=AE=BE=E7=BD=AE=E7=9A=84=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=20-=E7=8E=B0=E5=9C=A8=E5=9C=A8=E7=BB=84=E4=BB=B6=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=97=B6=E8=87=AA=E5=8A=A8=E8=AE=BE=E7=BD=AE=E6=98=A8?= =?UTF-8?q?=E5=A4=A9=E5=92=8C=E4=BB=8A=E5=A4=A9=E7=9A=84=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E8=AE=B0=E5=BD=95=E6=97=B6=E9=97=B4=E8=8C=83?= =?UTF-8?q?=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ems/record/recordIotenvInstant/index.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/ems/record/recordIotenvInstant/index.vue b/src/views/ems/record/recordIotenvInstant/index.vue index 41e4f21..4a2dd6d 100644 --- a/src/views/ems/record/recordIotenvInstant/index.vue +++ b/src/views/ems/record/recordIotenvInstant/index.vue @@ -356,15 +356,15 @@ }; }, created() { - // const nowDate = new Date(); - // const today = parseTime(new Date(), '{y}-{m}-{d}') - // const lastDate = new Date(); - // lastDate.setDate(nowDate.getDate() - 1) - // const yesterday = parseTime(lastDate, '{y}-{m}-{d}') - // - // console.log(today,yesterday) - // this.daterangeRecordTime[0] = yesterday+ ' 08:00:00' - // this.daterangeRecordTime[1] = today + ' 08:00:00' + const nowDate = new Date(); + const today = parseTime(new Date(), '{y}-{m}-{d}') + const lastDate = new Date(); + lastDate.setDate(nowDate.getDate() - 1) + const yesterday = parseTime(lastDate, '{y}-{m}-{d}') + this.daterangeRecordTime[0] = yesterday+ ' 08:00:00' + this.daterangeRecordTime[1] = today + ' 08:00:00' + + this.getList(); }, methods: {