From b82c1f5e2c6daeede03f6fcf7c91ae66348d97e3 Mon Sep 17 00:00:00 2001 From: guoshipeng <3194674006@qq.com> Date: Thu, 11 May 2023 16:03:21 +0800 Subject: [PATCH] 1、道路尘负荷分析尘负荷值修改 2、6参设定修改 --- src/components/Wind/Map.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/Wind/Map.vue b/src/components/Wind/Map.vue index 38234f8..96f5bdc 100644 --- a/src/components/Wind/Map.vue +++ b/src/components/Wind/Map.vue @@ -661,10 +661,16 @@ }, // ��������������������� currentHour() { + // const aData = new Date() + // const month = aData.getMonth() < 9 ? '0' + (aData.getMonth() + 1) : aData.getMonth() + 1 + // const date = aData.getDate() <= 9 ? '0' + aData.getDate() : aData.getDate() + // const hour = aData.getHours() <= 9 ? '0' + aData.getHours() - 1 : aData.getHours() - 1 + // const currentDate = aData.getFullYear() + '-' + month + '-' + date + ' ' + hour + ':00' + // this.dateFormat = currentDate.toString() const aData = new Date() const month = aData.getMonth() < 9 ? '0' + (aData.getMonth() + 1) : aData.getMonth() + 1 - const date = aData.getDate() <= 9 ? '0' + aData.getDate() : aData.getDate() - const hour = aData.getHours() <= 9 ? '0' + aData.getHours() - 1 : aData.getHours() - 1 + const date = aData.getDate() < 10 ? '0' + aData.getDate() : aData.getDate() + const hour = aData.getHours() const currentDate = aData.getFullYear() + '-' + month + '-' + date + ' ' + hour + ':00' this.dateFormat = currentDate.toString() }, @@ -1573,7 +1579,7 @@ url: '/monitorPoint/getWindData', method: 'get', params: { - monitorPointIds: JSON.stringify(this.monitorPointIds[0]), + monitorPointIds: this.monitorPointIds.toString(), chooseTime: this.chooseTime, time: this.nyr } -- Gitblit v1.8.0