From 14e02654e0545ee69456d64aef2f35c7c219d708 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 07 May 2021 11:26:49 +0800
Subject: [PATCH] 地图模式设备状态修改

---
 src/views/supervisoryConsole/card.vue |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/src/views/supervisoryConsole/card.vue b/src/views/supervisoryConsole/card.vue
index f4c0410..7a8ae77 100644
--- a/src/views/supervisoryConsole/card.vue
+++ b/src/views/supervisoryConsole/card.vue
@@ -29,8 +29,7 @@
       style="
         margin-top: 10px;
         display: flex;
-        justify-content: center;
-        align-items: center;
+        justify-content: left;
         flex-wrap: wrap;
       "
     >
@@ -53,7 +52,7 @@
             "
           >
             <div>{{ item.deviceName }}</div>
-            <div>{{ item.street }}</div>
+            <div style="width: 80%">{{ item.street }}</div>
 
             <div class="cet">
               {{
@@ -61,7 +60,7 @@
                   ? "设备预警"
                   : item.state == ""
                   ? item.onlineStatus == 1
-                    ? "设备在线"
+                    ? "设备正常"
                     : "设备掉线"
                   : "设备故障"
               }}
@@ -130,9 +129,7 @@
         this.loading = false;
       }, 2000);
     },
-    siteStatus(value, e) {
-      console.log(this.radio, value);
-    },
+
     inputSearchBtn() {
       this.getEquipmentLists();
     },
@@ -164,11 +161,7 @@
           });
         } else if (this.radio == "仅显示设备掉线") {
           res.data.data.forEach((item) => {
-            if (item.jtype == 1 && item.onlineStatus != 1) {
-              f.push(item);
-            } else {
-              if (item.onlineStatus != 1) b.push(item);
-            }
+            if (item.onlineStatus != 1) b.push(item);
           });
         } else if (this.radio == "仅显示设备故障") {
           res.data.data.forEach((item) => {
@@ -286,8 +279,7 @@
   height: 172px !important;
   box-sizing: border-box;
   margin-bottom: 20px !important;
-  min-width: 368px;
-  max-width: 370px;
+  width: 20% !important;
   a {
     width: 100%;
     height: 100%;

--
Gitblit v1.9.3