From 71e54f29005a0069e0a050865029baa555b1fa34 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Mon, 16 Oct 2023 10:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=8A=9F=E8=80=97?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/gps-card-frontend/device-power/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/gps-card-frontend/device-power/index.vue b/src/views/gps-card-frontend/device-power/index.vue index 052da50..3984aff 100644 --- a/src/views/gps-card-frontend/device-power/index.vue +++ b/src/views/gps-card-frontend/device-power/index.vue @@ -1,7 +1,7 @@ @@ -28,7 +28,7 @@ -
+
@@ -135,7 +135,8 @@ export default { value: item.value, time: this.$dayjs(this.$dayjs(Number(item.time))).format("YYYY/MM/DD hh:mm") } - }); + }).reverse(); + console.log("this.filterData", this.filterData, this.tableData); // 图表筛选过滤只显示 rssi <= 2的数据 this.data = this.filterData.map(item => { // 序列化json @@ -198,7 +199,7 @@ export default { }, []).sort(function(date1, date2) { // 日期升序排序 return date2.time < date1.time ? 1 : -1 - }); + }).reverse(); } else { this.titleList = [ { title: '时间', width: '40%', key: 'time'}, @@ -223,7 +224,7 @@ export default { value: item.value, time: this.$dayjs(this.$dayjs(Number(item.time))).format("YYYY/MM/DD hh:mm") } - }); + }).reverse(); } this.xAxisData = this.data.map(item => { return this.$dayjs(item.time).format("MM/DD");