Selaa lähdekoodia

WMS历史轨迹-增加冷藏冷冻温度警戒线。

DongZ 1 vuosi sitten
vanhempi
commit
e781e1c44c
1 muutettua tiedostoa jossa 85 lisäystä ja 2 poistoa
  1. 85 2
      src/views/WMS/historical-route/index.vue

+ 85 - 2
src/views/WMS/historical-route/index.vue

@@ -221,6 +221,45 @@
                     fontSize: 12
                   }
                 },
+                markArea: {
+                    itemStyle: {
+                      color: 'rgba(255, 173, 177, 0.4)'
+                    },
+                    data: [
+                      [{
+                          name: '冷藏温度警戒线',
+                          yAxis: '8'
+                        },
+                        {
+                          yAxis: '8.1'
+                        }
+                      ],
+                      [{
+                          name: '冷藏温度警戒线',
+                          yAxis: '2'
+                        },
+                        {
+                          yAxis: '1.9'
+                        }
+                      ],
+                      [{
+                          name: '冷冻温度警戒线',
+                          yAxis: '-15'
+                        },
+                        {
+                          yAxis: '-14.9'
+                        }
+                      ],
+                      [{
+                          name: '冷冻温度警戒线',
+                          yAxis: '-25'
+                        },
+                        {
+                          yAxis: '-25.1'
+                        }
+                      ]
+                    ]
+                  }
               }
               // count = 0;
               for (let j = 0; j < latitudeLongitude.length; j++) {
@@ -254,6 +293,45 @@
                       fontSize: 12
                     }
                   },
+                  markArea: {
+                    itemStyle: {
+                      color: 'rgba(255, 173, 177, 0.4)'
+                    },
+                    data: [
+                      [{
+                          name: '冷藏温度警戒线',
+                          yAxis: '8'
+                        },
+                        {
+                          yAxis: '8.1'
+                        }
+                      ],
+                      [{
+                          name: '冷藏温度警戒线',
+                          yAxis: '2'
+                        },
+                        {
+                          yAxis: '1.9'
+                        }
+                      ],
+                      [{
+                          name: '冷冻温度警戒线',
+                          yAxis: '-15'
+                        },
+                        {
+                          yAxis: '-14.9'
+                        }
+                      ],
+                      [{
+                          name: '冷冻温度警戒线',
+                          yAxis: '-25'
+                        },
+                        {
+                          yAxis: '-25.1'
+                        }
+                      ]
+                    ]
+                  }
                 }
                 // count = 0;
                 for (let j = 0; j < res.data.length; j++) {
@@ -368,7 +446,13 @@
             data: [],
             // bottom: "0%"
           },
-          yAxis: {},
+          yAxis: {
+            name: '温度',
+            // Y轴最大值
+            // max: 10,
+            // 间隔值
+            // interval: 3
+          },
           //加上dataZoom可实现缩放
           dataZoom: [{
               //x轴
@@ -388,7 +472,6 @@
               zoomOnMouseWheel: 'true',
             },
           ],
-          visualMap: {},
           /**
            * series中的参数:
            * smooth:是否曲线,showSymbol:是否显示数据和数据点