zhaobao 1 年之前
父节点
当前提交
b04d189664
共有 2 个文件被更改,包括 25 次插入15 次删除
  1. 2 1
      src/settings.js
  2. 23 14
      src/views/bigScreen/home/components/SensorStatus.vue

+ 2 - 1
src/settings.js

@@ -36,7 +36,8 @@ module.exports = {
   /**
   * 服务API地址
   */
-  devServerUrl: 'http://113.141.93.143:1688', // 开发环境 qu
+  devServerUrl: 'http://113.141.93.143:1688', // 正式环境
+  // devServerUrl: 'http://192.168.3.5:1788', // 开发环境 qu
   serverUrl: 'http://113.141.93.143:1688', // 正式环境
   mqttUrl: 'ws://113.141.93.143:8894/mqtt', // mqtt地址
   /**

+ 23 - 14
src/views/bigScreen/home/components/SensorStatus.vue

@@ -39,21 +39,23 @@ export default {
           containLabel: true
         },
         xAxis: {
-          type: 'value',
+          type: 'category',
           boundaryGap: [0, 0.01],
           axisLabel: {
             color: '#fff'
           },
           axisLine: {
-            show: false
+            show: true
           },
           splitLine: {
             show: false
           }
         },
         yAxis: {
-          type: 'category',
-          data: ['在线', '离线'],
+          type: 'value',
+          axisLine: {
+            show: true
+          },
           axisLabel: {
             color: '#fff'
           },
@@ -63,19 +65,25 @@ export default {
         },
         series: [
           {
-            name: '压力',
-            type: 'bar',
-            data: [0, 0]
+            name: '正常运转',
+            type: 'line',
+            symbol: 'none',
+            smooth: true,
+            data: [12, 32, 101, 300, 130, 80, 20]
           },
           {
-            name: '位移',
-            type: 'bar',
-            data: [0, 0]
+            name: 'C级报警',
+            type: 'line',
+            symbol: 'none',
+            smooth: true,
+            data: [20, 182, 191, 434, 290, 330, 10]
           },
           {
-            name: '有害气体',
-            type: 'bar',
-            data: [0, 0]
+            name: 'D级报警',
+            type: 'line',
+            symbol: 'none',
+            smooth: true,
+            data: [30, 332, 301, 334, 390, 330, 30]
           }
         ]
       }
@@ -102,7 +110,8 @@ export default {
     },
     reload() {
       this.$nextTick(() => {
-        this.goafdevstatis()
+        this.init()
+        // this.goafdevstatis()
       })
     },
     goafdevstatis() {