From b4c5c3c028f391791eb7312cf9a7ae1336f0d860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E4=BA=91=E9=B9=8F?= Date: Wed, 11 Dec 2024 16:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E5=8D=8F=E8=AE=AE=E6=95=85=E9=9A=9C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=20=E6=95=85=E9=9A=9C=E5=BD=95=E6=B3=A2=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=9F=A5=E8=AF=A2=E6=97=B6=E9=97=B4=E4=B8=BA=E5=B9=B4?= =?UTF-8?q?=E6=9C=88=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/backend/malfunction/index.vue | 18 +++---- ui/dasadmin/src/views/backend/node/index.vue | 16 +++--- .../src/views/backend/node/protocol.vue | 53 +++++++++++++++++++ ui/dasadmin/src/views/backend/node/type.ts | 4 +- 4 files changed, 74 insertions(+), 17 deletions(-) diff --git a/ui/dasadmin/src/views/backend/malfunction/index.vue b/ui/dasadmin/src/views/backend/malfunction/index.vue index b823a6ba..8b5e3c4f 100644 --- a/ui/dasadmin/src/views/backend/malfunction/index.vue +++ b/ui/dasadmin/src/views/backend/malfunction/index.vue @@ -29,12 +29,12 @@ 日期 @@ -273,7 +273,7 @@ const getTreeDataList = () => { const searchData = reactive<{ fileName: ''; date: Date[] }>({ fileName: '', - date: [dayjs().toDate(), dayjs().toDate()], + date: [dayjs().startOf('month').toDate(), dayjs().toDate()], }) const shortcuts = [ { @@ -287,15 +287,15 @@ const shortcuts = [ { text: '上月', value: () => { - const start = dayjs().subtract(1, 'month').toDate() - const end = dayjs().subtract(1, 'month').toDate() + const start = dayjs().subtract(1, 'month').startOf('month').toDate() + const end = dayjs().subtract(1, 'month').endOf('month').toDate() return [start, end] }, }, { text: '近三月', value: () => { - const start = dayjs().subtract(2, 'month').toDate() + const start = dayjs().subtract(2, 'month').startOf('month').toDate() const end = dayjs().toDate() return [start, end] }, @@ -325,8 +325,8 @@ const changePageSetting = () => {} const getListForAirBlower = () => { const data = { deviceCode: curTreeData.value.code, - startTime: dayjs(searchData.date[0]).format('YYYY-MM'), - endTime: dayjs(searchData.date[1]).format('YYYY-MM'), + startTime: dayjs(searchData.date[0]).format('YYYY-MM-DD'), + endTime: dayjs(searchData.date[1]).format('YYYY-MM-DD'), } if (activeName.value === 'malFunction') { diff --git a/ui/dasadmin/src/views/backend/node/index.vue b/ui/dasadmin/src/views/backend/node/index.vue index 95979094..a7f784b5 100644 --- a/ui/dasadmin/src/views/backend/node/index.vue +++ b/ui/dasadmin/src/views/backend/node/index.vue @@ -99,8 +99,10 @@