From 6371ef5b021588addaffec3c76948339fe1d4d4d Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 1 Nov 2023 16:11:44 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3310=20=20fix=EF=BC=9A=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=AF=BC=E8=87=B4=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BD=AC=E5=8C=96=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart/chartLog.vue | 4 ++-- .../src/components/common/bottomBox/tabs/logBottomTab.vue | 4 ++-- .../src/components/page/dashboard/explore/exploreItem.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/chartLog.vue b/nezha-fronted/src/components/chart/chart/chartLog.vue index 555226b9d..932089341 100644 --- a/nezha-fronted/src/components/chart/chart/chartLog.vue +++ b/nezha-fronted/src/components/chart/chart/chartLog.vue @@ -218,8 +218,8 @@ export default { const descending = this.operations.descending const params = { logql: this.chartInfo.elements.map(item => item.expression), - start: this.$stringTimeParseToUnix(this.filterTime[0]), - end: this.$stringTimeParseToUnix(this.filterTime[1]), + start: this.momentStrToTimestamp(this.filterTime[0]), + end: this.momentStrToTimestamp(this.filterTime[1]), direction: descending ? 'backward' : 'forward', limit } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue index 9cc2e7edb..68cb0e8ba 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue @@ -89,8 +89,8 @@ export default { exportLog ({ limit, descending }) { const params = { logql: this.expressions, - start: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[0])), - end: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[1])), + start: this.momentStrToTimestamp(this.filterTime[0]), + end: this.momentStrToTimestamp(this.filterTime[1]), direction: descending ? 'backward' : 'forward', limit } diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index 2c18a0eff..43b789ad9 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -3722,8 +3722,8 @@ export default { exportLog ({ limit, descending }) { const params = { logql: this.expressions, - start: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[0])), - end: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.filterTime[1])), + start: this.momentStrToTimestamp(this.filterTime[0]), + end: this.momentStrToTimestamp(this.filterTime[1]), direction: descending ? 'backward' : 'forward', limit }