From c74dcb8dca7b9e3eded0d20299f19a26a6b70974 Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期三, 31 一月 2024 12:48:45 +0800
Subject: [PATCH] add 追溯报表

---
 jcdm-ui/src/views/dashboard/LineChart.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/jcdm-ui/src/views/dashboard/LineChart.vue b/jcdm-ui/src/views/dashboard/LineChart.vue
index 37320d2..8efc27c 100644
--- a/jcdm-ui/src/views/dashboard/LineChart.vue
+++ b/jcdm-ui/src/views/dashboard/LineChart.vue
@@ -87,11 +87,16 @@
           boundaryGap: false,
           axisTick: {
             show: false
-          }
+          },
+          type: 'category',
+          axisLabel: {
+            interval: 0,
+            rotate: 45,
+          },
         },
         grid: {
-          left: 10,
-          right: 10,
+          left: 20,
+          right: 20,
           bottom: 20,
           top: 30,
           containLabel: true
@@ -106,7 +111,9 @@
         yAxis: {
           axisTick: {
             show: false
-          }
+          },
+          min:0,
+          max: this.data.length === 0 ? 100 : null
         },
         legend: {
           data: this.legendTitle

--
Gitblit v1.9.3