Explorar el Código

磁盘状态颜色显示修改

jingyuanchao hace 1 año
padre
commit
45e35d7973
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      src/views/iot/videoRecorder/detail.dialog.vue

+ 7 - 2
src/views/iot/videoRecorder/detail.dialog.vue

@@ -252,7 +252,12 @@ export default {
       return (((disk.total - disk.available) / disk.total) * 100).toFixed(2);
     },
     progressStatus(disk) {
-      if (!disk.total) {
+      if (disk.state == 0){
+        return "success";
+      }else {
+        return "exception";
+      }
+     /* if (!disk.total) {
         return "success";
       }
 
@@ -263,7 +268,7 @@ export default {
         return "warning";
       } else {
         return "success";
-      }
+      }*/
     },
     // 事件
     //apimark//