From 52860e4c0384ea0c4eebd1d7085ca0a4b90baa2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 8 Jun 2023 17:52:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/GPS/car/index.vue | 9 ++++----- ruoyi-ui/src/views/dashboard/BarChart.vue | 18 +++++++++--------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/ruoyi-ui/src/views/GPS/car/index.vue b/ruoyi-ui/src/views/GPS/car/index.vue index 81f7d6d..2de19de 100644 --- a/ruoyi-ui/src/views/GPS/car/index.vue +++ b/ruoyi-ui/src/views/GPS/car/index.vue @@ -118,8 +118,7 @@ console.log(echarts) function getList() { loading.value = true; listTest(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => { - postList.value = response.rows; - total.value = response.total; + postList.value = response; let chart = echarts.init(document.getElementById('myChart')) chart.setOption({ @@ -145,7 +144,7 @@ function getList() { xAxis: [ { type: "category", - data: response.rows.map(e => e.createTime), + data: response.map(e => e.createTime), axisLine: { lineStyle: { color: "#DCE2E8", @@ -176,7 +175,7 @@ function getList() { { name: "海拔", type: "line", - data: response.rows.map(e => e.altitude || 0), + data: response.map(e => e.altitude || 0), symbolSize: 1, symbol: "circle", smooth: true, @@ -191,7 +190,7 @@ function getList() { { name: "速度", type: "line", - data: response.rows.map(e => e.speed || 0), + data: response.map(e => e.speed || 0), symbolSize: 1, yAxisIndex: 1, symbol: "circle", diff --git a/ruoyi-ui/src/views/dashboard/BarChart.vue b/ruoyi-ui/src/views/dashboard/BarChart.vue index 5592db9..a502e1d 100644 --- a/ruoyi-ui/src/views/dashboard/BarChart.vue +++ b/ruoyi-ui/src/views/dashboard/BarChart.vue @@ -1,5 +1,5 @@