From 46b328deebfc604ecfe6e34afe08403d95356614 Mon Sep 17 00:00:00 2001
From: guoshipeng <3194674006@qq.com>
Date: Wed, 12 Apr 2023 09:52:51 +0800
Subject: [PATCH] 1、设备详情显示修改 2、监测因子对比改成监测因子相关性对比 3、监测因子相关性对比显示修改

---
 src/components/Echarts/LineChartSpe.vue |   78 ++++++++++++++++++++++++++++++---------
 1 files changed, 60 insertions(+), 18 deletions(-)

diff --git a/src/components/Echarts/LineChartSpe.vue b/src/components/Echarts/LineChartSpe.vue
index df84764..eca1e94 100644
--- a/src/components/Echarts/LineChartSpe.vue
+++ b/src/components/Echarts/LineChartSpe.vue
@@ -45,12 +45,10 @@
   },
   watch: {
     chartData: {
-
       handler(val) {
         this.setOptions(val)
       },
       deep: true,
-
     },
   },
   mounted() {
@@ -90,22 +88,23 @@
             },
           },
           grid: {
-            left: 10,
+            left: 100,
             right: 10,
             bottom: 20,
             top: 30,
             height: fontSize(3.5),
+            width: fontSize(15),
             containLabel: true,
           },
-          toolbox: {
-            feature: {
-              dataZoom: {
-                yAxisIndex: 'none',
-              },
-              restore: {},
-              saveAsImage: {},
-            },
-          },
+          // toolbox: {
+          //   feature: {
+          //     dataZoom: {
+          //       yAxisIndex: 'none',
+          //     },
+          //     restore: {},
+          //     saveAsImage: {},
+          //   },
+          // },
           // tooltip: {
           //   trigger: 'axis',
           //   position: function(pt) {
@@ -127,11 +126,55 @@
             // },
           },
 
-          yAxis: {
-            axisLabel: {
-              show: false,
+          yAxis: [
+            {
+              
+              type: 'value',
+              position: 'left',
+              axisLabel: {
+                show: true,
+              },
             },
-          },
+            {
+             
+              type: 'value',
+              position: 'right',
+              axisLabel: {
+                show: true,
+              },
+            },
+            {
+             
+              type: 'value',
+              position: 'right',
+              offset: 50,
+              axisLabel: {
+                show: true,
+              },
+              min: 'dataMin', //���������������������������
+              max: 'dataMax', //���������������������������
+              min: function (value) {
+                //���������������������������������������
+                return Math.floor(value.min)
+              },
+              max: function (value) {
+                //���������������������������������������
+                return Math.ceil(value.max)
+              },
+
+              scale: true, //���������
+              minInterval: 0.1, //������������
+            },
+            {
+             
+              type: 'value',
+              position: 'left',
+              axisLabel: {
+                show: true,
+              },
+              offset: 50,
+            },
+          ],
           legend: {
             icon: 'circle',
             itemHeight: 15,
@@ -149,10 +192,9 @@
             {
               start: 0,
               end: 10,
-              top:fontSize(4),
+              top: fontSize(4),
               height: fontSize(0.4),
             },
-
           ],
           series: val.series,
           // [{

--
Gitblit v1.8.0