From e055d2d93b516985fbc2df0f6f5a135f3230cccf Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 14 三月 2024 11:13:47 +0800
Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop

---
 src/views/mdc/base/modules/deviceLog/WorkChartModel.vue |   51 ++++++++++++++++++++++++++-------------------------
 1 files changed, 26 insertions(+), 25 deletions(-)

diff --git a/src/views/mdc/base/modules/deviceLog/WorkChartModel.vue b/src/views/mdc/base/modules/deviceLog/WorkChartModel.vue
index aefcf42..864753c 100644
--- a/src/views/mdc/base/modules/deviceLog/WorkChartModel.vue
+++ b/src/views/mdc/base/modules/deviceLog/WorkChartModel.vue
@@ -160,20 +160,19 @@
               temp.push({ label: item.chineseName, value: item.id, englishName: item.englishName })
             }
             that.plainOptions = temp
-
             if (temp.length > 0) {
               that.option = [temp[0].value]
-              let param = {
-                driveType: that.node.driveType,
-                equipmentId: that.node.equipmentId,
-                date: that.queryParams.paramDateStr,
-                start: that.queryParams.startStr,
-                end: that.queryParams.endStr,
-                interval: that.queryParams.period,
-                codeTypeId: that.option.join(',')
-              }
-              that.initChart(param)
             }
+            let param = {
+              driveType: that.node.driveType,
+              equipmentId: that.node.equipmentId,
+              date: that.queryParams.paramDateStr,
+              start: that.queryParams.startStr,
+              end: that.queryParams.endStr,
+              interval: that.queryParams.period,
+              codeTypeId: that.option.join(',')
+            }
+            that.initChart(param)
           }
         })
       },
@@ -230,7 +229,7 @@
         this.queryParams = {
           equipmentId: node.equipmentId,
           equipmentName: node.equipmentName,
-          period: 1000,
+          period: 100,
           paramDate: paramDate,
           paramDateStr: paramDate.format('yyyy-MM-DD'),
           start: start,
@@ -312,10 +311,10 @@
               position: 'left',
               boundaryGap: [0, '15%'],
               axisLine: {
-                show: true
-                // lineStyle:{
-                //   color:'#000000'
-                // }
+                show: true,
+                lineStyle:{
+                  color:'#5470C6'
+                }
               }
             },
             {
@@ -325,10 +324,10 @@
               position: 'left',
               boundaryGap: [0, '15%'],
               axisLine: {
-                show: true
-                // lineStyle:{
-                //   color:'#000000'
-                // }
+                show: true,
+                lineStyle:{
+                  color:'#91CC75'
+                }
               }
             },
             {
@@ -338,10 +337,10 @@
               position: 'left',
               boundaryGap: [0, '15%'],
               axisLine: {
-                show: true
-                // lineStyle:{
-                //   color:'#000000'
-                // }
+                show: true,
+                lineStyle:{
+                  color:'#FAC858'
+                }
               }
             }
           ],
@@ -377,6 +376,7 @@
             temp.push(item)
           }
         }
+        console.log('temp',temp)
         getAction(this.url.workChart, param).then((res) => {
           if (JSON.stringify(res.result) == '[]' || res.result == null) {
             // this.$message.warning('鏃犳暟鎹紒')
@@ -423,12 +423,13 @@
                 symbol: 'circle',
                 symbolSize: 10,
                 yAxisIndex: i,
-
                 data: itemLine
               }
               result.push(line)
 
             }
+            console.log('result===========',result)
+            console.log('legend=============',lengenddata)
             // option.yAxis = Yarr;
             option.series = result
             option.legend = lengenddata

--
Gitblit v1.9.3