From bbbfd5b25915256a84c840181ca08f466d250581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= <peiyu_ren@163.com> Date: Thu, 14 Dec 2023 10:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86alarm=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E7=82=B9=E5=87=BBsearch=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E8=AF=B7=E6=B1=82=E4=B8=AD=E6=97=A5=E6=9C=9F=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/abnormalAlarm/components/searchBar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/abnormalAlarm/components/searchBar.vue b/src/views/abnormalAlarm/components/searchBar.vue index d8c820a..1e1b582 100644 --- a/src/views/abnormalAlarm/components/searchBar.vue +++ b/src/views/abnormalAlarm/components/searchBar.vue @@ -117,7 +117,7 @@ <a-form-model-item label="Alarm date"> <a-range-picker dropdownClassName="asd" - :default-value="[moment(queryParams.startDate).subtract(6, 'days'), moment(queryParams.endDate)]" + :default-value="[moment(queryParams.startDate), moment(queryParams.endDate)]" @change="onRangeDateChange" /> </a-form-model-item> @@ -187,8 +187,8 @@ export default { names: undefined, stations: undefined, sources: undefined, - startDate: dateFormat(new Date(), 'yyyy-MM-dd'), - endDate: dateFormat(new Date(), 'yyyy-MM-dd'), + startDate: moment().subtract(6, 'days').format('YYYY-MM-DD'), + endDate: moment().format('YYYY-MM-DD'), }, } },