Browse Source

优化设备不在线的情况

vothin 3 years ago
parent
commit
1d3ca5bf67
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/ncs-device/components/deviceManager.vue

+ 5 - 1
src/views/ncs-device/components/deviceManager.vue

@@ -654,7 +654,11 @@ export default {
               item['online_state'] = '/'
             }
           } else {
-            item['online_state'] = '/'
+            if (this.isCannotBeOnline(item.device_type)) {
+              item['online_state'] = this.$t('deviceManage.connectFalse')
+            } else {
+              item['online_state'] = '/'
+            }
           }
         })
         this.rowData = deviceData